Skip to main content

Shared Python utilities for your python projects

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.2.tar.gz (19.5 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.2-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pronto_utils-0.0.2.tar.gz
  • Upload date:
  • Size: 19.5 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.2.tar.gz
Algorithm Hash digest
SHA256 9466a26ee237a0e2135cbbfa2f8044cc43024fddc01644de054d182d04f5b15e
MD5 7a085f19f0bec63ec53c93783ec79d12
BLAKE2b-256 8df77036a6c57d44fc71f125cfec974dcf18c577aa323a16c58d61dd4aa859ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for pronto_utils-0.0.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: pronto_utils-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2309a24a57ab308aeca2147ea8f4162f009abdbb4a592f62799f9ccf9ae8604e
MD5 6c5edef3a556db1167002b1349393e9c
BLAKE2b-256 f11fc1c76bed85174eeb21dcc4863af4941c6ca70cd306a00970f3c8bc968bf7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pronto_utils-0.0.2-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