ssssam / calliope

Playlist toolkit - MOVED, now at https://gitlab.com/samthursfield/calliope/
https://gitlab.com/samthursfield/calliope/
GNU General Public License v2.0
2 stars 0 forks source link

Add a Python API #53

Open ssssam opened 5 years ago

ssssam commented 5 years ago

The primary API to Calliope is the commandline interface. It can be called from any programming language in the world and can also be used directly from Bash. Great.

As an optimization we could expose the underlying Python API as well. This is how I imagine it working:

The only big downside here is that we'll have mostly duplicate documentation in cli.py and api.py. We may be able to use some clever string substitution to minimize duplication, or we may just have to live with it.