Skip to main content

Welcome To PyMan

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

Release files for pyman 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyman 0.1.3
File Size Uploaded
pyman-0.1.3.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyman 0.1.3
File Interpreter ABI Platform
pyman-0.1.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 11.9 kB

Release files / pyman-0.1.3.tar.gz

Download URL pyman-0.1.3.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
65c103a6e316fb15cb9343884a03408f932ddd9c3d1358ddce5b95ee7c35d63a
BLAKE2b-256 checksum
How to use checksums
76ae479f0f9a14b84c879655a25f587a05856da693796df875b6493f67821a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

Release files / pyman-0.1.3-py2.py3-none-any.whl

Download URL pyman-0.1.3-py2.py3-none-any.whl
Size 6.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ae3d7de1d110de28dc9dcb26d466bd1362fdc42a8be33f38e37cf35235cda81b
BLAKE2b-256 checksum
How to use checksums
c9adf53da714988dc39b0fafc0dec013cd54312f53380e26ebe0ee644d7c1a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page