Skip to main content

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.8)
  • 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

Metadata

Release files for taos-ws-py 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for taos-ws-py 0.7.1
File Actions
taos_ws_py-0.7.1-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details for taos_ws_py-0.7.1-cp38-abi3-win_amd64.whl
taos_ws_py-0.7.1-cp38-abi3-manylinux_2_31_riscv64.whl CPython 3.8 abi3 Linux glibc 2.31+ RISC-V 64 Details for taos_ws_py-0.7.1-cp38-abi3-manylinux_2_31_riscv64.whl
taos_ws_py-0.7.1-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.8 abi3 Linux glibc 2.17+ x86-64 Details for taos_ws_py-0.7.1-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
taos_ws_py-0.7.1-cp38-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl CPython 3.8 abi3 Linux glibc 2.17+ ARMv7l Details for taos_ws_py-0.7.1-cp38-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
taos_ws_py-0.7.1-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.8 abi3 Linux glibc 2.17+ ARM64 Details for taos_ws_py-0.7.1-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_x86_64.whl CPython 3.8 abi3 macOS 10.12+ x86-64 Details for taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_x86_64.whl
taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.8 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 11.0+ ARM64, macOS 10.12+ x86-64 Details for taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 33.8 MB

Release files / taos_ws_py-0.7.1-cp38-abi3-win_amd64.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-win_amd64.whl
Size 4.8 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
eef6def0e44f6ccde7e022de13b8456661b658b7febebdacfccb78f51194ceb8
BLAKE2b-256 checksum
How to use checksums
80dcc8f6189bc3aa887a39a716d9739140a492ff9ab16518865eebb9ca6d67aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / taos_ws_py-0.7.1-cp38-abi3-manylinux_2_31_riscv64.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-manylinux_2_31_riscv64.whl
Size 4.2 MB
Tags CPython 3.8 Linux glibc 2.31+ RISC-V 64 abi3
SHA-256 checksum
How to use checksums
72bae26fe8d2949f13a198e60c62ff2706c6d27bbbe2a10c52e0d059ff4c839e
BLAKE2b-256 checksum
How to use checksums
ea5a9d4ad56f7f2e34fb211d6225c60dd8f850410e8e7511a139809665e2c84f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / taos_ws_py-0.7.1-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 4.5 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
9e35b4721fe533942853ff347e25250c4b2f2a2315d5b59008cf0830fbad6687
BLAKE2b-256 checksum
How to use checksums
12d61c059e01fc6de68fe909a504a58c872a395833727d6fa267f63dcc077439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / taos_ws_py-0.7.1-cp38-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
Size 4.0 MB
Tags CPython 3.8 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
ea0475d490b75b7c58cf719813e5b7831f73aa440b65ca711f01143eca599602
BLAKE2b-256 checksum
How to use checksums
abdee992bd5fd89eb8eb753fbeb65f6c69b883fcbafe4cc1173f9b1f89f48229
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / taos_ws_py-0.7.1-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 4.3 MB
Tags CPython 3.8 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
9fb53e6f924108ae8b50589e30fb2981c41b00a2c6d2ec1d232ca9ec8bd29c61
BLAKE2b-256 checksum
How to use checksums
6709005e6b9dd8e1923b4aef2b3105c96746c28c20e3ff26f55efb06b3ef60e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_x86_64.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_x86_64.whl
Size 4.1 MB
Tags CPython 3.8 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f1a7a25140bd053df904e878172e6c6d7b8e5ab2d34cc1e102cc5df30fcb4775
BLAKE2b-256 checksum
How to use checksums
0f2d3f3ec9ed2c4c27f627fc4439045d59cbc9f9a7e1adaebf64b0044a496f3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL taos_ws_py-0.7.1-cp38-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 8.1 MB
Tags CPython 3.8 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
24687501f950ad9ef2e8222dd162111d4ba557d298766627c139f89f690a602c
BLAKE2b-256 checksum
How to use checksums
b64b95dcf44d46dba0cb52a656ed52db29df67c79b29b6f674068e1c02e5014f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for taos-ws-py 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.1 This release

7 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page