Skip to main content

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

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)

Source distribution for secretsloader 0.1.3
File Size Uploaded
secretsloader-0.1.3.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for secretsloader 0.1.3
File Interpreter ABI Platform
secretsloader-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page