Skip to main content

Secrets handle lib.

Project description

BlackHoles

Black Holes is a simple way to handle your projects secrets using a database or Consul.io.

Install

Installing from Pip

(pyenv) $ pip install blackhole

Installing from sources:

(pyenv) $ cd black_holes
(pyenv) $ python setup.py install

Usage:

simple usage

Plain {'key': 'values'} storage.

from black_hole import SqliteBlackHole

# Create a new SqliteBlackHole instance
near_black_hole = SqliteBlackHole()

# Create a key called "key" with value "value"
near_black_hole.key = 'value'

# print key
print(near_black_hole.key)

Advanced usage:

Encrypted {'key': 'values'} storage.

from black_hole import SqliteBlackHole

# Create a new SqliteBlackHole instance
near_black_hole = SqliteBlackHole()

# Encrypted key
near_black_hole.encrypted_key = 'it is a secret'

# Encrypted value
print(near_black_hole.key)

# Decrypted value
print(near_black_hole.decrypted_key)

Made it with ❤ by DTecDeal

Project details


Download files

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

Source Distribution

black_holes-0.0.2.tar.gz (4.3 kB view hashes)

Uploaded source

Built Distribution

black_holes-0.0.2-py3-none-any.whl (8.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page