Skip to main content

No project description provided

Project description

The official TDengine Python websocket connector

GitHub Actions Workflow Status codecov GitHub commit activity PyPI GitHub License PyPI
Twitter Follow YouTube Channel Discord Community LinkedIn StackOverflow

Table of Contents

1. Introduction

taospy is the official Python Connector for TDengine, allowing Python developers to develop applications that access the TDengine database. It supports functions such as data writing, querying, subscription, schemaless writing, and parameter binding.

The API for taospy is compliant with the Python DB API 2.0 (PEP-249). It contains two modules:

  1. The taos module. It uses TDengine C client library for client server communications.
  2. The taosrest module. It wraps TDengine RESTful API to Python DB API 2.0 (PEP-249). With this module, you do not need to install the TDengine C client library.

2. Documentation

  • To use Python Connector, please check Developer Guide, which includes how an application can introduce the Python Connector , as well as examples of data writing, querying, schemaless writing, parameter binding, and data subscription.
  • For other reference information, please check Reference Manual, which includes version history, data types, example programs, API descriptions, and FAQs.
  • This quick guide is mainly for developers who like to contribute/build/test the Python Connector by themselves. To learn about TDengine, you can visit the official documentation.

3. Prerequisites

  • Python runtime environment (taospy: Python >= 3.6.2, taos-ws-py: Python >= 3.7)
  • TDengine has been deployed locally. For specific steps, please refer to Deploy TDengine, and taosd and taosAdapter have been started.

4. Build

Download the repository code and execute the following in root directory to build develop environment:

maturin build

5. Testing

5.1 Test Execution

The Python Connector testing framework is pytest.

The testing directory for taos-ws-py is located in the root directory: taos-ws-py/tests/ .

The test code has been written into one bash file. You can open and view the detailed testing process.

The following command runs all test cases on Linux platform:

# for taos-ws-py
bash ./test_taos-ws-py.sh

5.2 Test Case Addition

You can add new test files or add test cases in existing test files that comply with pytest standards

5.3 Performance Testing

Performance testing is in progress.

6. CI/CD

7. Submitting Issues

We welcome the submission of GitHub Issue. When submitting, please provide the following information:

  • Problem description, whether it always occurs, and it's best to include a detailed call stack.
  • Python Connector version.
  • Python Connection parameters (username and password not required).
  • TDengine server version.

8. Submitting PRs

We welcome developers to contribute to this project. When submitting PRs, please follow these steps:

  1. Fork this project, refer to (how to fork a repo).
  2. Create a new branch from the main branch with a meaningful branch name (git checkout -b my_branch). Do not modify the main branch directly.
  3. Modify the code, ensure all unit tests pass, and add new unit tests to verify the changes.
  4. Push the changes to the remote branch (git push origin my_branch).
  5. Create a Pull Request on GitHub (how to create a pull request).
  6. After submitting the PR, you can find your PR through the Pull Request. Click on the corresponding link to see if the CI for your PR has passed. If it has passed, it will display "All checks have passed". Regardless of whether the CI passes or not, you can click "Show all checks" -> "Details" to view the detailed test case logs.
  7. After submitting the PR, if CI passes, you can find your PR on the codecov page to check the test coverage.

9. References

10. License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

taos_ws_py-0.6.4-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.4-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.4-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.4-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.9 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.4-cp37-abi3-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.9 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.4-cp37-abi3-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

taos_ws_py-0.6.4-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (8.0 MB view details)

Uploaded CPython 3.7+macOS 10.12+ universal2 (ARM64, x86-64)macOS 10.12+ x86-64macOS 11.0+ ARM64

File details

Details for the file taos_ws_py-0.6.4-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 7fd44a43dcd05ed30df5ecb783520f7460e9f670df32aee6bc1c17e32ed0a127
MD5 8aa9b0e3d08a6b09b551bd04dacb9e04
BLAKE2b-256 76da1a91e2d7d878464ae25c0d3f1051c40efb4514fee5e068d8441e7972b786

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e63b9074c3b5f100a8070be8dffe163a2f13cb4fb7304bc648f5bee3f19f6114
MD5 88d8c826535e21d5cd4593f090852707
BLAKE2b-256 768e5f3f8180cc762776169fe568f810c09450522ae57acd12d96d506ba81ad8

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 d3c9b22e4c89b70f5019942db1cdd76f15182d7f261da3f53d4011bbf14f8400
MD5 a576a8b0f35814df2556d05fc0438a3b
BLAKE2b-256 c4569f7f7340f36d439fa45ad5feb8e2bf498e83296dc0810437338d41be3d22

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f96f25d78346fcdf413abecb1fdf52b43819be9217a32667f2bd88fe4565d5b6
MD5 f1e4eb9853e2c898f19f8787657bdfdd
BLAKE2b-256 2b217eef5d98de18151cc990486d588973d7f5772d7387821d0514882ecbfb80

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 80fa11bc663dd5fec22a64101bbe7f11ca4a4788547d2a7b514e306b4b5a2e42
MD5 3e43424078b533b97eac4b4ebcfc6058
BLAKE2b-256 252863aaf4ce7043d7cc95358319aec3a0d01a381b6b432b4f861a13a655c676

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8af2911c70a733dbc8e7da03bfa2886480f05f47972087777f0145515d3ee7cc
MD5 c21c78de1df715af5a02d93e17506190
BLAKE2b-256 da3117360ce136cac038cc838b8a4e884f525d705a1b6e6e3b2fb076f16dd1f6

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 97257faac71ab15dfbaa14701e157f4ec8b2615c3e12b463e5a995240ebea0ca
MD5 3364463ef598fe5ff96ee535c72559ff
BLAKE2b-256 57df67fba16877519d197ed9a39e56473daa6940017aa20b5f7b3de2cf0f6aaf

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 62848ab1745489ca39aabfa2675a066a226c2b7666106e8c0d3357dc591856ef
MD5 e7c7d4407fb639cb0687334aa3017709
BLAKE2b-256 682ad75c06cce3cd4e1b14e55c586a630468f84f98eb7bf1b4c28b90e344b84e

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d2a2ea76dfa416d6728714a9fd410ececd98ccdbb63c344163e4f940e8cba1ef
MD5 c028baa217d31a347ffb7f4afbd5a1eb
BLAKE2b-256 36e2f854480bc6ca0e9781bf2cefbbdabcbdd4cde35033804291fcb79643461d

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d1c96d458fee892971d5b1a89282c11eb5c5f8f622469da63b8527aefcd36e4
MD5 877171ec5f6ee8742915f24624545a75
BLAKE2b-256 a5c54b73f89ef075baba5cf411c28b6b7302e65572a513d8c2b85d5ad9cebc3d

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 4097f679179ead192e5de4124f6b5ba1b39e4a007898668676fe6c04c77bf376
MD5 8c642da064bb0addb2aff2f39f86090c
BLAKE2b-256 b3017f82a05273f82773af1dd80a57ed60f0ea482fa1f4498aeb7e503bcaf0ef

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 99dc54c04ba147d668d33d9f447a4e12c93c3d90ee874cea798eaec1155db96c
MD5 154c08928d6b3733c642806fa7f921f8
BLAKE2b-256 2566816c8ce295cfb8c34cdae9a8e86d9c2dd142ce5c8d2f3287349f9f00b109

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 83677f09f777fa1165ead05cae14be4d76d1bd0e0b9ba336abc7ff5e34751684
MD5 5abe99cf8fc31d7c22627adb6d453a75
BLAKE2b-256 a5cc810fe54447184f12192063a25320a55e51143d4b45dd8905d498166847e0

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.4-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.4-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 d9730c5abeeb6f7e412ce24fa0404549ccd36264d89f63b677bbdbeca847fac9
MD5 c33cb29b20b4cc2b7d1844757973ecba
BLAKE2b-256 b988a956c9845c0ba2590cf34a4218b023ce9964b3e5da284363d688b0efd00d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page