Skip to main content

ini file parser.

Project description

ini klass

The ini file parser.

Install

To install a wheel from PyPI,

pip install --upgrade ini-klass

Usage

Example ini file,

[example]
id = 12
name = John
status = true
salary = 100.50
group = car, book, phone

To parse ini file above,

from ini import IniConfig

# read from `CONFIG` environment
config = IniConfig.read()

# read from file
config = IniConfig.read('/tmp/file.ini')

# access configuration value
name = config.example.name

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

ini-klass-0.0.5.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

ini_klass-0.0.5-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

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