Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for configset, version 1.36
Filename, size File type Python version Upload date Hashes
Filename, size configset-1.36-py2.py3-none-any.whl (9.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page