Skip to main content

grow-infisical (Python)

Python SDK for Infisical by Grow Codes. Unofficial and community maintained; "Infisical" is a trademark of Infisical, Inc..

pip install grow-infisical
from grow_infisical import BatchCreateSecret, InfisicalClient

# Reads GROW_INFISICAL_URL / INFISICAL_API_URL, INFISICAL_CLIENT_ID + INFISICAL_CLIENT_SECRET
# (Universal Auth) or INFISICAL_TOKEN, INFISICAL_PROJECT_ID and INFISICAL_ENVIRONMENT.
with InfisicalClient.from_env() as client:
    client.secrets.create_secret("API_KEY", "s3cret", comment="demo")
    print(client.secrets.get_secret("API_KEY").value.reveal())
    client.secrets.update_secret("API_KEY", value="rotated")
    client.secrets.create_secrets([BatchCreateSecret("A", "1"), BatchCreateSecret("B", "2")])
    client.secrets.load_env(secret_path="/app")          # like `infisical run`
    print(client.secrets.export_dotenv())                # KEY="value" lines
    client.folders.create_folder("app")
    client.tags.create_tag("team-a", "#00aa00")
    print(client.projects.list_environments())
    # SPEC SecretsProvider: "a/b/KEY" = folder /a/b, key KEY (folders created on set)
    client.provider.set("app/DB_PASSWORD", "pw")
    print(client.provider.get_string("app/DB_PASSWORD"))

Auth methods: UniversalAuth(client_id, client_secret) (login/renew/revoke, automatic refresh), TokenAuth(token) (identity token, user JWT or st. service token), KubernetesAuth, AwsIamAuth; pass one as InfisicalConfig(auth=...).

The async client has the same modules and methods:

import asyncio
from grow_infisical import AsyncInfisicalClient

async def main() -> None:
    async with AsyncInfisicalClient.from_env() as client:
        print(await client.health())
        print((await client.secrets.list_secrets()).secrets)

asyncio.run(main())
  • Python 3.10 or newer, typed (py.typed), httpx based, environment proxies ignored unless configured.
  • Retries with full-jitter backoff and Retry-After, connect/request/total timeouts, cancellation, hooks and a silent-by-default logging logger named grow_infisical.
  • Credentials are wrapped in Secret and never appear in repr(), logs or error messages.
  • grow_infisical.testing ships in-memory fakes and the conformance runner.

Documentation: https://grow-codes-packages.github.io/infisical/ · Source: https://github.com/grow-codes-packages/infisical · Licence: Apache-2.0

Metadata

Release files for grow-infisical 0.1.0

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

Source distribution (sdist)

Source distribution for grow-infisical 0.1.0
File Size Uploaded Provenance Actions
grow_infisical-0.1.0.tar.gz 132.5 kB Without provenance Details for grow_infisical-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grow-infisical 0.1.0
File Interpreter ABI Platform Actions
grow_infisical-0.1.0-py3-none-any.whl Python 3 none any Details for grow_infisical-0.1.0-py3-none-any.whl

Total release size: 225.0 kB

Release files / grow_infisical-0.1.0.tar.gz

Download URL grow_infisical-0.1.0.tar.gz
Size 132.5 kB
Tags Source
SHA-256 checksum
How to use checksums
014a8567754cc02a696dddb911f256127c436dda61884bc6afc88fd33f4cff06
BLAKE2b-256 checksum
How to use checksums
10fe2f37784be44c3d580617dd6750249dad324996f1185631baa003b293eab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / grow_infisical-0.1.0-py3-none-any.whl

Download URL grow_infisical-0.1.0-py3-none-any.whl
Size 92.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
864720739ef0c973c36b744a454e5f79257770bec83f0d9a010dd43f6c68f0c2
BLAKE2b-256 checksum
How to use checksums
893a690b2b089091e6d286836c476b6d7965b4a3f6e2c761006ab76a14aeaae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for grow-infisical 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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