Skip to main content

tomfoolery

Tool to generate Python dataclasses that model and load toml files (or other can-representated-as-a-dict files).
Primarily aimed at configuration type files.

Installation

Install with:

pip install tomfoolery

Usage

Given the following file (venue.toml):

Running the command

tomfoolery venue.toml

will produce this file (venue.py):

which can then be used:

>from venue import Venue
>venue = Venue.load()
>print(venue.address.city)
'Chicago'
>venue.calendar.start_month = "March"
>venue.dump()

Current Caveats

  • Only works with .toml and .json files.
  • All keys must be valid Python variable names.

Metadata

Release files for tomfoolery 1.1.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 tomfoolery 1.1.1
File Size Uploaded Provenance Actions
tomfoolery-1.1.1.tar.gz 6.1 kB Without provenance Details for tomfoolery-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 14.1 kB

Release files / tomfoolery-1.1.1.tar.gz

Download URL tomfoolery-1.1.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0646ac8940994f08958e2b1c2e863d824f09e445285209b9fc60179fb1d396c8
BLAKE2b-256 checksum
How to use checksums
1c93ea2b0d01a4da0db21d0e04574e8ad5eef8c345da3c11413613171759f35f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / tomfoolery-1.1.1-py3-none-any.whl

Download URL tomfoolery-1.1.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf42279c5ae0260db3fc0fe4a10ae42232d6a1004635755b3c05079f120b6c0a
BLAKE2b-256 checksum
How to use checksums
caaea3dbd1865dc15d2559161db8aa3f63c32a808e792afe0d885a5b340a0d6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for tomfoolery 1.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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