python-easy-api
A Python module for easily adding a web interface to any Python script.
This module allows you to add a web interface to your Python scripts really easily and without weird dependencies. It includes a sample API with two commands, demonstrating how you can pass parameters and get multi-value responses. The web API works with an embedded, multithreaded http server which provides access to a Python class' methods.
HOW TO USE:
FEATURES:
Download from https://github.com/leandrinux/python-easy-api
This module allows you to add a web interface to your Python scripts really easily and without weird dependencies. It includes a sample API with two commands, demonstrating how you can pass parameters and get multi-value responses. The web API works with an embedded, multithreaded http server which provides access to a Python class' methods.
HOW TO USE:
- Create a facade class including all the methods of your API.
- Define a "publishedMethods" method, returning an array with the name of all the methods you want to make available through the API
- Instantiate and run the WebInterface daemon.
FEATURES:
- Multithreaded, configurable, embedded web server.
- JSON-based API calls and responses.
- Included working example.
- Licensed under the GNU GPL v2.
- Really easy to use!
Download from https://github.com/leandrinux/python-easy-api