Skip to main content

lazy-locker SDK for Python

SDK Python pour lazy-locker - Gestionnaire de secrets sécurisé.

Installation

pip install lazy-locker
# ou
uv add lazy-locker

Prérequis

L'agent lazy-locker doit être démarré :

lazy-locker  # Entrez votre passphrase dans le TUI

L'agent reste actif pendant 8 heures.

Usage

Injection automatique

from lazy_locker import inject_secrets
import os

# Injecte tous les secrets dans os.environ
inject_secrets()

# Utilisez vos secrets normalement
api_key = os.environ["MY_API_KEY"]

Récupération manuelle

from lazy_locker import get_secrets, get_secret

# Tous les secrets
secrets = get_secrets()
print(secrets)  # {"MY_API_KEY": "xxx", "DB_PASSWORD": "yyy"}

# Un secret spécifique
api_key = get_secret("MY_API_KEY")

Vérification de l'agent

from lazy_locker import is_agent_running, status

if is_agent_running():
    info = status()
    print(f"Agent actif, TTL restant: {info['ttl_remaining_secs']}s")
else:
    print("Lancez lazy-locker pour démarrer l'agent")

Comparaison avec python-dotenv

Feature python-dotenv lazy-locker
Secrets en clair sur disque ✅ Oui (.env) ❌ Non (chiffré)
Versioning sécurisé ❌ Non ✅ Oui
Expiration des secrets ❌ Non ✅ Oui
Multi-projet ❌ Non ✅ Oui

Migration depuis python-dotenv

# Avant
from dotenv import load_dotenv
load_dotenv()

# Après
from lazy_locker import inject_secrets
inject_secrets()

# Le reste du code reste identique !

Metadata

Release files for lazy-locker 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lazy-locker 0.0.7
File Size Uploaded Provenance Actions
lazy_locker-0.0.7.tar.gz 3.3 kB Without provenance Details for lazy_locker-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lazy-locker 0.0.7
File Interpreter ABI Platform Actions
lazy_locker-0.0.7-py3-none-any.whl Python 3 none any Details for lazy_locker-0.0.7-py3-none-any.whl

Total release size: 6.7 kB

Release files / lazy_locker-0.0.7.tar.gz

Download URL lazy_locker-0.0.7.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb2a0ae1f235481aca9c8b7f383f04f46b55ef22aabfe8bb636efaa75961859d
BLAKE2b-256 checksum
How to use checksums
d8ee6754dc18bacd4e2a40006f27444eb459dd3cb977758b80fecc320d4de59d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / lazy_locker-0.0.7-py3-none-any.whl

Download URL lazy_locker-0.0.7-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8805463ca47b792308c18f02087c745b00c3e0de4afb40fea9b40f9d5a6e083f
BLAKE2b-256 checksum
How to use checksums
2cd6801772d0534bd420ab9c495839546fbc3b70c472d6cc844fbfa67f93a0ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for lazy-locker 0.0.7

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.

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