Skip to main content

Configs: Configuration for Humans

Latest Version Downloads Wheel Status

Parsing INI configs must be easy, as are the INI files.

Configs provides a simple API for getting data from INI config files.

Loading data from a config is as easy as configs.load('my.conf').

Configs work with Python 2.7+ (including 3).

The repo is at bitbucket.org/moigagoo/configs.

Read the full documentation at configs.rtfd.org.

https://op9bww.bn1302.livefilestore.com/y2phzX-gFw3yMuwMkL1HBwG23d-RWirCBlliDJ1dwR2VNPAG3Dp6LFJwpvnE3sPmr7-8V8HfC11mOsH-h7TAa1rzDHo0uuCks3PbTL7fM3PfGU/figs.jpg?psid=1

Features

  • Root-level params support

  • Numeric and boolean values are converted automatically

  • Sections with only key-value items are parsed as dicts

  • Sections with only flag items (keys with no value) are parsed as lists

  • Mixed content sections are parsed as tuples of a dict and a list, which can be accessed individually

  • Sections are iterable (even the mixed ones; list first, dict second)

  • Comments support

Installation

Install configs with pip:

$ pip install configs

Usage

Load a config file:

>>> import configs
>>> c = configs.load('sample.conf')
>>> c['general']
{'foo': 'baz'}

Tests

Run the tests with:

$ python test_configs.py

Metadata

Release files for configs 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for configs 3.0.3
File Size Uploaded
configs-3.0.3.zip 8.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for configs 3.0.3
File Interpreter ABI Platform
configs-3.0.3.win-amd64.exe Details
configs-3.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 245.1 kB

Release files / configs-3.0.3.zip

Download URL configs-3.0.3.zip
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a5ab09e04e441dac6aa856a71fbf5ffc62954352630f79d311b8f8a31d9ce19c
BLAKE2b-256 checksum
How to use checksums
ca9b7f5ce5edb247816f67e5c109e1c005ea17ea4f4b9239300555811f3b0cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / configs-3.0.3.win-amd64.exe

Download URL configs-3.0.3.win-amd64.exe
Size 230.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7d8aba07a709ee16801a8b0937c39a17b918c9b9cc7a3c944bde24f6907398f4
BLAKE2b-256 checksum
How to use checksums
9749ec9caabad4bf86e91b7e3e5002615239b6093115f4faeb8bdd88b1544740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / configs-3.0.3-py3-none-any.whl

Download URL configs-3.0.3-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3aa54e99b012ece70d30b7926d9e8fa159544ca27445ec2776254e25ccc190a7
BLAKE2b-256 checksum
How to use checksums
b0ac20230cd79c583ccf1e81f328befdffc1f8a23aee814c3261220954099c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

3.0.3 This release

3 release files

3.0.2

3 release files

3.0.1

3 release files

2.0.9

3 release files

2.0.8

2 release files

2.0.7

1 release file

2.0.6

1 release file

2.0.5

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

1.9.5

1 release file

1.8.2

1 release file

1.8.1

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page