Skip to main content

...

Project description

🔌 Tomili

Tomili is a simple library for interacting with toml files, without the need open context, with 'with' and open file.

📦 Installation

If you are using pip, you can install Tomili by running the following command:

pip install tomili

If you are using poetry, you can install Tomili by running the following command:

poetry add tomili

If you are using UV, you can install Tomili by running the following command:

uv add tomili

📖 Usage

# Import function rtoml from tomili library
from tomili import rtoml

# Import Path from pathlib library
from pathlib import Path

# Read toml file, parameter is path to file (Path)
toml = rtoml(Path("path/to/file.toml"))

# Print toml file in dictionary format
print(toml)

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

tomili-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

tomili-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file tomili-0.1.0.tar.gz.

File metadata

  • Download URL: tomili-0.1.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for tomili-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cd6a7dbdaaa948ab5887bec47f6f8b75085941baaa4fdf0271fff6ce8ee0f65a
MD5 fba24ecd9764a28f199bce44d94e6ffa
BLAKE2b-256 4c70f8aefbe4902d52fb80bb2a3d670e12b7e8b5a6c4c28b88a9f4dbd1111eff

See more details on using hashes here.

File details

Details for the file tomili-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tomili-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.5

File hashes

Hashes for tomili-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7ef20071220ef5747d5d595f5301a3a4fa6a0bee15517e35114bbd9d886377d
MD5 d13b2b067ada65b862373a60f255d09f
BLAKE2b-256 fa32279ee139d19a48e5daaa5203340a8a3d26aca67b2589b06a721a16862fc0

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