Skip to main content

yaml_backed_structs

Latest PyPI version License https://travis-ci.org/dcdanko/YamlBackedPyStructs.svg?branch=master

Basic python data structures backed by a human editable yaml file

Description

Provides a dead simple way to store small amounts of information for python programs. This is useful for program configs and similar.

Has the advantage that the files backing the data structures are human readable and can be edited using your favorite text editor.

from yaml_backed_structs import PersistentDict, PersistentSet

pdict = PersistentDict('my-path.yml')
pdict['a'] = 1 # this will automatically be saved
pdict['b'] = []
pdict['b'].append(2) # this will not be saved automatically
pdict.save() # but we can save it like this

Installation

pip install yaml_backed_structs

python setup.py install

Licence

MIT

Authors

yaml_backed_structs was written by David C. Danko.

Metadata

Release files for yaml_backed_structs 1.0.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 yaml_backed_structs 1.0.0
File Size Uploaded Provenance Actions
yaml_backed_structs-1.0.0.tar.gz 2.2 kB Without provenance Details for yaml_backed_structs-1.0.0.tar.gz

Release files / yaml_backed_structs-1.0.0.tar.gz

Download URL yaml_backed_structs-1.0.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6a9ce7c0f0914312baad62452faca221ab10a780ecd232e74f247d6407c8aebb
BLAKE2b-256 checksum
How to use checksums
bd601c0397fb032e1cefe217c4d9665b36e65a0b3a353363bc87dcd0f4f14504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for yaml_backed_structs 1.0.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.

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