docs |
|
|---|---|
code |
|
tests |
|
package |
Convert dataclasses into a command-line interface.
Quickstart
To install, use
pip install clout
Define some dataclasses and convert them into a command-line interface.
import attr
import click
import clout
@attr.dataclass
class DB:
host: str
port: int
@attr.dataclass
class Config:
db: DB
dry_run: bool
cli = clout.Command(Config)
print(cli.build())
$ myapp --dry-run db --host example.com --port 9999
Config(db=DB(host='example.com', port=9999), dry_run=True)
See the full docs for more information: https://clout.readthedocs.io/
Release files for clout 0.1.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clout-0.1.14.tar.gz | 12.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clout-0.1.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.7 kB
Release files / clout-0.1.14.tar.gz
| Download URL | clout-0.1.14.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7aa0410eec7c5c5ecbac13ee997748184c041ca7364279aff1f44e16dceab3ae
|
|
BLAKE2b-256 checksum How to use checksums |
eb87ade2dc5818e2986853992633f356f9b1359c1b7aa6a418d69a37d0ef69be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0b4 CPython/3.7.3 Linux/4.15.0-70-generic
|
Release files / clout-0.1.14-py3-none-any.whl
| Download URL | clout-0.1.14-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c045577302af6c52764766655a0e911fe22e48616667d47bd4adcadf4960f763
|
|
BLAKE2b-256 checksum How to use checksums |
c5138232288a669a5ea93c85454612446e3c5bc85b6a6ccaa509b348943fb578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0b4 CPython/3.7.3 Linux/4.15.0-70-generic
|