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.1.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for infisical-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f4e97cf67531f01717850485407401a6ddbbe92e6460cc6dfdfe8bd1b61445b2
MD5 d4b059deab69d02b20d7ceca6ae0562e
BLAKE2b-256 54c39c6eada44c0e5d5137ff8e670cf5aca69173465bc867b77fcebe4a817a8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infisical-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 099a4eb708c2215a6ff6798b9f9ba40eafa2b352522720ce9970991972f5d4d1
MD5 a10561ab24f8104cc72c945e3c322756
BLAKE2b-256 1fe6ec5e8bc7ddedac7b6a791e95fea516d47a23ee9f3bbdc1b45092b49d531f

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