secretsloader
Pacote para carregamento centralizado de secrets do Infisical em variáveis de ambiente.
Instalação
Compatível com Python 3.12.10 ou superior (testado em 3.12, 3.13 e 3.14).
Usando pip
pip install secretsloader
Usando uv
uv add secretsloader
Usando poetry
poetry add secretsloader
Uso Básico
from secretsloader import load_secrets
# Carregar secrets do Infisical para as variáveis de ambiente
load_secrets()
# Agora você pode acessar os secrets via os.environ
import os
db_password = os.getenv("DB_PASSWORD")
Configuração
Configure as seguintes variáveis de ambiente (pode usar um arquivo .env):
INFISICAL_SITE_URL=https://app.infisical.com
INFISICAL_TOKEN=seu_token_aqui
INFISICAL_PROJECT_ID=seu_project_id
INFISICAL_ENVIRONMENT_SLUG=dev
Funcionalidades
- ✅ Carregamento automático de secrets do Infisical
- ✅ Retry automático em caso de falha
- ✅ Suporte a cache TTL
- ✅ Validação de variáveis obrigatórias
- ✅ Logging detalhado
Documentação Completa
Para documentação detalhada, consulte SECRETSLOADER_DOCUMENTATION.md
Metadata
Release files for secretsloader 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| secretsloader-0.1.3.tar.gz | 6.2 kB | Without provenance | Details for secretsloader-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| secretsloader-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for secretsloader-0.1.3-py3-none-any.whl |
Total release size: 10.5 kB
Release files / secretsloader-0.1.3.tar.gz
| Download URL | secretsloader-0.1.3.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df0208ef596c218e80b4daa6637dfe7f86770ee63ba938add9bf85d640c837e6
|
|
BLAKE2b-256 checksum How to use checksums |
bd4dfb6257c227c0b5a67c48ea9edddfec23db50bcba40e33000c09170897a3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|
Release files / secretsloader-0.1.3-py3-none-any.whl
| Download URL | secretsloader-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cc6c1d2da5a8a8d0ce2a44bdfda32d1365a3bd8338e9d2d5d370af867613320
|
|
BLAKE2b-256 checksum How to use checksums |
a1f71d204a2cb3cc074ccac2d35179830f0a3fb26775f4565da7ed250bf1ffad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.7
|
Security for secretsloader 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.