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

Uploaded Source

Built Distributions

simpleiniparser-0.0.16-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

simpleiniparser-0.0.16-py2-none-any.whl (4.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: simpleiniparser-0.0.16.tar.gz
  • Upload date:
  • Size: 3.2 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.0.16.tar.gz
Algorithm Hash digest
SHA256 babef1d31c55ee8fb1635abf4a49cea1dfb39ca75ff39a155da2f311ac8e7a4a
MD5 1ac03b11af6acfa637a105c2db4415b0
BLAKE2b-256 639f81a82a928d8c371411650c71c97a845f0944a2ff125b2115175ceb26220b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: simpleiniparser-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 b04e85cbd7fe9fa8cd1955855945918a370fc536dec4efa44d49deff222528e1
MD5 92bdb3347c1a468789d6d543e0757007
BLAKE2b-256 30fe64b80581f465fdf42275f54cc8577cf7d3fe536aecd8a85dafb67dfafe29

See more details on using hashes here.

Provenance

File details

Details for the file simpleiniparser-0.0.16-py2-none-any.whl.

File metadata

  • Download URL: simpleiniparser-0.0.16-py2-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2
  • 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.0.16-py2-none-any.whl
Algorithm Hash digest
SHA256 7eb747c8f1903b21765ef226c1953131e101c9da7e38e8ec82a52e5e53cea9ef
MD5 c91d74c1d0d1655b7d8df0ebce5f6d57
BLAKE2b-256 4f1f8044c2e757a67ac839c183abff21d2c0257e52ea0e3ed0db96269ac686e2

See more details on using hashes here.

Provenance

Supported by

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