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.2.tar.gz (22.0 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.2-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: toml_file-1.0.9.2.tar.gz
  • Upload date:
  • Size: 22.0 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.2.tar.gz
Algorithm Hash digest
SHA256 bcd3ebb9d1d871d4c67d9ce46af9a78fdf1dd6d5beab431b71162340342c761e
MD5 4669f039d9395aea67d273c0d0844af9
BLAKE2b-256 1352cb91baecd2501721e29e73ec49dc18062569f5d326753d142802324274cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: toml_file-1.0.9.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71c1cf6ec207031215048eae4c25e91f157e742cf6197a6d06a410fc7f429281
MD5 c8bba1f8241702bce59ebed882b1fd1d
BLAKE2b-256 d513003306c4eb7e64ec613c72efb4e3b722e4b24224d91b6d7f4d73b1a68adb

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