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 = configset.configset()
self.CONFIG.configname = os.path.join(os.path.dirname(__file__), 'pcloud.ini')
...
self.username = self.CONFIG.read_config('AUTH', 'username', value="admin")
self.password = self.CONFIG.read_config('AUTH', 'password', value="12345678")
...
Support
- Python 2.7 +, Python 3.x
- 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 Distribution
configset-0.24.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for configset-0.24-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a14b147440c70a91efbc2716a2de149e2f5e8628cddfc2c40b4a169b6753443 |
|
MD5 | a2161add928e2655a5b363dd5ae5625c |
|
BLAKE2b-256 | cb7f1d6068a322983d625739780f420e061caa82924bce1137d70dcbf0b7cbcf |