Skip to main content

A collection of utility functions for the Pronto project.

Project description

pronto-utils

Shared Python utilities for your python projects.

What's included

pronto_utils.v1 — stable public API:

  • load_env_recursive(start_env_file, prefix, override) — loads a tree of .env files depth-first, following ENV_FILE pointers between files. Useful for projects with layered or environment-specific config.
  • get_required_env(key) — reads an env var and raises a clear ValueError if it's missing, rather than silently returning None.

pronto-utils CLI:

  • pronto-utils vscode <profile> — installs VS Code debug launch configs into a project directory (e.g. fastapi profile).

Installation

pip install pronto-utils

Or, for local development with editable install:

pip install -e ".[dev]"

Usage

from pronto_utils.v1 import load_env_recursive, get_required_env

load_env_recursive(".env")
db_url = get_required_env("DATABASE_URL")

Development

Run tests:

pytest

Versioning

Versions are derived from git tags via hatch-vcs. The file src/pronto_utils/_version.py is auto-generated at build time and is not tracked in version control — the git tag is the source of truth.

To release a new version, tag a commit and build:

git tag v0.2.0
hatch build

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

pronto_utils-0.0.1.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

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

pronto_utils-0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file pronto_utils-0.0.1.tar.gz.

File metadata

  • Download URL: pronto_utils-0.0.1.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pronto_utils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 43fc2be4e2b3b2f0b78d30cdd81fccc17726752b237e13615530aad359a06fbf
MD5 030c17f919e973964d3ae3ebf264fb8b
BLAKE2b-256 87987e11d622c54a7651b4f09873b8cbdd204ec182e2ab163869083fabc7b6b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pronto_utils-0.0.1.tar.gz:

Publisher: publish.yml on justTil/pronto-utils

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

File details

Details for the file pronto_utils-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pronto_utils-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pronto_utils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 203762979b6b01af234059a140c43ad9f1c7d18859cab00e5f8550793baab850
MD5 29085b879c0fc7ed04fcd72654bf7607
BLAKE2b-256 b3ac530b513a44a3b68f23ce25b0a52e89bc7f04bb69cf1b170e3fb6c94b3b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for pronto_utils-0.0.1-py3-none-any.whl:

Publisher: publish.yml on justTil/pronto-utils

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