Skip to main content

A (tiny) configuration library.

Project description

configtony

A (tiny) configuration library.

Installing

# The easy way
pip install configtony

# Installing from source
git clone https://github.com/IAmMoltony/configtony.git
cd configtony
pip install .

Example

from configtony import Config

config = Config("config.jsonc")
# Adds an option called 'username' that is of string type, default 'John'
config.add_option("username", str, "John")
config.add_option("some_flag", bool, False)
config.parse()

print(config.get("username"))

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

configtony-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

configtony-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file configtony-1.0.0.tar.gz.

File metadata

  • Download URL: configtony-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for configtony-1.0.0.tar.gz
Algorithm Hash digest
SHA256 954882149e0dfc828b9f841ffa7dcb0a599eda52dd465463e956b15f15bfa7ce
MD5 7ab77c86937939ae929b1cc6182b54e9
BLAKE2b-256 d9eee1f1bc0f22ee38ca4355728e65f6b5040127ef15cc174bd08160217baacd

See more details on using hashes here.

File details

Details for the file configtony-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: configtony-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for configtony-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72b91464888b71a461422c32f601d29586a1a58912c7720df7762bf7c12a5f06
MD5 6f96bbe69a2b036813eecdca6ae521df
BLAKE2b-256 9e5727ddd1f3ca36293e841834c625bee4c6fde1e2073bd2f0c0ad47b50cb4e7

See more details on using hashes here.

Supported by

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