Skip to main content

A simple module allows you to quickly create and modify a configuration file. Based on 'configparser'.

Project description

A simple shell allows you to quickly save and then load settings or any other project data, based on the "configparser" module. Allows you to save variable types and also supports "datetime".

PyPi GitHub

Examples

Import:

>>> import uniconf

Create an instance:

>>> config = uniconf.Config()

Review:

>>> config.struct()
[info]
name:{str}
number:{int}

Сreate and edit:

>>> a = 123
>>> config.set("info_2", "number", a)
>>> config.struct()
[info]
name:{str}
number:{int}
[info_2]
number:{int}

Get:

>>> config.get("info_2", "number")
123
>>> config("info_2", "number")
123
>>> type(config("info_2", "number"))
<class 'int'>

Delete:

>>> config.delete("info", "name")
>>> config.struct()
[info]
number:{int}
[info_2]
number:{int}

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

UniConf-0.1.4.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file UniConf-0.1.4.tar.gz.

File metadata

  • Download URL: UniConf-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for UniConf-0.1.4.tar.gz
Algorithm Hash digest
SHA256 dd344a78a891b3bf8bea167898ad84a540357c21c3e5a9279004bfca3705ba93
MD5 100c2b749d662095f3e925ca4a7ed8a8
BLAKE2b-256 4fded5c2b7bae02536af3fad01b36939915301e125ff4936b0af04f7b8765472

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