Skip to main content

The official TDengine Python WebSocket connector

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.7-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.7-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.7-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.7-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.7-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.7-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.7-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.7-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.6.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB view details)

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

taos_ws_py-0.6.7-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (4.0 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.6.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

taos_ws_py-0.6.7-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.7-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (8.1 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.7-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 85ed3f6202957cdbfc7f0bd9f98483aa23e4a138701c59e6fb9cce570f8888bb
MD5 21cca99153b61ea52c8846253aee85cd
BLAKE2b-256 8ab905c7f2e5de5ced23fe316a7f001cef86b42890cb67b1f2e5fd865c15336c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 573bdfcbfcc226ad6108eb859ed9e6dab14b7a28be127cabf39993d43461c249
MD5 475db9d4a94c6acffc4610ae0575fbdc
BLAKE2b-256 89a6a28a7673a649192495bbffb57ffc1d358efa67b716e0430219ab5a0134b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 26c2c1a5e90396d99d091552858e654e637908887c1738abc27753a16d82adae
MD5 2660150677aa8e96fb87b9dc634fb627
BLAKE2b-256 823595cc52904654fce3b0574445f8c370b6eb7e8516e9d143ff47dabd1b41df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5df15b21fc27624788105c1b8fa9898133f014ae22cebd2bd1d08c45600bde5f
MD5 d4065c3a00a6705fc1657b7ef2fb97f5
BLAKE2b-256 e35efa6c6750da9b71c91f4b2a469b90041cae37aac3f5625fcf9d3688b74644

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bd10b3070106a8c796d627087604c081055e20502ce37a6357d0a3ced6c27dcd
MD5 dcd888bc6356f1ed53b4f9774ffe011c
BLAKE2b-256 d3ca75df43309016b311b6c9a7a92053c5e46faaa8248b0c936b01ef9c70a8cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3ee3dd327a31a1dd8e465494a228c676ac7d6ae38e147752b96b274273bec03b
MD5 49ace54987672d2d90b071da1fd7515c
BLAKE2b-256 3a388c6ecda9787092d441c0fbf6aa59fd889d1ee3bc304368331e5e48111229

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 a5998b6f476381c6fa23a0427458fc0b14e8f31446049f73fcd1fde2a11ee729
MD5 7bf0f0edde82d08a872de3528d96ec48
BLAKE2b-256 9bb0d1021bdd8acb6e4dd1211413308f1aa177bd25048b26d4efb6efee8c9406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 802765c7406ef76b17e6e413f4ec6e63d230aa2a36c99c82762064c8feefc4b0
MD5 7bf8bb5bdc57dbb14ad1d3f72f62fe57
BLAKE2b-256 26a76a5ec7e85b5c8101552e842af07c0071464d7a6bb23e75fee916edbf3399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d89b14074d8ad1865f8f62a1c7d45cf0a9b66ef54bdd8b15b15a50f74871a69c
MD5 0f0f219ac6cee87e0e135874c14dbdb1
BLAKE2b-256 c577822fbafda0ea663b8575124c8db85ecdca0f27a8195ade8cee547fa28fc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7fb9c42da398ead7e9dcbc415c64bd1f3cef8264bcf79f55af421dfad1bc4104
MD5 709df600265cd46a46ce30c06e6eca5f
BLAKE2b-256 3161af2a4d1ebbff1a13ce1b2134d4d008500a9a2352af145db4be51270d9a97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 349793682bfb0e4c0f9214b44ebe08f6f32acab07909c3140cb23287afbcfd64
MD5 7c5a74b4567ffe86ca3793d7f0f3522d
BLAKE2b-256 b2b4d1d6c67e51d477f664c15181b6703c5a019da6a421dc29aa7e5a42f87c83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3e64333d77481d8c32e98c2692d8875c5ef3802c47d41306c395acab3c4818ba
MD5 bb2323f41c49c1011fb4aa363d4642d8
BLAKE2b-256 edb725e2ca3a60c2c76e8a69afb4f3417618fdaf4f6178f1e8271e3d3dfe5ee4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.7-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d6f8130f16bb1b74adb06b4997617d0091cd96279419f0e235da39c5edae8216
MD5 38c89860f33c7530bd5dfd97270c535a
BLAKE2b-256 485622e4bf533e5583aa8d823ed09775f8abc80b448f9a164fdb39efb5f916c4

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.7-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.7-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 d17680541bc2a768aad73fff84246259f80c71075fb52466c98237f6cc3ae13b
MD5 9a9b74eef7eb532a004c7b7d6be492a0
BLAKE2b-256 45ab61f9c26bbd41deb049c6a4053ce97d3e4ddd75fdc8621a934d17db655688

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