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
Built Distribution
File details
Details for the file yhttp_dbmanager-3.0.2.tar.gz
.
File metadata
- Download URL: yhttp_dbmanager-3.0.2.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d5364511450ab9fbc7730c8ca611805d3bf06b231704fa06dc878e9943bf062 |
|
MD5 | 0cca9afbcac5393ee6229031cfd7f270 |
|
BLAKE2b-256 | a95ed56ebd54bc62e9c9ccfbcb0e7c2993b8210e1793fe6b6e4cb644fc830acf |
File details
Details for the file yhttp_dbmanager-3.0.2-py3-none-any.whl
.
File metadata
- Download URL: yhttp_dbmanager-3.0.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be5785ba74b200144d23dd70ef663b6e5356700ab1f6684455121c45668fee1 |
|
MD5 | cba3b7efec81e47d879896dca29482f0 |
|
BLAKE2b-256 | 6277451482344c74bb2a9ab82761c4c0e9b350af4e8455131fa479fbc4c649a6 |