Skip to main content

Compile yaml files to msgpack

Project description

Made with Python

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_compile_yaml-6.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

hatch_compile_yaml-6.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file hatch_compile_yaml-6.0.0.tar.gz.

File metadata

  • Download URL: hatch_compile_yaml-6.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for hatch_compile_yaml-6.0.0.tar.gz
Algorithm Hash digest
SHA256 0afcc9fc8905d7b94a2c7c8efaf10bfab845e6c305077a391396a266cad845b0
MD5 d4145adf8cba38b0afbbcaedda1aeb4d
BLAKE2b-256 976f9297d6e934de8828d64c3a8ccabca4aaa219c1ff9034b46ac3efcc80c84b

See more details on using hashes here.

File details

Details for the file hatch_compile_yaml-6.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for hatch_compile_yaml-6.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5608e92406a4e412e86a4f450dee45979930b6fd3720f7df2f58c452cbfcb9ab
MD5 6b687dd85e96f2fe88ca1406dd24d13f
BLAKE2b-256 f9c0e8babcecc8d9e89fef3d056c73fe015d7c202bdb7994eca07b13ba55eb53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page