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

Uploaded Source

Built Distribution

black_holes-0.0.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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