Skip to main content

Tiny library that parses and generates text containing lists of records.

Project description

Trivial Records

A tiny library to parse and generate text containing lists of records.

Why not just JSON?

It's a bit more convenient for the human; easier to write and read this:

Refactoring
author Martin Fowler
publisher Addison-Wesley

A Philosophy of Software Design
author John Ousterhout
publisher Yaknyam Press

than to write and read this:

{"Refactoring": {"author": "Martin Fowler", "publisher": "Addison-Wesley"}, "A Philosophy of Software Design": {"author": "John Ousterhout", "publisher": "Yaknyam Press"}}

or write this:

{
  "Refactoring": {
    "author": "Martin Fowler",
    "publisher": "Addison-Wesley"
  },
  "A Philosophy of Software Design": {
    "author": "John Ousterhout",
    "publisher": "Yaknyam Press"
  }
}

What does it offer?

Not much, it's really trivial.

Functions stream_to_record_dictionary and string_to_record_dictionary give you a Python dictionary.

Functions record_dictionary_to_string_generator and record_dictionary_to_string take the Python dictionary and give you a string.

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

trivial_records-0.0.3.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

trivial_records-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file trivial_records-0.0.3.tar.gz.

File metadata

  • Download URL: trivial_records-0.0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for trivial_records-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c8f20acaf25ce6bcf327ca2fffb76897cf7956415a117b7ae84b97a873c31271
MD5 3ee2b293280a950b6a2a94cc5bd15c60
BLAKE2b-256 622188febe7dcbacf5edb2899b1750dea201af2528028bc8464f4e1c6abf28b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for trivial_records-0.0.3.tar.gz:

Publisher: publish.yml on leonardo-nobrega/trivial-records

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trivial_records-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for trivial_records-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75845b5efea8fa9934968c39ed06b4810ad41b0af21cb00c9874e8f716984464
MD5 0a407b0c0af6ff00bfd3211837c5b578
BLAKE2b-256 036aa8230f29cfd7c91c8f83e9ebce8ba86939a59a65ecd3b96845f7a9de44d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for trivial_records-0.0.3-py3-none-any.whl:

Publisher: publish.yml on leonardo-nobrega/trivial-records

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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