Skip to main content

image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg

Project description

https://yourlabs.io/oss/cli2/badges/master/pipeline.svg https://codecov.io/gh/yourlabs/cli2/branch/master/graph/badge.svg https://img.shields.io/pypi/v/cli2.svg

cli2: Python Automation Framework

A Python command line and Ansible Action plugin framework that loves meta programming: do less and get more out of it, perfect for many kinds of DevOps gigs to automate everything.

Batteries included, all of which are useful on their own:

  • beautiful CLI alternative to click, but much less verbose, allowing more creative design patterns without any boilerplate thanks to introspection

  • which comes with a Sphinx extension to extensively document your CLIs

  • magic 12-factor configuration library

  • extremely beautiful structlog configuration for colorful and readable logging

  • httpx client wrapper that handles all kind of retries, data masking…

  • magic ORM for HTTP resources based on that client

  • Ansible Action plugin library with all the beautiful logging and a rich testing library so that you can go straight to the point in pytest

  • a good old fcntl based locking

  • a command line to run any python function over a beautiful CLI

  • AI CLI with prompt2

  • AI coding with code2 (TBA)

Documentation available on RTFD.

Project details


Release history Release notifications | RSS feed

This version

5.2.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli2-5.2.3.tar.gz (62.9 kB view details)

Uploaded Source

File details

Details for the file cli2-5.2.3.tar.gz.

File metadata

  • Download URL: cli2-5.2.3.tar.gz
  • Upload date:
  • Size: 62.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for cli2-5.2.3.tar.gz
Algorithm Hash digest
SHA256 592b8f7753e5a67e19daf0b3f62a82765dc444d8a2447a8f1040b83ac7b522ee
MD5 24542b9ead673fca8f9644be6903388e
BLAKE2b-256 08703e0086f16b8a72ae35a80c3b4d593d3c7014600aca33abe6ee5e5145376b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page