Update class attributes from OsEnvironment or RcFile
Reason this release was yanked:
while not used anywhere use new vertion!
Project description
private_values
Inspiration
Designed to use private data like username/pwd kept in OsEnvironment (or RcFile or even both variants) and not open it in public projects.
Main goals: short implementation and OOP usage.
So for your projects it helps you to share it in public and keep private data in secure.
Features
-
Create classes with special attributes, which will be updated from OsEnvirons or RcFile.
By default it must startswith PREFIX PV___.
In case of OsEnvirons - it is very simple.
For RcFile it gives you much more flexibility with ini-sections. -
Ability to set default values.
By this way you can share for example open username/pwd data, end user must create private data in the OS. -
If finally no value withing any special attributes - raise Exception.
You can disable this behaviour.
License
See the LICENSE file for license rights and limitations (MIT).
Release history
See the HISTORY.md file for release history.
Help
See the GUIDE.md file for get started.
Installation
python pip install environs_os_getter_class
Import
from private_values import PrivateValues
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
Built Distribution
Hashes for private_values-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae738a20f80ad87111c6df5c68c55a8a47046453b13080ea53d8857a55c98156 |
|
MD5 | 9f35ed4337040a16252336d21156083e |
|
BLAKE2b-256 | 32d71cc12487aae60d068022fd881b19a1ba4b7ef3600d04b713816c9dc8494d |