pip install --upgrade https://github.com/pklaus/opus20/archive/master.zip
+To install all requirements for the included plot web server, too, run this command instead:
+
+ pip install --upgrade https://github.com/pklaus/opus20/archive/master.zip#egg=opus20[webserver]
+
#### Usage
The Python package installs a command line tool to query the device
#!/usr/bin/env python
# local deps
-from opus20 import PlotWebServer
+from opus20.webapp import PlotWebServer
# std lib
import argparse
}
def __init__(self, host, log_file, **kwargs):
+ # check for different requirements at object instatiation
+ import matplotlib, jinja2, pandas, numpy, pillow
if 'debug' in kwargs:
self.debug = kwargs['debug']
del kwargs['debug']
'opus20_fakeserver = opus20.opus20_fakeserver:main',
],
},
+ install_requires = [],
+ extras_require = {
+ 'webserver': ["bottle", "matplotlib", "jinja2", "pandas", "numpy", "pillow"],
+ },
include_package_data = True,
zip_safe = True,
platforms = 'any',