Skip to main content

TOML file reader - python module to read/write toml configuration files

Project description

TOML_file

TOML file reader - python module to read/write toml configuration files

  • Files can be loaded and saved completed with comments and formating
  • Configuration files can be templated and values validated on load or value changes

Two interfaces:

Simple dictionaries {key: value} - data dictionary with nested dictionary with {key: value} - template dictionary with comments/type information - template allows type, min/max and other validators to be set and stores comments - use load/save functions to open/save to file. - use loads/dumps functions to load/convert to string

Config object interface: - allows seamless use of template/data via custom dictlike interface - use cfg = Config(filename) to open - access subtables/keys via exteneded key indexing e.g. cfg['Table1.subtable.key'] = 1 - if a template has been set any value will be validated when it is set. - if a template has been set any missing values will return the defualt and be created. - use cfg.save(filename) to save

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

toml_file-1.0.9.1.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

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

toml_file-1.0.9.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file toml_file-1.0.9.1.tar.gz.

File metadata

  • Download URL: toml_file-1.0.9.1.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for toml_file-1.0.9.1.tar.gz
Algorithm Hash digest
SHA256 bd1a21a9e0e8431b29f5b1509dae7fd8d5be92922ae98403af779ad381270fff
MD5 0a6dbeda1e50efc6e0414904f445fffa
BLAKE2b-256 a1dfe9a7b1e08fedce876a2f18550cb0638fa4c2f6aa23581f3527ec210c991c

See more details on using hashes here.

File details

Details for the file toml_file-1.0.9.1-py3-none-any.whl.

File metadata

  • Download URL: toml_file-1.0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for toml_file-1.0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f431d606f5196ae724863bbfef3d39b51099238a907ece671d3ed7b578d24d
MD5 22bf466589c530d6f1e678a50c5697bd
BLAKE2b-256 24799678406a09ef41088e8c2ec50c372b5b36c1492fb2348a1fb565573031dc

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