Welcome to interact-cli’s documentation!

Interact cli

https://img.shields.io/pypi/v/interact-cli.svg https://img.shields.io/pypi/pyversions/interact-cli.svg https://img.shields.io/pypi/dm/interact-cli.svg https://api.travis-ci.com/caizhengxin/interact-cli.svg?branch=master Documentation Status https://img.shields.io/github/languages/code-size/caizhengxin/interact-cli https://img.shields.io/pypi/l/interact-cli

Interactive command line tool.

Features

  • Interact input

  • Supports multiple data types

Type

  • boolean

  • string

  • int

  • list

  • choice

Usage

from interact import loads


if __name__ == "__main__":
    print(loads("interact.json"))

Demo

Credits

This package was created with Cookiecutter and the caizhengxin/cookiecutter-package project template.

Installation

Stable release

To install interact-cli, run this command in your terminal:

$ pip install interact-cli

This is the preferred method to install interact-cli, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for interact-cli can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/caizhengxin/interact-cli

Or download the tarball:

$ curl  -OL https://github.com/caizhengxin/interact-cli/tarball/master

Once you have a copy of the source, you can install it with:

$ python setup.py install

Usage

To use interact-cli in a project:

import interact

API

Indices and tables