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-12.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97b6b57832509a70e2b93688e58098a35810142c5b7a2d86aab9fa4768c57321 |
|
MD5 | 8d07c890eb6adcc98da08eef61177ddc |
|
BLAKE2b-256 | 0224cd15f342e9eaed88ff7ae5734ab4f3efb3f487fe1102c78ff61cdf018600 |
Hashes for hatch_compile_yaml-12.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a51ac136138d148204df8506ffd1b22b2b365db29818980e703383d659fc448 |
|
MD5 | 507e837512cbc9bdc75058a2aab20dee |
|
BLAKE2b-256 | e8798e1ee21a859dd51d81cb14860164050f8da4eeecc041e49dc91bc16582f7 |