BlackHoles
Black Holes is a simple way to handle your projects secrets using a database or Consul.io.
IMPORTANT: Work-in-Progress. Beta version. Non production software.
Install
Installing from Pip
(pyenv) $ pip install blackhole
Installing from sources:
(pyenv) $ cd black_holes
(pyenv) $ python setup.py install
Usage:
SqliteBlackHole Database BlackHole based
simple usage
Plain {'key': 'values'} storage.
from black_holes 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'])
# >>> value
Advanced usage:
Encrypted {'key': 'values'} storage.
from black_holes import SqliteBlackHole
# Create a new SqliteBlackHole instance
near_black_hole = SqliteBlackHole()
# Create a AES Encrypted key
near_black_hole['encrypted_key'] = 'it is a secret'
# Encrypted value
print(near_black_hole['key'])
# >>> Encrypted Value
# Decrypted value
print(near_black_hole['decrypted_key'])
# >>> Decrypted Value
ConsulBlackHole Consul.io BlackHole based
Simple usage
Plain {'key': 'values'} storage.
from black_holes import ConsulBlackHole
# Create a new DEV ConsulBlackHole instance
remote_black_hole = ConsulBlackHole()
# You can also creates a new ConsulBlackHole instance using consul auth token
# remote_black_hole = ConsulBlackHole(token='{consul-io-token}')
# Create a key called "key" with value "value"
remote_black_hole['key']= 'value'
# print key
print(remote_black_hole['key'])
# >>> value
Made it with ❤ by DTecDeal
Release files for black-holes 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| black_holes-0.0.3.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| black_holes-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:8.9 kB
Release files / black_holes-0.0.3.tar.gz
| Download URL | black_holes-0.0.3.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18f9fbcbeeba4b95c49804c124dd6337298e208da2a43d97f86364173252fe5b
|
|
BLAKE2b-256 checksum How to use checksums |
fe3cb031077222bb261a4ee1bb824cf9eb4b5e2cb1df545189db9b01e24ac23c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / black_holes-0.0.3-py3-none-any.whl
| Download URL | black_holes-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25c2474864db633e26419cb93d4d06ee05873e0c1cb6ca14449200c827c34d0f
|
|
BLAKE2b-256 checksum How to use checksums |
285316bd0dd3cb659c41917ec01639e733a27ac33f5ebcc01010657a9cb4af43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|