docs |
|
|---|---|
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(type=Config)
print(cli.build())
$ myapp config --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/
Metadata
Release files for clout 0.1.7.post3
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.7.post3.tar.gz | 16.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clout-0.1.7.post3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.1 kB
Release files / clout-0.1.7.post3.tar.gz
| Download URL | clout-0.1.7.post3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e284157bdf2507ee5e58cfb10f9a0232a61078bfab3b81db8671e7332f53539
|
|
BLAKE2b-256 checksum How to use checksums |
09fb02aa13ff52b4d97e6b840264609485b513ce428761c9678e05411aba5d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.3 Linux/4.15.0-65-generic
|
Release files / clout-0.1.7.post3-py3-none-any.whl
| Download URL | clout-0.1.7.post3-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d987f8429e4a9c2e276e255d7084c95335a87dfd56922b1878e179acbd490f27
|
|
BLAKE2b-256 checksum How to use checksums |
12f79f69e9e9f04f551cd0c3497db3daa07e382c9dde984165b9bcb5f26787ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.17 CPython/3.7.3 Linux/4.15.0-65-generic
|