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.6-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.6-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.6-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.6-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.6-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.6-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.6-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.6-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.6-cp37-abi3-win_amd64.whl (4.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.6.6-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.6-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.6-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.6-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.6-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.6-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 929e490d30742b6754ba0c1e4c8a0122aaabe7712b9fc94ce796f19005d84070
MD5 a5bf9709db9285fa2e548427e35016ba
BLAKE2b-256 c263005ff92284969274493e27b7c939394e721383e3d9d4eede106ee525688c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ab440e2225ed422665014c9739225c8ac1412c7f55ee7148b016c73a9c00b68e
MD5 3c56c6f46fc5536023a1a0b2fed5bddd
BLAKE2b-256 12630a9a88aa9f08906f7633a6099ec4a3c92702e7fad729ae30f6dad9220481

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 5e8f03581a876c44893241e949dc2500401fad278ea59ed458a4aa157ab939eb
MD5 9a2d71c4ce61ac7f6d96d1e8e76448da
BLAKE2b-256 f0153c3e7e7346ebe37d2f026f03de06a702d924e662dc5cff562eff8d831020

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 acc4c94e9842bb127d02e18e0ca1320f2f8b6e89c9e625b28b3cdae101a67f5e
MD5 4743638441df599439c375f13eca79fc
BLAKE2b-256 2e5acbd3ccd24ef20f3066ed17efba27beceb4fca55fa1ae54ebdbe51c028e49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bf3e1919d6f2ecb89ed0184b7bcbe78d7d248635431892e364e667d9c879373d
MD5 35cc6899827194b62466f5a71a50b450
BLAKE2b-256 bd15c657a5fd5b2d0825a0d2f8897ba53d688948e888977a303d03412b8ef8b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6a665a8104ed756f22464e38669255159e68ce35eafda9886adab8127e1626c0
MD5 32873028dc2fa2a76eb98c36fb0c4f4a
BLAKE2b-256 2fdd4137d1ba1f5d2a568ffc793c147dd0780294cfcdb076d6929ba92f191521

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ecfadd53009e0944443b11fef638b25d2ac51b03ec6e895815b7683ee26e35bf
MD5 ead03584838775c80bf29a5d2cb1cbc6
BLAKE2b-256 970b508d66b8cc59ba0ec1907cf4c2b4c87d07d73b081f9e02a26ac3a1692003

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 64d6b6f3979a1d294d24040e3b6715a3085ba6216dc2f4c45ae46f02f85ca5b5
MD5 cd2e5fafbc125a2cc831660b26e30d30
BLAKE2b-256 4071518fe24eeb33f0d7df59edcb8b17a048dc5098e208b47edd2d1fcd9bcdd2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 984e5f42efa542746db2a8be8ebbbc984f3b79c5d8186b6173a54be3a8b325d6
MD5 1969ba48514e4e2700a52de34fd71da3
BLAKE2b-256 4f958d50c218dd508018a0b167f4b8bb22e2c5ccf5628ef8a5f299e15e80e4a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 64b8904fcc6b4f96a2100daedc5dc7b3e02b02a7c1b1fec64efa9f21447c8f95
MD5 d14d8cf5a3d7224ddeba23eadae2943e
BLAKE2b-256 56776ac8979c8275163d626133bcea40c79e85e91170beec85f8a9bd75ef5e97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 a54e1da8469b332c9f762ff52ee060bd97f7a9cbb0bf4be405cbc14f3735371e
MD5 4275c70ef19b5f69b2a6f498d1e2a698
BLAKE2b-256 7836772590e43672168c4d4fdcc2be4d8293c49b1eedeb979ab1e183e772f369

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 791b77688061c65bdd5f9b85eebaaed4015e065705dfb54625d34bda26ad3fd6
MD5 5c951318fc41fdabe757c285b49cb184
BLAKE2b-256 a5ed949d03408b27af71f2c5794b75c9069732aecce2a9895cd39a1492727efc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.6-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f009f2e4c0bbfc2ad9e86590b11ce53832d970c1ec7eb17238f149aaf4a2f144
MD5 90af613eabee86da5dcc51e4e4f97965
BLAKE2b-256 2beeb54f033c3cc7629c19e6f860b8655f9195cea458f680bb6119c8fba1f72b

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.6-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.6-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 62c549fc2e4d42062c9f125de660391afa1dd8cfbc38d72c5be4d2f906e25393
MD5 72535b9361058c31397bed17bbf63ac7
BLAKE2b-256 ecae1398c77d1d981f15e092f451865ed1296c6b763add06687b83f31ad6efa7

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