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 postgreslq 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 U=db*

Execute all tests and report coverage result:

make cover
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-2.8.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

yhttp_dbmanager-2.8.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yhttp_dbmanager-2.8.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for yhttp_dbmanager-2.8.1.tar.gz
Algorithm Hash digest
SHA256 59734fa9cdae59abac0aa54a7285228285b4102a3b26fa7b98e1b22bf74ebe0c
MD5 050051e34c36ba335c4e175a4b10870a
BLAKE2b-256 03924742b61f75ec21fada98d7fcc50ba37ae2497db48ebc4c0e063d14bfe277

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yhttp_dbmanager-2.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb647badede7a3d40e8742cb84f186b1a0f9cbaf17c5cfd843f4b2a0f48cc817
MD5 ba249e42cea5c3a830d80b7ed692dc67
BLAKE2b-256 a46ed331908f28fb87677e67f91897eb3360f2d205f5abb10aaeb7a590723544

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