Release v2.2.4 (What’s new?).

Documentation Status!--None.svg?style=social!--None.svg?style=social

Welcome to pysecret Documentation

pysecret is a library to ease your life dealing with secret information.

For example, if you have a database connection information, so you should not include it in your source code. pysecret is the library that provides several options to deploy or access your secret data securely.


  1. access secret in Environment Variable.

  2. access secret in shell script.

  3. access secret in json file from Python.

  4. deploy your secret to AWS Parameter Store and use it in your application code, see AWS Parameter Store example.

  5. deploy your secret to AWS Secret Manager and use it in your application code, see AWS Secret Manager example.

  6. use AWS Key Management Service to encrypt or decrypt your data, see AWS KMS example.


pysecret is released on PyPI, so all you need is:

$ pip install pysecret

To upgrade to latest version:

$ pip install --upgrade pysecret

About the Author

(\ (\
( -.-)o    I am a lovely Rabbit!

Sanhe Hu is a very active Python Developer Since 2010. Research area includes Machine Learning, Big Data Infrastructure, Block Chain, Business Intelligent, AWS, Distributive System. Love photography, outdoor, arts, game, and also the best Python.

API Document