An open API service indexing awesome lists of open source software.

https://github.com/ofek/msgspec-click

Generate Click options from msgspec types
https://github.com/ofek/msgspec-click

cli click msgspec python types

Last synced: 11 months ago
JSON representation

Generate Click options from msgspec types

Awesome Lists containing this project

README

          

# msgspec-click

| | |
| --- | --- |
| CI/CD | [![CI - Test](https://github.com/ofek/msgspec-click/actions/workflows/test.yml/badge.svg)](https://github.com/ofek/msgspec-click/actions/workflows/test.yml) [![CD - Build](https://github.com/ofek/msgspec-click/actions/workflows/build.yml/badge.svg)](https://github.com/ofek/msgspec-click/actions/workflows/build.yml) [![Coverage](https://img.shields.io/codecov/c/gh/ofek/msgspec-click?token=8R2JKHDWMC)](https://app.codecov.io/gh/ofek/msgspec-click) |
| Docs | [![Docs](https://github.com/ofek/msgspec-click/actions/workflows/docs.yml/badge.svg)](https://github.com/ofek/msgspec-click/actions/workflows/docs.yml) |
| Package | [![PyPI - Version](https://img.shields.io/pypi/v/msgspec-click.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/msgspec-click/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/msgspec-click.svg?logo=python&label=Python&logoColor=gold)](https://pypi.org/project/msgspec-click/) |
| Meta | [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/ofek/msgspec-click) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy) [![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://spdx.org/licenses/) [![GitHub Sponsors](https://img.shields.io/github/sponsors/ofek?logo=GitHub%20Sponsors&style=social)](https://github.com/sponsors/ofek) |

-----

This is a library for generating [Click](https://github.com/pallets/click) options from [msgspec](https://github.com/jcrist/msgspec) types (see [example](https://ofek.dev/msgspec-click/usage/#example)).

## Installation

```console
pip install msgspec-click
```

## Documentation

The [documentation](https://ofek.dev/msgspec-click/) is made with [Material for MkDocs](https://github.com/squidfunk/mkdocs-material) and is hosted by [GitHub Pages](https://docs.github.com/en/pages).

## License

`msgspec-click` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.