Skip to content

Official Infisical SDK for Python (Soon to be transfered under Infisical)

License

Notifications You must be signed in to change notification settings

MicahJackson/infisical-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Official Infisical SDK for Python (Soon to be transfered under Infisical)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%