Metadata-Version: 2.1
Name: clidantic
Version: 0.0.1
Summary: Elegant CLI applications using Click and Pydantic
Home-page: https://github.com/edornd/clidantic
License: MIT
Author: Edoardo Arnaudo
Author-email: edoardo.arn@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development
Classifier: Typing :: Typed
Requires-Dist: click (>=8.0.3,<9.0.0)
Requires-Dist: pydantic (>=1.8.2,<2.0.0)
Project-URL: Repository, https://github.com/edornd/clidantic
Description-Content-Type: text/markdown

# clidantic
Elegant CLIs merging Click and Pydantic
> WARNING: Library in early alpha stage

## Install
You can install this package via pip, getting the latest features through GitHub:
```
pip install git+https://github.com/edornd/clidantic.git
```
Or installing the latest release:
```
pip install clidantic
```

# Quickstart
Here's a quick example:
```python
from typing import Optional
from pydantic import BaseModel

from clidantic import Parser


class Arguments(BaseModel):
    field_a: str
    field_b: int
    field_c: Optional[bool] = False


cli = Parser()


@cli.command()
def main(args: Arguments):
    print(args)


if __name__ == "__main__":
    cli()
```


## Contributing
We are not quite there yet :)

