You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
819 B

  1. """nilmdb.server"""
  2. from __future__ import absolute_import
  3. # Try to set up pyximport to automatically rebuild Cython modules. If
  4. # this doesn't work, it's OK, as long as the modules were built externally.
  5. # (e.g. python setup.py build_ext --inplace)
  6. try: # pragma: no cover
  7. import Cython
  8. import distutils.version
  9. if (distutils.version.LooseVersion(Cython.__version__) <
  10. distutils.version.LooseVersion("0.17")): # pragma: no cover
  11. raise ImportError("Cython version too old")
  12. import pyximport
  13. pyximport.install(inplace = True, build_in_temp = False)
  14. except (ImportError, TypeError): # pragma: no cover
  15. pass
  16. from nilmdb.server.nilmdb import NilmDB
  17. from nilmdb.server.server import Server, wsgi_application
  18. from nilmdb.server.errors import NilmDBError, StreamError, OverlapError