Skip to main content

Load secrets from Infisical into environment variables

Project description

secretsloader

Pacote para carregamento centralizado de secrets do Infisical em variáveis de ambiente.

Instalação

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

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

secretsloader-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

secretsloader-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file secretsloader-0.1.0.tar.gz.

File metadata

  • Download URL: secretsloader-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for secretsloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3e5395a441b730e18da5f37e028c37b679d7d355258ac3091bbd0c8925a8e38
MD5 4a3adeb9527cbefc60efe39efbb24594
BLAKE2b-256 c98575d3ab0452dab0da1f837e45bb0e613984fe5105df94bdf10daffc90d9ab

See more details on using hashes here.

File details

Details for the file secretsloader-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: secretsloader-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for secretsloader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7c37b096ed107ea9297bb5858852b01c8022f70ef58ac1e622cc3ee2661ed2a
MD5 d7d05709da375cdde849a9748ceaec5f
BLAKE2b-256 72129b2206306478802391d3e1890e6f26b86afa8c7e0f424c529e963fe5fcb6

See more details on using hashes here.

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