A Python module for easily adding a web interface to any Python script.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
www
.gitignore
.project
.pydevproject
LICENSE
README
WebAPIDemo.py
WebServer.config
WebServer.py

README

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:

1. Create a facade class including all the methods of your API.
2. Define a "publishedMethods" method, returning an array with the name of all the methods you want to make available through the API
3. 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!