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-4.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

hatch_compile_yaml-4.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hatch_compile_yaml-4.0.0.tar.gz
Algorithm Hash digest
SHA256 d6dc4b3f16c23c43d6f7b6dd7a5fef1fd0efb1f95c5fef23a679b08f52f42c16
MD5 d6903890fc7c53e5ab17859652463e3c
BLAKE2b-256 70b2e0b940ef140168bf9bb9843f646775c0051132de44e05707b305b0bc244d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hatch_compile_yaml-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dce208a13d0b9b859c17e7f1b8d211856f691842e70892123b187e994d1346ac
MD5 a46ad7efb2c823b1c5590910a3918dc0
BLAKE2b-256 27ba3f0f2a0bc0136ac1b8e8211beae7a8d5fcd3753f6acf7efe4509b4e7c3a5

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