Skip to main content

Automatically make a command line interface from a python class or function.

Project description

PyPI version

optmagic version 1.1.0

This project enables you to create simple command line interfaces starting with a python class, or a python function that you want to expose directly to the shell.

It contains functionality which has not yet all been fully documented. Stay tuned.

Similar projects

Why not use one of those?

Ideally, the programmer should not have to specify anything extra than what the class or function already contains to expose its functionality. None of these other packages strive to accomplish that goal like optmagic does, as you can see in the following comparative examples.

TODO

Demo

TODO

Installing

To install the optmagic package, simply type the following command on your terminal:

$ pip3 install optmagic

Dependencies

The project depends on the following module for parsing the docstrings automatically:

  • docstring_parser

If you want to run the test suite for optmagic you will also need the following extra libraries:

  • pytest
  • matplotlib
  • pbs3

Extra documentation

More documentation is available at:

http://xapple.github.io/optmagic/optmagic

This documentation is simply generated with:

$ pdoc3 --html --output-dir docs --force optmagic

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

optmagic-1.1.0.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file optmagic-1.1.0.tar.gz.

File metadata

  • Download URL: optmagic-1.1.0.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.63.1 CPython/3.9.12

File hashes

Hashes for optmagic-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c3abfbc2db84109bb1a3e3115294563fed12400dcc7f0200961196b6de63dff7
MD5 3b6c2c4fc589d0005b1df3981342311a
BLAKE2b-256 a8e25d00ed298a065ed94a79a342d0d068885df67e9ec0aa38cf3c9a08e707f0

See more details on using hashes here.

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