Skip to main content

toml_config

Python library that simplifies parsing and creating Toml configuration files. Wrapper on toml

installation

To install a module run the command:

pip install toml_config

Using

To get started, import the module. Create an instance of the Config class by passing as a parameter the path to an existing file or the path where this file will be created.And then you can read parameters from the file and write parameters to the file.

Example. Creating a file and writing values.

main.py:

from toml_config.core import Config

my_config = Config('app.config.toml')
my_config.add_section('app').set(key='value',other_key=[1,2,3])

app.config.toml:

[app]
key = "value"
other_key = [ 1, 2, 3,]

Metadata

Release files for toml-config 0.1.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 toml-config 0.1.3
File Size Uploaded Provenance
toml_config-0.1.3.tar.gz 2.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for toml-config 0.1.3
File Interpreter ABI Platform
toml_config-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.6 kB

Release files / toml_config-0.1.3.tar.gz

Download URL toml_config-0.1.3.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f8e6905193b9db4b5f05fe7cbaa03395f48b2f9e577f956cbb132391fb06ba1e
BLAKE2b-256 checksum
How to use checksums
03e39177b5e06f8a6d1f3639ee24c6e787cb6c235bcd3618c015c1fb31468615
Upload date
Uploaded using Trusted Publishing?
What is 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.46.0 CPython/3.8.2

Release files / toml_config-0.1.3-py3-none-any.whl

Download URL toml_config-0.1.3-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8e0ed651d88862bee92229841f75b842600eb6ae35dcb6480730b9950d51220
BLAKE2b-256 checksum
How to use checksums
ee1ca27df589a4819a8d49b948131bfdb055372849fcfb3879514ee28623c104
Upload date
Uploaded using Trusted Publishing?
What is 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.46.0 CPython/3.8.2

Security for toml-config 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files No provenance

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