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.2.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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: secretsloader-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 61d7e1406657959ee9f1dcf0458e95d82152dc3938f53639e3da76aa67b08324
MD5 4ad37078291c9559736f737c28cf9220
BLAKE2b-256 327ce782e02f22ea67b2692c70aff0b8564314b64e6c69e52abf61afe32f5eea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: secretsloader-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fdf16c4c1f3b55af31340ee8398110b9e0f0c69767ab4c3e56232aca0273978c
MD5 74cac45c35259303a3f91701844f06e5
BLAKE2b-256 a3143d96e0a55e5882d30d9f8bf71455f66e43aa25b7d4d8b9b3b85aa1f24ba9

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