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

taos_ws_py-0.5.1-cp37-abi3-win_amd64.whl (4.0 MB view details)

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.5.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.7 MB view details)

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

taos_ws_py-0.5.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.5.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.4 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

taos_ws_py-0.5.1-cp37-abi3-macosx_10_12_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

taos_ws_py-0.5.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (6.7 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.5.1-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.5.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 02d6c80d69071fb6220378815e8125000f32f0f76e68315a23670382ead1e0ba
MD5 19ee660db3f5a5f809613dc0b4193f78
BLAKE2b-256 0f8ede1e219e4b6651570c8f2a1614caf56ce3ebe65d703145be92e009ac09a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 40dd9f7fd90098996982e3014c4af6760c027f1160fcb1c9dcdc614b69769d4e
MD5 fae95e45fd9581512068506eee3d7b6e
BLAKE2b-256 c92c91b1f9299bca9b74675204ec3b5e0670a6e516c92da69842bc0782ef8e34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 5e7ac49ee91691ddb7f3c8ac6ef4fb8ebffde43f2d5d28c8c7f57a93326d757e
MD5 1f4d15c7333a66029b28ef99296bc31a
BLAKE2b-256 3f4366b54d4766e0d60eda83a17d6168ad34ea1d8bafbb2783ca37f758458e70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9389f7a036d8a60b01150c01917933f4d9fb45578df27697bdbb8726a5ca1b53
MD5 34fd66385aa7f77592938579157b2402
BLAKE2b-256 e249173cf8d9d3b5359d676249b1c1c78521c2775a3641af9e2dd7228eb41603

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.1-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8bedacef57a53ea5b44e00abf051de5c49b893ed835bf674b9c5cc6710fcdee5
MD5 7d3c6212ae22720b95f8b4a5e29bce21
BLAKE2b-256 9b20724ad8f7b733f8d750d08f25bce07e45d59fe17b62f508867bd3d572e753

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.5.1-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.5.1-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 c067f050aa6a0911fc90a89e5870c15ba534b75015f8e7f248141dc37deb1ed8
MD5 26dbb702c6162b051e1e99264d94fd1e
BLAKE2b-256 bf7817224a1d4a1f8e0e543b73db16304aca50ab4a57e6137b5cddb21be50244

See more details on using hashes here.

Supported by

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