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 hashes)

Uploaded Source

Built Distribution

quo-2021.5-py3-none-any.whl (483.2 kB view hashes)

Uploaded Python 3

Supported by

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