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.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-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: UniConf-0.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.tar.gz
Algorithm Hash digest
SHA256 5eb36259fafad761ddba43cced371e3a631204d0083963bbc07b63215744e85e
MD5 e2aff9658cac821130f1641086647b0c
BLAKE2b-256 bd444aff9f3f0781eabb58afcd3d7b527682eb5ac219ddd752b16a7315e1e989

See more details on using hashes here.

File details

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

File metadata

  • Download URL: UniConf-0.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-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc74c049442164897ce45713a55c9f423caa977c479717c780ca7d469cecf66
MD5 4ad56fa1ed25383c965d1995fad9dc63
BLAKE2b-256 05442940a43bcfc9b2d3a3edad231f6a208cfebfba981b88d69940913aa04386

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