Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A CLI for managing python projects

Project description

PyMan is a small library that allows you to build your own CLI to manage your projects. This way you do not have to remember commands to run, you simply navigate your CLI to run those commands.

Installing

PyMan is available from the PyPi repository.

This means that all you have to do to install PyMan is run the following in a console:

$ pip install pyman
Collecting pyman
  Using cached pyman-0.1.3-py2.py3-none-any.whl
Installing collected packages: pyman
Successfully installed pyman-0.1.3

Minimal Example

import pyman

pyman.Main("PyMan - Menu Example", [
    pyman.Action.Cmd( "Hello World", "echo 'Testing PyMan'" ),
    pyman.Action.Exit()
]).cli()

Example Output

================================================================
                      PyMan - Menu Example
================================================================

Main Menu
--------------------
1) Hello World
2) Exit
--------------------

Choice:

How It Works

PyMan uses the idea of Pages and Actions. Each page is made up of a number of actions.

You start off by instanciating the ‘Main Menu’ class, providing the title you wish to display:

menu = pyman.Main("PyMan - Menu Example")

From here you add other Pages or Actions

menu.add([
    pyman.Action.Exit()
])

pyman.Action.Exit is one of the in-built actions. Other inbuilt actions include:

  • pyman.Actions.Cmd
  • pyman.Actions.Back
  • pyman.Actions.Exit

And finally, you start the CLI with:

menu.cli()

Documentation: ReadTheDocs

Source Code: GitHub

Download files

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

Files for pyman, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pyman-0.1.3-py2.py3-none-any.whl (6.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pyman-0.1.3.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page