Skip to main content

Python based toolkit for writing Command-Line Interface applications

Reason this release was yanked:

Unstable

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.5.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.5-py3-none-any.whl (483.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quo-2021.5.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.5.tar.gz
Algorithm Hash digest
SHA256 0659e18ce352ab2b621374e13fd41e931e3d4290b4c339e07c1d40cbe54d727a
MD5 723183c762d17fa2d25c9c43c3bd5400
BLAKE2b-256 8ebc1f4811883ae15b3c74f4e420c63fab6ce714da31797282b6f6794199441e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quo-2021.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 78a3b06a52073d952158201f046b690540a28bec11b1bf07b85921ea9b3f36f5
MD5 d5e47b9bd1cba91ff3aef9c8ac4ce49e
BLAKE2b-256 0d750885c242f3600ade3d077ba5f76c94655a08eea9b8fb5aac00c827f4069c

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