Skip to main content

Official Infisical SDK for Python

Project description

infisical

Open-source, end-to-end encrypted tool to manage secrets and configs across your team, devices, and infrastructure.

Test Coverage Package version Supported Python versions MIT License

Links

Installation

You need Python 3.7+.

$ pip install infisical

Initialization

If your app only needs to connect to one Infisical project, you should use infisical.connect. If you need to connect to multiple Infisical projects, use infisical.createConnection.

Both connect and createConnection take a parameter token and pull in the secrets accessible by that Infisical token.

import infisical

infisical.connect("your_infisical_token")

Options

  • token: The service token from which to retrieve secrets
  • site_url: Your self-hosted Infisical site URL. Default: https://app.infisical.com.
  • attach_to_process_env: Whether or not to attach fetched secrets to os.environ. Default: false.
  • debug: Turns debug mode on or off. If debug mode is enabled then the SDK will attempt to print out useful debugging information. Default: false.

Access a Secret Value

db_url = infisical.get("DB_URL")

Contributing

See Contributing documentation

License

infisical-python is distributed under the terms of the MIT license.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infisical-1.0.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

infisical-1.0.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file infisical-1.0.0.tar.gz.

File metadata

  • Download URL: infisical-1.0.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for infisical-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2883841db053ed824d4b42cd0cddb97b61564a8a27d1202fa98322ec27604fdb
MD5 6470cc6e565072bfaecd547f37db35fc
BLAKE2b-256 05beab153f662236a8ab9979d23fc5bb46555c9ba312610b918822cd60040ad0

See more details on using hashes here.

File details

Details for the file infisical-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: infisical-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for infisical-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc468c4b864b174e9ac4ccdbbc461f3ba160fc2a9f30ed68703f3cf25aaf9a49
MD5 d2b1b97ab8edd155d504aea61d365843
BLAKE2b-256 513d3054b7cbcefa80719e4e0d3a7cfece06e75829a95afe5ea3b144685310d3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page