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

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.6.5-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.5-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.5-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.5-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.5-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.5-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 514ebbbb82d4b4fb15f15128a83107fcb0763dfb050609e85b616f10f1c0f15b
MD5 a1153333401c2c3c5ad3c80b53b9d44a
BLAKE2b-256 f82e6e59cc44e62adda63b8aef1fe9088fa22fbe4c91cc30468f889d968d9a20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2b9db6b952da1e36e913fc7498d6bc247cec0e94bb58c7e8c791112a9a3832af
MD5 7c0a4949b22f56979891601c53ac16be
BLAKE2b-256 7150d3128e1c00c74e3d06f6d132515acbecfac42259964a2f706eaa218befd0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 022839d7deee48a47aa9ea603581bff1d168a3622271387e3efa08a587ba4992
MD5 385c359eb230dcc9992e36850d25c95d
BLAKE2b-256 31be192a281519d061cfba4f6c60f4e6f4fbe09c5ccdcc041eb04c20da13e51f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 787d65e899846a1a717e7e64d6fd96a8f822a43d436ab26d3930dec5aaa4e6f7
MD5 1154e403bdf4261e225cad3bd58bccec
BLAKE2b-256 2faceba23d71c8e6f73e8a9f4250d5bb2dd281dd3315f570e84af842fedb09fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp38-pypy38_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 0ff448af1e2f8dbf88d92a768e04821d85130fb3739cf3313df833b82d35ab0c
MD5 597168553bad3fe80918defcbc7aab8f
BLAKE2b-256 c49959d6853754d73361b21acc5883346003b3cf49ef3ce720db5c6153e31e6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6f2a4d4590ba7d25b0739eee373e0255a267aa5fb0eb223b8a83e2a6ac9c025f
MD5 6b65f0489a461b92eddd63b9b4312de9
BLAKE2b-256 7a9d6687273cbd60d8f0909356ed359e6de804ceda97008c1a78c419b53ed344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp37-pypy37_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 cbf23d0e9834d63038ab983c32a02da33fc6767cc45fb05d1f46e2006b31ce16
MD5 ca5c51e0b84cccb9ce6cfed4baa76d03
BLAKE2b-256 1396f5de9d11ed341de2919ed93c501cb372e4560439af386a9d213d234ea82a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 100ad0ab3a5e67fe0cabb92876f886a9498c687cd137f6b580d8d6ffc7314a54
MD5 144ad18519da9aa186ee44a38b3e52b7
BLAKE2b-256 e0e7b838c0618e07a8ff889d5684c0492334e542e8f2fdb2c2760f97fa5c390e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 79727ab5931301ffe44bbb337af60fe0f72defa73325f56be01d862dc5c6c22a
MD5 3b812c23734cc78c78f736bd1cb139e8
BLAKE2b-256 e41f71f3dc6414c4294dee3342a0f7837452064df5e31008c5ebd88be9d929cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b6eafd6db2fd019034c034d0e1001da36bcaf600b5234a25f802961f30fcf70
MD5 273f8b8ed73015834203302765d5904d
BLAKE2b-256 ed99b0d765bf237731008aaec801a182564039706438f9f1ff2c21f9849c3480

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 6381842753e0ce39f15f196b54adb7f6f48ae56245cd4f29f1b4c70cd4e526bd
MD5 66dc43cae95b9b520e1a224ff6ecb4b3
BLAKE2b-256 8072db6c006610d38668f5473f81e33343828e23b194d893ab15836e71c6742a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cc9f78c92852c320b3395c614968151a298fac49f19d5a3a1d17b5407ff728e9
MD5 b8699f27352cbfa7a6425a2a3b6fa75f
BLAKE2b-256 8050d6dbc40040d7cdcdda4da2aa5657377aaac1ceac231cc227bd091e0ed06c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.6.5-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e5d5a60d363e3fc4015f31bd2862706710333711087d184e9e1e75b2679d1585
MD5 7eae7b1143ff9d956d15d8cb03a0071c
BLAKE2b-256 97bd70bee4246099c69b2276a87f6c6f7089e22dc01580246007fdb1e61ebb5b

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.6.5-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.5-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 54cf25af9192265519f59715c25974dff3180ab151bb2c650d78e4f512f4b774
MD5 60b07a70e6e3f36fb6d9ac52c184febd
BLAKE2b-256 8d6e0a1b29cf104f9ef431f93a8837beb0189d7ea94c85cfee5ddd48f1efa817

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