Skip to main content

An INI parser or config parser

Project description

iniparser2

Build Status

iniparser2 is An INI parser or a Config parser.

this package is the improved version of iniparser with more features.


Quick Start

Installation

to install the package see the following step below

pip install iniparser2 || python -m pip install iniparser2
from source: python setup.py install

Examples

test.ini:

name = Mike Hawk

test.py:

from iniparser2 import INI

x = INI('test.ini')
data = x.read()

print(data)

Output:

{'name': 'Mike Hawk'}

using with keyword

test.ini:

name = Mike Hawk

test.py:

from iniparser2 import INI

with INI('test.ini') as i:
    print(i.read())

Output:

{'name': 'Mike Hawk'}

parse without file

import iniparser2

x = """
name = Mike Hawk
"""
x = iniparser2.parse(x)
print(x)

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

iniparser2-1.8.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

iniparser2-1.8.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file iniparser2-1.8.5.tar.gz.

File metadata

  • Download URL: iniparser2-1.8.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for iniparser2-1.8.5.tar.gz
Algorithm Hash digest
SHA256 03f336018cf87877dd8653929f4283053e437c3d0ec6325ed54fbc993fe30df7
MD5 73fd8c5e3818d1ccf57c655a6d9784b1
BLAKE2b-256 41f5b1dd97f65d47ecdc766af2d086a0fa27c9ecb89182b10a7056d6fa1783b8

See more details on using hashes here.

File details

Details for the file iniparser2-1.8.5-py3-none-any.whl.

File metadata

  • Download URL: iniparser2-1.8.5-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for iniparser2-1.8.5-py3-none-any.whl
Algorithm Hash digest
SHA256 030afd29a5d44a014b2e3b1d0ae02d9c6aeea39b27002f83616a8b94485ac7d1
MD5 8e2e9ba77961ccfae7932c63b7714773
BLAKE2b-256 90c7adb9d7b6e4bc3059bb5222d427c168794649f5a3dfae1451fbd39b047a4d

See more details on using hashes here.

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