Skip to main content

Secure launcher and encrypted config bootstrap library for Python projects

Project description

minidarkmimi-start-cli

A secure launcher and encrypted config bootstrap library for Python projects.

Install

pip install minidarkmimi-start-cli

Import path stays the same:

from start_cli import EncryptedConfig, ConfigLoader, AppSettings, create_cli

What it provides

  • encrypted config storage via EncryptedConfig
  • smart config loading with ConfigLoader and load_config
  • reusable Click CLI bootstrap via create_cli
  • environment-aware settings via AppSettings
  • helper utilities for masking secrets and maintaining .gitignore

Quick example

from start_cli import EncryptedConfig, create_cli

cfg = EncryptedConfig.create("config.env", password="example-password")
cfg["API_TOKEN"] = "example-token"
cfg.save()


def start_app() -> None:
    print("app started")


cli = create_cli(
    app_name="My Project",
    app_callable=start_app,
    required_envs={"API_TOKEN": "API token"},
)

Links

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

minidarkmimi_start_cli-1.0.2.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

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

minidarkmimi_start_cli-1.0.2-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file minidarkmimi_start_cli-1.0.2.tar.gz.

File metadata

  • Download URL: minidarkmimi_start_cli-1.0.2.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.7

File hashes

Hashes for minidarkmimi_start_cli-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ff8cf145845260559e8e2a5a62d42c4bc5df82d4a384b64dd1e9b75ceb3949ed
MD5 473406f1690112945bf735fffb99f62d
BLAKE2b-256 60df41c54066e07eca258fbe10742c16c9270bfb866008271f53d28873396cd1

See more details on using hashes here.

File details

Details for the file minidarkmimi_start_cli-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for minidarkmimi_start_cli-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4888c399066577ff761e7b239242c7c68eb596ca6f7dfbcc1ebe760c35b4c79a
MD5 6930dc59ca9b3a73ea481f10cf247717
BLAKE2b-256 0b2adefebaf0c6bba7f5ce82569151f8d7e5c4610d6357710074c445ef35f60f

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