simple write config/setting, wrap of configparser
Project description
configset
simple write config/setting, wrap of configparser
Installing
Install and update using pip
_:
.. code-block:: text
$ pip install configset
configset supports Python 2 and newer, Python 3 and newer, and PyPy.
.. _pip: https://pip.pypa.io/en/stable/quickstart/
Example
What does it look like? Here is an example of a simple configset program:
.. code-block:: python
import configset
class pcloud(object):
def __init__(self, **kwargs):
...
self.CONFIG.configname = os.path.join(os.path.dirname(__file__), 'config.ini')
self.CONFIG = configset.configset(self.CONFIG.configname)
...
self.username = self.CONFIG.read_config('AUTH', 'username', "admin")
self.password = self.CONFIG.read_config('AUTH', 'password', "12345678")
...
Support
- Python 2.7 +
- Windows, Linux
Links
- License:
BSD <https://bitbucket.org/licface/configset/src/default/LICENSE.rst>
_ - Code: https://bitbucket.org/licface/configset
- Issue tracker: https://bitbucket.org/licface/configset/issues
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for configset-1.36-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b366630c8283b0ba6735442fcdbc839b38dcd544dff9095a57d9c1fcb489daa9 |
|
MD5 | ad0b833cf5443c85106256e9c7667d02 |
|
BLAKE2b-256 | 0b99303b3944b465e47a7d9fbc7d217f74e48fb2d6359f378f3db4af73fa1190 |