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".

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.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

UniConf-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: UniConf-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.0

File hashes

Hashes for UniConf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 254b4ae504a956f424da2d0f4496be16be5a79c8f3815ef3c6c8beb1913b0640
MD5 ae6150be3d80295c05d15d1738bb7dea
BLAKE2b-256 8b5b2127b9c123c3e7a9307c54ab1a29a69e3d8d605f2918ed5c1156f8e84bb2

See more details on using hashes here.

File details

Details for the file UniConf-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: UniConf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.0

File hashes

Hashes for UniConf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 575c118a36e5f76e1e51a75ec95228a5fca75047ffd5f3075d60906132bdb3c5
MD5 8b905fa58abbb00f3a9d277ae0f81a84
BLAKE2b-256 8ca91714aea87d5124f491dfec76a5e1b5580694ba1ea1e24484415c55ee6fde

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