Compile yaml files to msgpack
Project description
A hatch build hook that takes yaml files and converts them to msgpack. This way, your code can ship with msgpack data files for lightning-fast conversion, but your repo can contain easy-to-maintain yaml.
Getting Started
Prerequisites
Python 3.10+
git (if installing from source, or contributing to the project)
Installation
Installation
To set up hatch-yaml-compile for your project you just need to put it in your project’s pyproject.toml file as a build-system requirement:
[build-system]
requires = ["hatchling", "hatch-yaml-compile"]
build-backend = "hatchling.build"
Usage
Now you’ll need to configure the build scripts you want to run. This is done by adding an array of scripts to the tool.hatch.build.hooks.build-scripts.scripts key in your pyproject.toml file. In practice this looks like:
[tool.hatch.build.hooks.convert-data-file.options]
pattern = "*.yaml"
target_format = "msgpack"
remove_source_files = true
Roadmap
Reference the open issues for a list of proposed features (and known issues).
Acknowledgements
Img Shields for making repository badges easy.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hatch_compile_yaml-10.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db029fe17fac231389bc52368dd31cb7ae8676d93008ef16c50aab73ace2f6de |
|
MD5 | 6ab48de4c03e71bf2bd3f4d9f724ebf9 |
|
BLAKE2b-256 | af227ff22ffd02568df641525176e6da453fe9861b734134b5b11968fd2e0882 |
Hashes for hatch_compile_yaml-10.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207f722ece69c7a457d386a018be4ce7f4909a57988ea85f6accf0ce5600f034 |
|
MD5 | aed9a11e67f6c4a08fc7e0a7259702f6 |
|
BLAKE2b-256 | 488ab21ed915c34dd41d130c11df44205d0f3be6dad918268c77df318bc6e7ff |