Skip to main content

Provides integration with the PostgresQL DB for Ingots projects

Project description

Ingot Psql Ingot package.

Provides integration with the PostgresQL DB for Ingots projects

For consumers

For using the Ingot package just execute the following commands:

  • Add the package to the requirements.txt file of your project.
  • Install int using the pip tool.
  • TODO. Add here something extra information.

Package CLI

The package provides CLI. It allows to start working with the package quickly. It contains the following commands: TODO. Add builders here after generating their by the ingots package_bootstrap tool.

For using the CLI tool just call the following command:

ingot-psql-cli <command>

Getting package CLI help:

ingot-psql-cli --help
ingot-psql-cli <command> --help

For developers

Prepare the project for working

Clone a repository:

mkdir ingots-libs
cd ingots-libs
git clone https://github.com/ABKorotky/ingot-postgresql.git
cd ingot-psql

Prepare a virtual environment:

python3.9 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Prepare repository hooks

pip install pre_commit
pre-commit install
pre-commit autoupdate

Configure code-quality tools:

pip install black flake8 mypy coverage

Configure the Sphinx tool

Please, use the following page for configuring the Sphinx documentation generator: Sphinx

pip install sphinx
sphinx-build -b html docs docs/build -v

Using the tox tool

The Ingot package allows automation via the tox tool.

pip install tox

Use configured tox tool for several activities.

tox -e reformat - auto reformat code by the black tool, makes ordering import too.

tox -e cs - checks code style by PEP8.

tox -e ann - checks annotations of types by the mypy tool.

tox -e utc - runs unittests with the coverage tool.

tox -e report - builds coverage report for the project.

tox -e doc - builds a package documentation.

tox -e build - builds a package form current branch / tag / commit.

tox -e upload - uploads package to the PyPI index. Set the PYPI_REPOSITORY_ALIAS virtual variable for specify PyPI destination.

Calling tox without parameters will execute the following steps: cs, ann, utc and report.

Using package CLI locally

Obviously, it's impossible to call the package CLI via package entry-point.

Use the following command instead:

python -m ingot_psql.scripts.ingot_psql ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ingot-psql-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ingot_psql-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ingot-psql-0.1.0.tar.gz.

File metadata

  • Download URL: ingot-psql-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for ingot-psql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e1c6f8362e1c24774ee825236de9cc06eca88975374188454f72e9bdc8a71cbd
MD5 f16d9df474f78dfe0d63bd30f880d901
BLAKE2b-256 d47e8642106e0d008feec5980eec6badc55571bb752e9ef76633ef9337706c21

See more details on using hashes here.

File details

Details for the file ingot_psql-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ingot_psql-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for ingot_psql-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7724907ba922d52bed5bbc6e8f6b605915b9b67ff1f7172ccc5424b9215ddf4
MD5 94883cfb06f9ffd26bb45ee5ba0dda8b
BLAKE2b-256 d5e1c0f16cfa580d416fbe9c773192fd19b9aa9ffd778e115c7b7afd49d2b050

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page