reference.rst 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .. _reference:
  2. 9. ThingFlow-Python API Reference
  3. =================================
  4. .. automodule:: thingflow
  5. :members:
  6. thingflow.base
  7. --------------
  8. .. automodule:: thingflow.base
  9. :members:
  10. thingflow.sensors
  11. -----------------
  12. The sensors are not included in the auto-generated
  13. documentation, as importing the code requires external
  14. libraries (not possible for automated documentation generation).
  15. Here is a list of available sensor modules in the ThingFlow-Python
  16. distribution:
  17. * ``rpi.adxl345_py3`` - interface to the adxl345 accelerometer
  18. * ``rpi.arduino`` - interface an Arduino to the Raspberry Pi
  19. * ``rpi.gpio`` - read from the Raspberry Pi GPIO pins
  20. * ``lux_sensor`` - read from a TSL2591 lux sensor
  21. Please see the source code for more details on these sensors.
  22. thingflow.filters
  23. -----------------
  24. .. automodule:: thingflow.filters
  25. :members:
  26. thingflow.filters.buffer
  27. ~~~~~~~~~~~~~~~~~~~~~~~~
  28. .. automodule:: thingflow.filters.buffer
  29. :members:
  30. thingflow.filters.combinators
  31. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. .. automodule:: thingflow.filters.combinators
  33. :members:
  34. thingflow.filters.dispatch
  35. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  36. .. automodule:: thingflow.filters.dispatch
  37. :members:
  38. thingflow.filters.first
  39. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. .. automodule:: thingflow.filters.first
  41. :members:
  42. thingflow.filters.json
  43. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  44. .. automodule:: thingflow.filters.json
  45. :members:
  46. thingflow.filters.map
  47. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. .. automodule:: thingflow.filters.map
  49. :members:
  50. thingflow.filters.never
  51. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  52. .. automodule:: thingflow.filters.never
  53. :members:
  54. thingflow.filters.output
  55. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  56. .. automodule:: thingflow.filters.output
  57. :members:
  58. thingflow.filters.scan
  59. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  60. .. automodule:: thingflow.filters.scan
  61. :members:
  62. thingflow.filters.select
  63. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. .. automodule:: thingflow.filters.select
  65. :members:
  66. thingflow.filters.skip
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. .. automodule:: thingflow.filters.skip
  69. :members:
  70. thingflow.filters.some
  71. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  72. .. automodule:: thingflow.filters.some
  73. :members:
  74. thingflow.filters.take
  75. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  76. .. automodule:: thingflow.filters.take
  77. :members:
  78. thingflow.filters.timeout
  79. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  80. .. automodule:: thingflow.filters.timeout
  81. :members:
  82. thingflow.filters.transducer
  83. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  84. .. automodule:: thingflow.filters.transducer
  85. :members:
  86. thingflow.filters.where
  87. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  88. .. automodule:: thingflow.filters.where
  89. :members:
  90. thingflow.adapters
  91. ------------------
  92. .. automodule:: thingflow.adapters
  93. :members:
  94. thingflow.adapters.csv
  95. ~~~~~~~~~~~~~~~~~~~~~~~~
  96. .. automodule:: thingflow.adapters.csv
  97. :members:
  98. thingflow.adapters.generic
  99. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. .. automodule:: thingflow.adapters.generic
  101. :members:
  102. Other Adapters
  103. ~~~~~~~~~~~~~~
  104. Many adapters are not included in the auto-generated documentation, as
  105. importing the code requires external libraries (not possible for the
  106. auto document generation). Here is a list of additional adapters
  107. in the ThingFlow-Python distirbution:
  108. * ``bokeh`` - interface to the Bokeh visualization framework
  109. * ``influxdb`` - interface to the InfluxDb time series database
  110. * ``mqtt`` - interface to MQTT via ``paho.mqtt``
  111. * ``mqtt_async`` - interface to MQTT via ``hbmqtt``
  112. * ``pandas`` - convert ThingFlow events to Pandas ``Series`` data arrays
  113. * ``predix`` - send and query data with the GE Predix Time Series API
  114. * ``postgres`` - interface to the PostgreSQL database
  115. * ``rpi.gpio`` - output on the Raspberry Pi GPIO pins
  116. Please see the source code for more details
  117. on these adapters.