Skip to main content

yamltopy

PyPI PyPI - Downloads GitHub release (latest by date)

Install

pip install yamltopy

Usage

usage: yamltopy [-h] [-i INPUT] [-o OUTPUT] [-n NAME] [-v]

Convert YAML configuration file to a Python modulefor better performance

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        The input Yaml file (YML or YAML)
  -o OUTPUT, --output OUTPUT
                        The output Py file
  -n NAME, --name NAME  The name of the exported variable containg the Yaml data
  -v, --verbose

Convert YAML file to PY:

yamltopy -i path/to/file.yaml -o path/to/output.py -n NAME_OF_VARIABLE

You can import the output file (if modules set up properly):

from path.to.output import NAME_OF_VARIABLE

print(NAME_OF_VARIABLE)

Metadata

Release files for yamltopy 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 yamltopy 1.0.0
File Size Uploaded Provenance
yamltopy-1.0.0.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.8 kB

Release files / yamltopy-1.0.0.tar.gz

Download URL yamltopy-1.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
615fa4880468e15d24fb3e2ca0efeadb12e4e49b7f89371f4810628c21ec9ec4
BLAKE2b-256 checksum
How to use checksums
9be14baa0110044a9299aad61d79290a4fddafc8241d180a980a00c40f5c44b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / yamltopy-1.0.0-py3-none-any.whl

Download URL yamltopy-1.0.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb93eba694aef80c01763de6e412426fd0349b2ea7d5c346fd146562641b823f
BLAKE2b-256 checksum
How to use checksums
ebbcd9311cb056bdf76bfe72bffc6ef7558e0a9f7d9dec8c335dfeaec333d0e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Security for yamltopy 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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