Installation¶
You can use pip to install Asyncflux:
$ pip install git+https://github.com/puentesarrin/asyncflux.git
Documentation¶
Sphinx is needed to generate the documentation. Documentation can be generated by issuing the following commands:
$ cd docs
$ make html
Or simply:
$ python setup.py doc
Also, the current documentation can be found at ReadTheDocs.
License¶
Asyncflux is available under the Apache License, Version 2.0.
Indices and tables¶
Package Documentation¶
asyncflux
Package¶
Asynchronous client for InfluxDB and Tornado.
-
asyncflux.__init__.
version
= '0.0+'¶ Current version of Asyncflux.
asyncflux
Modules¶
asyncflux.client
– Connection to InfluxDB¶
Connection to InfluxDB
asyncflux.database
– Database level operations¶
Database level operations
asyncflux.clusteradmins
– Tools for cluster administration¶
asyncflux.testing
– Unit testing support for asynchronous code¶
Unit testing support for asynchronous code
-
class
asyncflux.testing.
AsyncfluxTestCase
(methodName='runTest', **kwargs)[source]¶ Bases:
tornado.testing.AsyncTestCase
-
asyncflux.testing.
gen_test
(func=None, timeout=None)[source]¶ Testing equivalent of
@gen.coroutine
, to be applied to test methods.@gen.coroutine
cannot be used on tests because the .IOLoop is not already running.@gen_test
should be applied to test methods on subclasses of AsyncTestCase.Example:
class MyTest(AsyncHTTPTestCase): @gen_test def test_something(self): response = yield gen.Task(self.fetch('/'))
By default,
@gen_test
times out after 5 seconds. The timeout may be overridden globally with theASYNC_TEST_TIMEOUT
environment variable, or for each test with thetimeout
keyword argument:class MyTest(AsyncHTTPTestCase): @gen_test(timeout=10) def test_something_slow(self): response = yield gen.Task(self.fetch('/'))
New in version 3.1: The
timeout
argument andASYNC_TEST_TIMEOUT
environment variable.Changed in version 4.0: The wrapper now passes along
*args, **kwargs
so it can be used on functions with arguments.
asyncflux.util
– General-purpose utilities¶
General-purpose utilities