Skip to main content

tomlgraft

Small TOML edits from Python, backed by the same Rust core as the CLI.

python -m pip install tomlgraft==0.1.0

Registry installation becomes available after v0.1.0 is published. The initial wheels target CPython 3.12 on Windows/Linux x86-64. Source builds require Rust 1.89+ and a platform linker.

import tomlgraft

result = tomlgraft.patch(
    b"[project]\nversion = '1.0.0' # keep\n",
    kind="pyproject",
    operations=[{"op": "set", "path": ["project", "version"], "value_toml": "'1.1.0'"}],
)
assert result["output"] == b"[project]\nversion = '1.1.0' # keep\n"

patch_file(path, operations, dry_run=True) previews through the shared file writer. Both functions default create_script_block=False. File writes default dry_run=False; inspect committed and durability in reports/exceptions. The Rust boundary owns inputs before releasing the GIL; no universal ABI or free-threaded Python support is advertised.

Initial experimental release: local NTFS/ext4 file writes, bounded preservation, and read-only lockfiles. Windows directory durability is uncertain. Other editors can race the final recheck/rename. No resolver, Python script execution, backend, or network access is invoked. Unsupported layouts/security metadata are refused.

Full API and contract · Runnable examples · Source and releases

Metadata

Release files for tomlgraft 0.1.0

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

Source distribution (sdist)

Source distribution for tomlgraft 0.1.0
File Size Uploaded Provenance Actions
tomlgraft-0.1.0.tar.gz 36.1 kB With provenance Details for tomlgraft-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tomlgraft 0.1.0
File Interpreter ABI Platform Actions
tomlgraft-0.1.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for tomlgraft-0.1.0-cp312-cp312-win_amd64.whl
tomlgraft-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.35+ x86-64 Details for tomlgraft-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl

Total release size: 3.1 MB

Release files / tomlgraft-0.1.0.tar.gz

Download URL tomlgraft-0.1.0.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d2fe563829a7bacb83763566e66c79928b153b88fa08ca7e76bf9790180e6f15
BLAKE2b-256 checksum
How to use checksums
49ce4842fc69fc0bf19811cfa7cc94430812b72986d17d36fc893e8a643794c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / tomlgraft-0.1.0-cp312-cp312-win_amd64.whl

Download URL tomlgraft-0.1.0-cp312-cp312-win_amd64.whl
Size 1.5 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
ec578cf6e6ef8e29cb20a8dfc7b3202d9fc559c5b1cfb581199048c2347cc29a
BLAKE2b-256 checksum
How to use checksums
77199ed388edb3a7153ff767a1225facb4002e62670f502b3af10e4803563d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / tomlgraft-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl

Download URL tomlgraft-0.1.0-cp312-cp312-manylinux_2_35_x86_64.whl
Size 1.6 MB
Tags CPython 3.12 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
4379c7b1e15a6e79f591236940b624ca032dc5b3bd051a7610a3a51717225f44
BLAKE2b-256 checksum
How to use checksums
a3232d36ebab2818aca98600044eaabd90b514871a8e8e51c6d48b17293e3344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for tomlgraft 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for tomlgraft-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files Full provenance

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