Skip to main content

Update TOML

Simple CLI to update a value in a TOML file.

Installation

Install with pip:

pip install update-toml

Usage

Update

Run the following command, passing in a path and value to update in the specified .toml file:

update-toml --path project.version --value 0.0.1 --file pyproject.toml

Get

Get a value from a .toml file:

update-toml --path project.version --file pyproject.toml
# Example return: 0.0.1

Exists

Check if a path exists in a .toml file:

update-toml --path project.version --file pyproject.toml
# Example return: True or False

Metadata

Release files for update_toml 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for update_toml 0.2.1
File Size Uploaded
update_toml-0.2.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for update_toml 0.2.1
File Interpreter ABI Platform
update_toml-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / update_toml-0.2.1.tar.gz

Download URL update_toml-0.2.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
92870b2ef8591eeffa32df674d9b4c4fce59a428f65063e138dee253bdb5d372
BLAKE2b-256 checksum
How to use checksums
89fa4238c64177886003312a61a5deda93876a1cb023c6efe1ee204573209ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0

Release files / update_toml-0.2.1-py3-none-any.whl

Download URL update_toml-0.2.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
90d5d9d2efbe2f273328ec78394912c33c0f741dc3b0ae744cfc4ddbe27051f7
BLAKE2b-256 checksum
How to use checksums
7394d4dd5609d95c83d85b18b79121dd834a86a2e1b57d63d9b3d5388143c4cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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