yamlord
A wrapper for the yaml module to easily read and write OrderedDict objects to and from YAML formatted files.
Install
pip install yamlord
Usage
The usage is straightforward: make and OrderedDict then write it to a specified path, or read a YAML file from a specified path to an OrderedDict. That’s it.
from collections import OrderedDict
import yamlord
# Make an Ordered dict for testing
d = OrderedDict()
d['a'] = 1
d['b'] = ['str1', 'str2']
# Write OrderedDict to YAML file
yamlord.write_yaml(d, './test.yaml')
# Read YAML file to OrderedDict
d = yamlord.read_yaml('./test.yaml')
Metadata
Release files for yamlord 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yamlord-0.4.tar.gz | 2.2 kB | Without provenance | Details for yamlord-0.4.tar.gz |
Release files / yamlord-0.4.tar.gz
| Download URL | yamlord-0.4.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29fd660c291a0026657e06e2d9839657619eb9ab7591091e7b45691892f26e2e
|
|
BLAKE2b-256 checksum How to use checksums |
7e5c1fd0d5740c771314cbf3f6cce2c09b500760937eec650ba6e03ef6ffe0f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for yamlord 0.4
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.