Skip to main content

docs

Documentation Status

code

Last commit

tests

Travis-CI Build Status
Coverage

package

PyPI Package latest release
PyPI Wheel
Supported versions
Supported implementations
Commits since latest release

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)

Source distribution for clout 0.1.14
File Size Uploaded
clout-0.1.14.tar.gz 12.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clout 0.1.14
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.14 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page