The database minion for MSNoise — a self-contained, user-run PostgreSQL server
Project description
MSNoise-DB CLI Tool
This is a Python-based command-line interface (CLI) tool for managing a portable postgresql server for MSNoise.
The tool allows you to install, start, stop, create, and drop databases.
Features
- Setup PostgreSQL.
- Start PostgreSQL server in the background (custom port by default 5099, configurable)
- Stop PostgreSQL server.
- Create a new database.
- Drop an existing database.
Prerequisites
- Python 3.11 or above.
clickpackage: Install usingconda install -c conda-forge click.postgresqlpackage: Install usingconda install -c conda-forge postgresql.
Installation
-
Install the code
pip install git+https://github.com/ROBelgium/msnoise-db
if your console doesn't have git, you can access the zip directly:
pip install https://github.com/ROBelgium/msnoise-db/archive.master.zip
-
Create a new folder to store the database data
Usage
Start a PostgreSQL Server (and set up if not existing)
Start the PostgreSQL server in the background.
msnoisedb start
Stop PostgreSQL Server
Stop the running PostgreSQL server.
msnoisedb stop
Create a New Database
Create a new database.
msnoisedb create-db DATABASE_NAME
Drop an Existing Database
Drop an existing database.
msnoisedb drop-db DATABASE_NAME
List databases
Drop an existing database.
msnoisedb list-db
Configuring an MSNoise project
Create a new project database
msnoisedb create-db test_database
Initialise the db in msnoise:
msnoise db init
Launching the init
Welcome to MSNoise
What database technology do you want to use?
[1] sqlite
[2] mysql
[3] postgresql
Choice: 3
Server: [localhost]: localhost:5099
Database: [msnoise]: test_database
Username: [msnoise]: msnoise
Password (not shown as you type): msnoise
Table prefix: []:
Installation Done! - Go to Configuration Step!
Notes
- Supported Platforms: The tool is designed to work on Windows, Linux and MacOS platforms.
License
This project is licensed under the EUPL License. See the LICENSE file for more details.
Acknowledgements
- Click for creating powerful command-line interfaces.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file msnoisedb-0.1.4.tar.gz.
File metadata
- Download URL: msnoisedb-0.1.4.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87598f73afdb607a0b74062d89cc53cdc4f92e39e2679f62f1b9a47d9a883f25
|
|
| MD5 |
a73301d240d39160077a61a4922b6f3b
|
|
| BLAKE2b-256 |
c457425b6d7a742b2c094371726e1d1ff9dc0ef9090480f8d922cc6692fbb375
|
Provenance
The following attestation bundles were made for msnoisedb-0.1.4.tar.gz:
Publisher:
publish.yml on ROBelgium/msnoise-db
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
msnoisedb-0.1.4.tar.gz -
Subject digest:
87598f73afdb607a0b74062d89cc53cdc4f92e39e2679f62f1b9a47d9a883f25 - Sigstore transparency entry: 1286569945
- Sigstore integration time:
-
Permalink:
ROBelgium/msnoise-db@bf2f8b430afc2b0e9e0841b84e880973b088a6f2 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/ROBelgium
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bf2f8b430afc2b0e9e0841b84e880973b088a6f2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file msnoisedb-0.1.4-py3-none-any.whl.
File metadata
- Download URL: msnoisedb-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8337640dac6245bef69ed1e25c6c2e6dc3c9c4f1ac2ea0aab29aab8c6edd886f
|
|
| MD5 |
5941f970416acc1126ed6a979d545e8a
|
|
| BLAKE2b-256 |
b905979362e5810ae8925c6cd19a1a7258ca41b4800743b263d70420d52f8708
|
Provenance
The following attestation bundles were made for msnoisedb-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on ROBelgium/msnoise-db
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
msnoisedb-0.1.4-py3-none-any.whl -
Subject digest:
8337640dac6245bef69ed1e25c6c2e6dc3c9c4f1ac2ea0aab29aab8c6edd886f - Sigstore transparency entry: 1286570073
- Sigstore integration time:
-
Permalink:
ROBelgium/msnoise-db@bf2f8b430afc2b0e9e0841b84e880973b088a6f2 -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/ROBelgium
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bf2f8b430afc2b0e9e0841b84e880973b088a6f2 -
Trigger Event:
release
-
Statement type: