Skip to main content

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.

Github Action Status

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.
  • click package: Install using conda install -c conda-forge click.
  • postgresql package: Install using conda install -c conda-forge postgresql.

Installation

  1. 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
    
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msnoisedb-0.1.4.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msnoisedb-0.1.4-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for msnoisedb-0.1.4.tar.gz
Algorithm Hash digest
SHA256 87598f73afdb607a0b74062d89cc53cdc4f92e39e2679f62f1b9a47d9a883f25
MD5 a73301d240d39160077a61a4922b6f3b
BLAKE2b-256 c457425b6d7a742b2c094371726e1d1ff9dc0ef9090480f8d922cc6692fbb375

See more details on using hashes here.

Provenance

The following attestation bundles were made for msnoisedb-0.1.4.tar.gz:

Publisher: publish.yml on ROBelgium/msnoise-db

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for msnoisedb-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8337640dac6245bef69ed1e25c6c2e6dc3c9c4f1ac2ea0aab29aab8c6edd886f
MD5 5941f970416acc1126ed6a979d545e8a
BLAKE2b-256 b905979362e5810ae8925c6cd19a1a7258ca41b4800743b263d70420d52f8708

See more details on using hashes here.

Provenance

The following attestation bundles were made for msnoisedb-0.1.4-py3-none-any.whl:

Publisher: publish.yml on ROBelgium/msnoise-db

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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