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.1

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.1
File Size Uploaded Provenance Actions
grow_infisical-0.1.1.tar.gz 134.7 kB Without provenance Details for grow_infisical-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 227.8 kB

Release files / grow_infisical-0.1.1.tar.gz

Download URL grow_infisical-0.1.1.tar.gz
Size 134.7 kB
Tags Source
SHA-256 checksum
How to use checksums
002e333c40741eaa909af94319a0be932b89fdf277f70d628dfe6919543eaf1d
BLAKE2b-256 checksum
How to use checksums
ae246fee77295128a32f49ee0c563f5b9acd88654c7c74015c77e96897bc3830
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.1-py3-none-any.whl

Download URL grow_infisical-0.1.1-py3-none-any.whl
Size 93.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e41dc5ebbbbc775b041b04809fdab12ef337582322cd50f5356b4f957d1e80b3
BLAKE2b-256 checksum
How to use checksums
d862b16a04c728d25e6b9185189fe5486d2324174a93c4b41483f647a9f5cba9
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.1

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.1 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