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.4.tar.gz (4.1 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.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: trivial_records-0.0.4.tar.gz
  • Upload date:
  • Size: 4.1 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.4.tar.gz
Algorithm Hash digest
SHA256 c1617d894caa9855b0c59937730ace05651f18e1b01acc2247a6ae4b60a8c027
MD5 abc6b25d0ec70878d48087a57c7d23f3
BLAKE2b-256 d04c2ec42cbf5d8e0bdedf9579bcd4718b683678a432ee161a41c14fa39da65f

See more details on using hashes here.

Provenance

The following attestation bundles were made for trivial_records-0.0.4.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.4-py3-none-any.whl.

File metadata

File hashes

Hashes for trivial_records-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0ecfe0ccedf6651913627cd16ba0502900dcd6ace7f210d8d87fe714e71ae6df
MD5 7b3acff5659a92e9fe013e75eb8ffcd9
BLAKE2b-256 b28af319acb2a2939810eb557161ec6ca60fb13df77972d9899deb87fb0f1851

See more details on using hashes here.

Provenance

The following attestation bundles were made for trivial_records-0.0.4-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