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 = 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

Project details


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

configset-0.24-py2.py3-none-any.whl (9.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file configset-0.24.tar.gz.

File metadata

  • Download URL: configset-0.24.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for configset-0.24.tar.gz
Algorithm Hash digest
SHA256 8d449e3703c6b8b4e9e3f8614ddc65d2e2b5f33b74fe436b54a84d55bd972fca
MD5 ddb522928e965a20bc88923e126d29e2
BLAKE2b-256 1aaa60ba53bec31c206f09a847638ce34ca389b397745a8b2f44e8172a7752e9

See more details on using hashes here.

File details

Details for the file configset-0.24-py2.py3-none-any.whl.

File metadata

  • Download URL: configset-0.24-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for configset-0.24-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1a14b147440c70a91efbc2716a2de149e2f5e8628cddfc2c40b4a169b6753443
MD5 a2161add928e2655a5b363dd5ae5625c
BLAKE2b-256 cb7f1d6068a322983d625739780f420e061caa82924bce1137d70dcbf0b7cbcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page