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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for black_holes-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a335137c6aa83e622fa0f8a33b2895239edc3f27c2b47b4527cdc039cd550999 |
|
MD5 | b6a7fef36140ee3e3b30fc88328d70d6 |
|
BLAKE2b-256 | b748ecf1adc4b791af955415e94580b1eaf578e2374341afdba8782c17e8ec2d |