Skip to main content

Secure Python app launcher with encrypted config loading and reusable CLI bootstrap

Project description

app-startcli

app-startcli is a secure Python app launcher toolkit focused on three startup problems that appear in many real projects:

  • how to load encrypted configuration safely
  • how to standardize startup commands for development and production
  • how to bootstrap a reusable CLI instead of rewriting startup boilerplate in every repository

It is especially useful for projects that want a secure startup flow, encrypted env loading, and a reusable app bootstrap CLI.

Install

pip install app-startcli

Package name vs import name vs command

  • PyPI package name: app-startcli
  • Python import name: start_cli
  • Installed command: start-cli
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
  • optional interactive terminal menu support

Why this package exists

Many Python projects have startup logic scattered across shell scripts, ad-hoc .env loaders, and custom CLI glue.

app-startcli pulls those responsibilities into one reusable package so you can:

  • keep sensitive defaults out of source control
  • enforce CLI args > process env > config defaults
  • share one startup pattern across multiple apps
  • provide a cleaner onboarding experience for developers and operators

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

app_startcli-1.0.3.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

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

app_startcli-1.0.3-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file app_startcli-1.0.3.tar.gz.

File metadata

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

File hashes

Hashes for app_startcli-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e7ac5103e41df20c78eefdc5adddf8d6af66794851f4eeb828de6f4c0c6da065
MD5 f35142a86301cc2a615030ae947d7338
BLAKE2b-256 c06f94043bca0250ff9b49e31217900eb5ea4136d7aea32c5067a5d481fd8b57

See more details on using hashes here.

File details

Details for the file app_startcli-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: app_startcli-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.7

File hashes

Hashes for app_startcli-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e8c466dab4a8b340599ce3aa8413c180c662a0cb64e52ee3cdb3f2ece2409d68
MD5 68ffcce04b76a109ed3cc1bde7607208
BLAKE2b-256 7f01fa38aa357aa925a6a9aedea97e9d9c9d40350d71dca87758bbee53fb811c

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