METADATA 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. Metadata-Version: 2.1
  2. Name: influxdb
  3. Version: 5.3.0
  4. Summary: InfluxDB client
  5. Home-page: https://github.com/influxdb/influxdb-python
  6. License: MIT License
  7. Platform: UNKNOWN
  8. Classifier: Development Status :: 3 - Alpha
  9. Classifier: Intended Audience :: Developers
  10. Classifier: License :: OSI Approved :: MIT License
  11. Classifier: Operating System :: OS Independent
  12. Classifier: Programming Language :: Python
  13. Classifier: Programming Language :: Python :: 2.7
  14. Classifier: Programming Language :: Python :: 3
  15. Classifier: Programming Language :: Python :: 3.4
  16. Classifier: Programming Language :: Python :: 3.5
  17. Classifier: Programming Language :: Python :: 3.6
  18. Classifier: Topic :: Software Development :: Libraries
  19. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  20. Requires-Dist: python-dateutil (>=2.6.0)
  21. Requires-Dist: pytz
  22. Requires-Dist: requests (>=2.17.0)
  23. Requires-Dist: six (>=1.10.0)
  24. Requires-Dist: msgpack (==0.6.1)
  25. Provides-Extra: test
  26. Requires-Dist: nose ; extra == 'test'
  27. Requires-Dist: nose-cov ; extra == 'test'
  28. Requires-Dist: mock ; extra == 'test'
  29. Requires-Dist: requests-mock ; extra == 'test'
  30. InfluxDB-Python
  31. ===============
  32. .. image:: https://travis-ci.org/influxdata/influxdb-python.svg?branch=master
  33. :target: https://travis-ci.org/influxdata/influxdb-python
  34. .. image:: https://readthedocs.org/projects/influxdb-python/badge/?version=latest&style
  35. :target: http://influxdb-python.readthedocs.org/
  36. :alt: Documentation Status
  37. .. image:: https://img.shields.io/coveralls/influxdata/influxdb-python.svg
  38. :target: https://coveralls.io/r/influxdata/influxdb-python
  39. :alt: Coverage
  40. .. image:: https://img.shields.io/pypi/v/influxdb.svg
  41. :target: https://pypi.python.org/pypi/influxdb
  42. :alt: PyPI Status
  43. InfluxDB-Python is a client for interacting with InfluxDB_.
  44. Development of this library is maintained by:
  45. +-----------+-------------------------------+
  46. | Github ID | URL |
  47. +===========+===============================+
  48. | @aviau | (https://github.com/aviau) |
  49. +-----------+-------------------------------+
  50. | @xginn8 | (https://github.com/xginn8) |
  51. +-----------+-------------------------------+
  52. | @sebito91 | (https://github.com/sebito91) |
  53. +-----------+-------------------------------+
  54. .. _readme-about:
  55. InfluxDB is an open-source distributed time series database, find more about InfluxDB_ at https://docs.influxdata.com/influxdb/latest
  56. .. _installation:
  57. InfluxDB pre v1.1.0 users
  58. -------------------------
  59. This module is tested with InfluxDB versions: v1.2.4, v1.3.9, v1.4.3, v1.5.4, v1.6.4, and 1.7.4.
  60. Those users still on InfluxDB v0.8.x users may still use the legacy client by importing ``from influxdb.influxdb08 import InfluxDBClient``.
  61. Installation
  62. ------------
  63. Install, upgrade and uninstall influxdb-python with these commands::
  64. $ pip install influxdb
  65. $ pip install --upgrade influxdb
  66. $ pip uninstall influxdb
  67. On Debian/Ubuntu, you can install it with this command::
  68. $ sudo apt-get install python-influxdb
  69. Dependencies
  70. ------------
  71. The influxdb-python distribution is supported and tested on Python 2.7, 3.5, 3.6, 3.7, PyPy and PyPy3.
  72. **Note:** Python <3.5 are currently untested. See ``.travis.yml``.
  73. Main dependency is:
  74. - Requests: HTTP library for human beings (http://docs.python-requests.org/)
  75. Additional dependencies are:
  76. - pandas: for writing from and reading to DataFrames (http://pandas.pydata.org/)
  77. - Sphinx: Tool to create and manage the documentation (http://sphinx-doc.org/)
  78. - Nose: to auto-discover tests (http://nose.readthedocs.org/en/latest/)
  79. - Mock: to mock tests (https://pypi.python.org/pypi/mock)
  80. Documentation
  81. -------------
  82. Documentation is available at https://influxdb-python.readthedocs.io/en/latest/.
  83. You will need Sphinx_ installed to generate the documentation.
  84. The documentation can be generated by running::
  85. $ tox -e docs
  86. Generated documentation can be found in the *docs/build/html/* directory.
  87. Examples
  88. --------
  89. Here's a basic example (for more see the examples directory)::
  90. $ python
  91. >>> from influxdb import InfluxDBClient
  92. >>> json_body = [
  93. {
  94. "measurement": "cpu_load_short",
  95. "tags": {
  96. "host": "server01",
  97. "region": "us-west"
  98. },
  99. "time": "2009-11-10T23:00:00Z",
  100. "fields": {
  101. "value": 0.64
  102. }
  103. }
  104. ]
  105. >>> client = InfluxDBClient('localhost', 8086, 'root', 'root', 'example')
  106. >>> client.create_database('example')
  107. >>> client.write_points(json_body)
  108. >>> result = client.query('select value from cpu_load_short;')
  109. >>> print("Result: {0}".format(result))
  110. Testing
  111. -------
  112. Make sure you have tox by running the following::
  113. $ pip install tox
  114. To test influxdb-python with multiple version of Python, you can use Tox_::
  115. $ tox
  116. Support
  117. -------
  118. For issues with, questions about, or feedback for InfluxDB_, please look into
  119. our community page: http://influxdb.com/community/.
  120. We are also lurking on the following:
  121. - #influxdb on irc.freenode.net
  122. - #influxdb on gophers.slack.com
  123. Development
  124. -----------
  125. All development is done on Github_. Use Issues_ to report
  126. problems or submit contributions.
  127. .. _Github: https://github.com/influxdb/influxdb-python/
  128. .. _Issues: https://github.com/influxdb/influxdb-python/issues
  129. Please note that we WILL get to your questions/issues/concerns as quickly as possible. We maintain many
  130. software repositories and sometimes things may get pushed to the backburner. Please don't take offense,
  131. we will do our best to reply as soon as possible!
  132. Source code
  133. -----------
  134. The source code is currently available on Github: https://github.com/influxdata/influxdb-python
  135. TODO
  136. ----
  137. The TODO/Roadmap can be found in Github bug tracker: https://github.com/influxdata/influxdb-python/issues
  138. .. _InfluxDB: https://influxdata.com/time-series-platform/influxdb/
  139. .. _Sphinx: http://sphinx.pocoo.org/
  140. .. _Tox: https://tox.readthedocs.org