Skip to main content

Simple tooling to seamlessly parse ini file

Project description

It may feel boring to rewrite a parser fore every project you start.

Filling your ini file with pythonic values will make you save time.

Does the boring stuff for you as long as you behave like a conscenting adult.

  >>> config = """
  ... [SECTION]
  ... intvalue=2
  ... floatvalue=7.8
  ... stringvalue=some_value
  ... cr_list = item1
  ...           item2
  ... boolean=False
  ... comma_list_s='abc','def'
  ... comma_list_i=1,2,3
  ... comma_list_f=1.0,2.5,3
  ... """
  ...

  >>> from simpleiniparser.simple_iniconfig_parser import from_string
  >>> config = from_string(config)

  >>> config['SECTION']['floatvalue']
  7.8
  >>> config['SECTION']['cr_list']
  ['item1', 'item2']

"""

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

simpleiniparser-0.3.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

simpleiniparser-0.3.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file simpleiniparser-0.3.0.tar.gz.

File metadata

  • Download URL: simpleiniparser-0.3.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for simpleiniparser-0.3.0.tar.gz
Algorithm Hash digest
SHA256 99be92121f054692238a05fdb7407cdcbd511990c21b857cb1917a627ba036ef
MD5 d5af6b05650a24e6bb2ec77771e2c445
BLAKE2b-256 309377da86c3755d6cec742d532f45af513d0bcae5fc4fd3c3489fd4599c6d85

See more details on using hashes here.

File details

Details for the file simpleiniparser-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: simpleiniparser-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for simpleiniparser-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f375dc035e7552711b218bc72b94dc4f847a99040ab45545f87a0bcc707e3e99
MD5 8b2a497a36483f9ca73dec5d32fde732
BLAKE2b-256 5fac28f2169a65e3632382f6e3fb78feb703a58f801954699a9eeaff5da69c47

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