Skip to main content

No project description provided

Project description

dbm-systray

Database Tray Application

Installation

# Create a virtual environment
python -m venv venv

# Activate virtual environment (Windows)
venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Usage

# View help
python src/db_manager/app.py -h

usage: app.py [-h] [-c CONFIG] [-p PORTS PORTS]

Database Tray Application

options:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        path to the configuration file (default: configs/config.json)
  -p PORTS PORTS, --ports PORTS PORTS
                        available ports: <starting_port_number> <num_ports>

Configuration File Format

The config.json file should be a JSON array where each element represents an entry with the following properties:

  • name (string): The name of the resource.
  • path (string): The file path to the resource. Only .sqlite and .json file extensions are supported.

JSON Schema for config.json

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      },
      "path": {
        "type": "string",
        "pattern": "\\.(sqlite|json)$"
      }
    },
    "required": ["name", "path"],
    "additionalProperties": false
  }
}

Environment Configuration

The program will read the starting directory and look for a .env file. In the .env file, you can configure the following environment variables:

  1. EDITOR - Specifies the text editor to be used.
  2. SQLITE_BROWSER_EXE - Path to the SQLite browser executable.
  3. SQLITE_WEB - Configuration for the SQLite web server.
  4. LITECLI - Path to the LiteCLI executable for interacting with SQLite databases.

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

dbm_systray-0.2.0.tar.gz (68.6 kB view details)

Uploaded Source

Built Distribution

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

dbm_systray-0.2.0-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file dbm_systray-0.2.0.tar.gz.

File metadata

  • Download URL: dbm_systray-0.2.0.tar.gz
  • Upload date:
  • Size: 68.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.7 Windows/10

File hashes

Hashes for dbm_systray-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3cae9e6c4077f55ffbb7482072cb2b57b234ed2756dfc9648a71d831b13b7727
MD5 bfae7ece9ce84e77d12acf12b4f459a1
BLAKE2b-256 eab10b1b00960905a9fbf8cc6ea4a7fd5236e6af388090ece21d2ddc18070341

See more details on using hashes here.

File details

Details for the file dbm_systray-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dbm_systray-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.7 Windows/10

File hashes

Hashes for dbm_systray-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 956f19b83a543defeee3b720e42121bef854b748fe4247e7bf12b163033e4cf6
MD5 03e282eb18f596b8eb353c47fc58bb79
BLAKE2b-256 678c61422e511bd1ee1cbadc737406bf4b93d596e8a9ca1209a7f8dae0e23904

See more details on using hashes here.

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