Skip to main content

Database manager command line interface and API for yhttp.

Project description

yhttp-dbmanager

A yhttp extension to create and remove database(s) using command line and API.

Contribution

Dependencies

Install postgresql brefore use of this project.

apt install postgresql

Prepare

Create and grant the postgresql role with createdb permission to authenticate the current unix user within postgresql using the peer authentication.

echo "CREATE USER ${USER} WITH CREATEDB" | sudo -u postgres psql
# Or
echo "ALTER USER ${USER} CREATEDB" | sudo -u postgres psql

Virtualenv

Create virtual environment:

make venv

Delete virtual environment:

make venv-delete

Activate the virtual environment:

source ./activate.sh

Install (editable mode)

Install this project as editable mode and all other development dependencies:

make env

Tests

Execute all tests:

make test

Execute specific test(s) using wildcard:

make test F=tests/test_db*
make test F=tests/test_form.py::test_querystringform

refer to pytest documentation for more info about invoking tests.

Execute tests and report coverage result:

make cover
make cover F=tests/test_static.py
make cover-html

Lint

make lint

Distribution

Execute these commands to create Python's standard distribution packages at dist directory:

make sdist
make wheel

Or

make dist

to create both sdidst and wheel packages.

Clean build directory

Execute:

make clean

to clean-up previous dist/* and build/* directories.

PyPI

WARNING: Do not do this if you'r not responsible as author and or maintainer of this project.

Execute

make clean
make pypi

to upload sdists and wheel packages on PyPI.

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

yhttp_dbmanager-4.0.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

yhttp_dbmanager-4.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file yhttp_dbmanager-4.0.0.tar.gz.

File metadata

  • Download URL: yhttp_dbmanager-4.0.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for yhttp_dbmanager-4.0.0.tar.gz
Algorithm Hash digest
SHA256 7134e0332060219ff54bded154f7f41bfa4ae9e0023c3d75cff29d61b65cda1d
MD5 c710cfb96941d83f0fcd611c1ceb712c
BLAKE2b-256 65a3da89994eecfa4df93f6a10cb57e0d0a2f7b133f468bec3fcbf2585b10a69

See more details on using hashes here.

File details

Details for the file yhttp_dbmanager-4.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yhttp_dbmanager-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1afb885edfcfa11fc273fb9491d5c0ad361a5d5b37ca1f9878f2a09de92f7d4a
MD5 ff59d1818d3f7bf6dbe29baf668085b5
BLAKE2b-256 59e5341e189b0358f352555137a3e945a9d02ca75b745aed3bd89af1c1802723

See more details on using hashes here.

Supported by

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