Skip to main content

Python based toolkit for writing Command-Line Interface applications

Project description

https://raw.githubusercontent.com/secretum-inc/quo/main/pics/quo.png

Quo

Package Health MIT License quo can be installed via wheel Support Python implementations. RTD Latest Version PyStats

Version:

2021.3

Web:

http://quo.readthedocs.io/

Download:

http://pypi.org/project/quo

Source:

http://github.com/secretum-inc/quo

# Quo
# Forever scalable

Quo is a Python based toolkit for writing Command-Line Interface(CLI) applications. Quo is making headway towards composing speedy and orderly CLI applications while forestalling any disappointment brought about by the failure to execute a CLI API. Simple to code, easy to learn, and does not come with needless baggage.

Quo requires Python 3.6.1 or later.

Installation

You can install quo via the Python Package Index (PyPI)

$ pip install -U quo

Getting Started

The most simple examples of would look like this:

Example 1

import quo
quo.echo(f'Hello, World!')

Example 2

import quo
from quo import echo
echo(f'Hello, World!', fg="red", bold=True)

Example 3

import quo
from quo import echo
echo(f"Hello, World in italics!", italic=True)

Example 4

import quo
from quo import echo, prompt
answer = prompt("How old are you?")
echo(f"I am: {answer}")

Example 5

import quo
from quo import command, app, echo

@command()
@app("--name", prompt="What is your name?", type=str)
@app("--age", prompt="How old are you?", type=int)
def hello(name, age):
     echo(f"Hello {name}, nice to meet ya")
     echo(f"{name}, {age} is not that bad")

Example 6

import quo
from quo import container, Frame, TextArea
container(
  Frame(
  TextArea(text="Hello world!\n"),
  title="Quo: ♥", )
  )

For more inricate examples, have a look in the tutorials directory and the documentation.

Features

  • Support for ANSI and RGB color models

  • Support for tabular presentation of data

  • Interactive progressbars

  • Nesting of commands

  • A function that displays asterisks instead of the actual characters, helpful when typing passwords

  • Automatic help page generation

  • Lightweight

Quo is…

Simple

If you know Python you can easily use quo and it can integrate with just about anything.

Getting Help

Gitter

For discussions about the usage, development, and future of quo, please join our Gitter community

Resources

Bug tracker

If you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/secretum-inc/quo/issues/

License📑

This software is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.

Code of Conduct

Code of Conduct is adapted from the Contributor Covenant, version 1.2.0 available at http://contributor-covenant.org/version/1/2/0/.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

quo-2021.4.tar.gz (421.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quo-2021.4-py3-none-any.whl (483.2 kB view details)

Uploaded Python 3

File details

Details for the file quo-2021.4.tar.gz.

File metadata

  • Download URL: quo-2021.4.tar.gz
  • Upload date:
  • Size: 421.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.2

File hashes

Hashes for quo-2021.4.tar.gz
Algorithm Hash digest
SHA256 c390b47a4593769e656801d708ce27e9f54bd573916961d6bfcce1b8b2e1f43c
MD5 c33e863342e1fd4f505fbbc038c4b07c
BLAKE2b-256 36955bd117193a72cbb53141c2b37c48e9f7b2d066d1d71b80f9873d87afe343

See more details on using hashes here.

File details

Details for the file quo-2021.4-py3-none-any.whl.

File metadata

  • Download URL: quo-2021.4-py3-none-any.whl
  • Upload date:
  • Size: 483.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.2

File hashes

Hashes for quo-2021.4-py3-none-any.whl
Algorithm Hash digest
SHA256 25debc963c2c60a69d807feee6110997bd1dd2ec2ef8efc69f7a807e3cf71667
MD5 a051108d75113450527430a3e8d3fe85
BLAKE2b-256 b29dfca6410aeacef24c3ec3441f0eb6c3de07fc0ef4301ff9b132515fae39b4

See more details on using hashes here.

Supported by

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