Skip to main content

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

  1. 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.

  2. 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.

  3. 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

private_values-0.1.0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

private_values-0.1.0-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