semvec/pypi-packages huggingface dataset:
django-psycopg2-extension 0.2.1
Library contains django commands which helps to prepare and manage PostgreSQL database.
License: MIT

# Django-psycopg2-extension

Library contains django commands which helps to prepare and manage PostgreSQL database.

## Quickstart

Install djjango-psycopg2-extension

```bash
pip install django-psycopg2-extension
```

Add psycopg2_extension to your `INSTALLED_APPS`:

```python
INSTALLED_APPS = [
    # Django apps...
    'psycopg2_extension',
]
```

## Commands

### psqlinit

Django command psqlinit create a database defined in django settings. 

You can define specific database settings with standard django ``DATABASE`` settings:

```python
DATABASES = {
    'default': {
        ...
        'EXTENSIONS': ['postgis', 'unaccent'],  # extensions to be installed with psqlinit command
        'SNAPSHOT_FILE': Path('data', 'sql', 'local', 'init_default.sql'), # SQL which will be loaded after database initialization
    },
}
```

Snapshot and extensions are automatically loaded when database is preparing for tests too.

### psqlclean

PostgreSQL database requires often call `VACUUM` and `REINDEX`. The command `psqlclean` performs these operations. 

You can define specific database settings for psqlclean command with standard django ``DATABASE`` settings:

```python
DATABASES = {
    'default': {
        ...
        'VACUUM': {
            'EXCLUDE': ['users_user'],  # list of excluded tables
            'TABLES': ['users_permission'],  # list of tables to vacuum, all tables are selected if the setting is not set
            'TABLES_FULL': ['users_permission'],  # list of tables to vacuum full
            'TABLES_REINDEX': ['users_permission'],  # list of tables to reindex
        }
    },
}
```

### psqlsnapshot

Command which creates SQL dump with ``pg_dump`` script and store it to the database ``'SNAPSHOT_FILE'`` setting.

### psqlviews

Command which creates views defined in ``'VIEWS'`` setting.

```python
DATABASES = {
    'default': {
        ...
        'VIEWS': {
            'MODELS': {
                'auth.users': ['id', 'email', 'first_name', 'last_name'], # Model name and list of fields
            },
            'SCHEMA': 'public', # Schema name
        }
    }
}
```

Now you can call `psqlviews` command to create or remove views.

```bash
./manage.py psqlviews --create
./manage.py psqlviews --delete
```
envreport 0.0.1.dev0
envreport: compare environments
License: MIT
Requires Python: >=3.6
Keywords: Environment

# envreport: why doesn't it work anymore??

Prepare reports on environments and report the differences between two environments.

First and foremost, envreport produces a report on an environment in a diffable format.

Inspired by [pyenvdiff](https://github.com/jnmclarty/pyenvdiff-lib), which appears to have gone unmaintained.

## Goals

The main goal is to help folks answer the question "It worked here, it didn't work there. WHY? WHAT'S DIFFERENT?!"

Design goals:

1. collect information about an environment, so that it can be easily compared with another
2. be compatible, easily distributable (a single Python script, require only standard library for _relatively_ old Python)
3. be modular, so additional sources of information can be added, as needed
4. always produce _something_, even if data collection fails
txt-utils 0.0.3
CLI to modify text files.
License: MIT
Requires Python: <3.13,>=3.8
Keywords: Preprocessing,Processing,Text-to-speech,Speech synthesis,Utils,Language,Linguistics

# txt-utils

[![PyPI](https://img.shields.io/pypi/v/txt-utils.svg)](https://pypi.python.org/pypi/txt-utils)
[![PyPI](https://img.shields.io/pypi/pyversions/txt-utils.svg)](https://pypi.python.org/pypi/txt-utils)
[![MIT](https://img.shields.io/github/license/stefantaubert/txt-utils.svg)](https://github.com/stefantaubert/txt-utils/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/wheel/txt-utils.svg)](https://pypi.python.org/pypi/txt-utils)
[![PyPI](https://img.shields.io/pypi/implementation/txt-utils.svg)](https://pypi.python.org/pypi/txt-utils)
[![PyPI](https://img.shields.io/github/commits-since/stefantaubert/txt-utils/latest/master.svg)](https://github.com/stefantaubert/txt-utils/compare/v0.0.3...master)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10571273.svg)](https://doi.org/10.5281/zenodo.10571273)

CLI to modify text files.

## Features

- `merge`: merge multiple text files into one
- `extract-vocabulary`: extract unit vocabulary
- `transcribe`: transcribe units
- `replace`: replace text
- `replace-line`: replace text in a line
- `trim-units`: trim units
- `remove-units`: remove units
- `create-unit-occurrence-stats`: create unit occurrence statistics

## Roadmap

- create n-grams
- map units
- merge units right/left
- calculate units TF-IDF

## Installation

```sh
pip install txt-utils --user
```

## Usage

```sh
txt-utils-cli
```

## Citation

If you want to cite this repo, you can use the BibTeX-entry generated by GitHub (see *About => Cite this repository*).

```txt
Taubert, S. (2024). txt-utils (Version 0.0.3) [Computer software]. https://doi.org/10.5281/zenodo.10571273
```

## Acknowledgments

Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410
napari-points2regions 0.0.2
A napari plugin for Points2Regions
License: MIT
Requires Python: >=3.9

# napari-points2regions

[![License MIT](https://img.shields.io/pypi/l/napari-points2regions.svg?color=green)](https://github.com/wahlby-lab/napari-points2regions/raw/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/napari-points2regions.svg?color=green)](https://pypi.org/project/napari-points2regions)
[![tests](https://github.com/wahlby-lab/napari-points2regions/workflows/tests/badge.svg)](https://github.com/wahlby-lab/napari-points2regions/actions)
[![codecov](https://codecov.io/gh/wahlby-lab/napari-points2regions/branch/main/graph/badge.svg)](https://codecov.io/gh/wahlby-lab/napari-points2regions)
[![Python Version](https://img.shields.io/pypi/pyversions/napari-points2regions.svg?color=green)](https://python.org)
[![napari hub](https://img.shields.io/endpoint?url=https://api.napari-hub.org/shields/napari-points2regions)](https://napari-hub.org/plugins/napari-points2regions)

A napari plugin for Points2Regions

----------------------------------

This [napari] plugin was generated with [Cookiecutter] using [@napari]'s [cookiecutter-napari-plugin] template.

<!--
Don't miss the full getting started guide to set up your new package:
https://github.com/napari/cookiecutter-napari-plugin#getting-started

and review the napari docs for plugin developers:
https://napari.org/stable/plugins/index.html
-->

## Installation

You can install `napari-points2regions` via [pip]:

    pip install napari-points2regions



To install latest development version :

    pip install git+https://github.com/wahlby-lab/napari-points2regions.git


## Contributing

Contributions are very welcome.

## License

Distributed under the terms of the [MIT] license,
"napari-points2regions" is free and open source software

## Issues

If you encounter any problems, please [file an issue] along with a detailed description.

[napari]: https://github.com/napari/napari
[Cookiecutter]: https://github.com/audreyr/cookiecutter
[@napari]: https://github.com/napari
[MIT]: http://opensource.org/licenses/MIT
[BSD-3]: http://opensource.org/licenses/BSD-3-Clause
[GNU GPL v3.0]: http://www.gnu.org/licenses/gpl-3.0.txt
[GNU LGPL v3.0]: http://www.gnu.org/licenses/lgpl-3.0.txt
[Apache Software License 2.0]: http://www.apache.org/licenses/LICENSE-2.0
[Mozilla Public License 2.0]: https://www.mozilla.org/media/MPL/2.0/index.txt
[cookiecutter-napari-plugin]: https://github.com/napari/cookiecutter-napari-plugin

[file an issue]: https://github.com/wahlby-lab/napari-points2regions/issues

[napari]: https://github.com/napari/napari
[tox]: https://tox.readthedocs.io/en/latest/
[pip]: https://pypi.org/project/pip/
[PyPI]: https://pypi.org/