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 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
Built Distribution
File details
Details for the file yhttp_dbmanager-3.0.0.tar.gz
.
File metadata
- Download URL: yhttp_dbmanager-3.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9eb2c0d8493d2759f91d919a35d242d204f3abcd2df614dcc7c70f7fd3b9aee |
|
MD5 | c1ef0a9942cd50a7215231b3dfde90d6 |
|
BLAKE2b-256 | e5e8e3b7315b455e921a10149d9e8b87e203a0fd0befcde7ec981803d1c7e150 |
File details
Details for the file yhttp_dbmanager-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: yhttp_dbmanager-3.0.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabbd16ca091cea7cf0f9adea95ec6772e22ff25581001ca68a63460eeb759fd |
|
MD5 | 7fdefe25652b1f69f3fa20f4c52f5c17 |
|
BLAKE2b-256 | 5ebd879d7c45137e4e31e1268abe3d5dd97e48273c6b1d46d4364197e1c01456 |