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.envfiles depth-first, followingENV_FILEpointers between files. Useful for projects with layered or environment-specific config.get_required_env(key)— reads an env var and raises a clearValueErrorif it's missing, rather than silently returningNone.
pronto-utils CLI:
pronto-utils vscode <profile>— installs VS Code debug launch configs into a project directory (e.g.fastapiprofile).
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43fc2be4e2b3b2f0b78d30cdd81fccc17726752b237e13615530aad359a06fbf
|
|
| MD5 |
030c17f919e973964d3ae3ebf264fb8b
|
|
| BLAKE2b-256 |
87987e11d622c54a7651b4f09873b8cbdd204ec182e2ab163869083fabc7b6b0
|
Provenance
The following attestation bundles were made for pronto_utils-0.0.1.tar.gz:
Publisher:
publish.yml on justTil/pronto-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pronto_utils-0.0.1.tar.gz -
Subject digest:
43fc2be4e2b3b2f0b78d30cdd81fccc17726752b237e13615530aad359a06fbf - Sigstore transparency entry: 1616039854
- Sigstore integration time:
-
Permalink:
justTil/pronto-utils@37d47baf6c4fde19b26bf8eddc4a4ddbc4b07c0e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/justTil
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@37d47baf6c4fde19b26bf8eddc4a4ddbc4b07c0e -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
203762979b6b01af234059a140c43ad9f1c7d18859cab00e5f8550793baab850
|
|
| MD5 |
29085b879c0fc7ed04fcd72654bf7607
|
|
| BLAKE2b-256 |
b3ac530b513a44a3b68f23ce25b0a52e89bc7f04bb69cf1b170e3fb6c94b3b87
|
Provenance
The following attestation bundles were made for pronto_utils-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on justTil/pronto-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pronto_utils-0.0.1-py3-none-any.whl -
Subject digest:
203762979b6b01af234059a140c43ad9f1c7d18859cab00e5f8550793baab850 - Sigstore transparency entry: 1616039888
- Sigstore integration time:
-
Permalink:
justTil/pronto-utils@37d47baf6c4fde19b26bf8eddc4a4ddbc4b07c0e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/justTil
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@37d47baf6c4fde19b26bf8eddc4a4ddbc4b07c0e -
Trigger Event:
push
-
Statement type: