Skip to main content

Arbitrium - The Easy Menu System For Python

Project description

# Arbitrium - The Easy Menu System For Python

## Install
`pip install arbitrium`

## Usage
```
from arbitrium import menu
from os import exit

@menu(["Option One", "Option Two", "Final Option"])
def choice_handler(choice):
if choice == 1:
# Option One Selected
pass
if choice == 2:
# Option Two Selected
pass
if choice == 3:
# Final Option Selected
exit(1)

# Calling the choice handler will also print the menu
choice_handler()
```
Will produce:
```
1) Option One
2) Option Two
99) Final Option
Please enter your choice:
```

**NOTE: Final Option will always be 99. It will run the choice handler once and then exit the choice handler function.**

Project details


Download files

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

Source Distribution

arbitrium-1.1.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file arbitrium-1.1.1.tar.gz.

File metadata

  • Download URL: arbitrium-1.1.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/3.6.4

File hashes

Hashes for arbitrium-1.1.1.tar.gz
Algorithm Hash digest
SHA256 52246d1bfe512f0573219e0403732f55ca2b283f6de68fd384aafed1663b3bb7
MD5 2bc0b796d33a668be889f01b3f1eca25
BLAKE2b-256 f0ff2efcb49cc40cd36ab6fabac1fb6fadf83e405a291e38aaf2c366334637b4

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