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

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.5.2-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.2-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.2-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.2-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.2-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.2-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.5.2-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 392de19ac55912007eaef195047e5e42d9cdb5a39e4f244c87bc45138638488e
MD5 f01a8b6a8d64f255609b16bcca162f98
BLAKE2b-256 3b64dc7bbb30fdd65cea55363b6d7f4f9058c4f608df08f42076effb0a3214a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 02957d21622b22facfbf507ec43f1246741de1f9ee2202781da8d6cf28d29d1e
MD5 e7864ad331960932f687c9c47e549bad
BLAKE2b-256 af29a9137dc0f843c82601f52ca1b93a0adfac1044bc8f8b598bae2485a7a5e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.2-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 51f36037e7705a88e199b2ce4dd63d9928a2dcdb1dae6314f4a599e9b7f56e1a
MD5 1176f3be5eab13a01fd9fe10b38ab359
BLAKE2b-256 2f6ece0d5f9987a54d76b928956b78c4461a5289c9a3e31b7a27cb61887d12c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.2-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 22e7a3342ad1372c678bd87b554f73be25c11f7f61d23e5fd73846c0ec577777
MD5 5173920324895e0258415ef978bb202d
BLAKE2b-256 ca7a3a7bdf7095adcb1125b012f5873359e8e524eceb03f0273b03c34c976d50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.2-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 63c2be1fcf2c172d8de863b0380252a40b75ccc1d26fca25b59b3f7ba6519841
MD5 73a7da2b89b3cadd532e9c505565c5a9
BLAKE2b-256 36a59d1919e67d39e7b7cea3af31527cc99327fc0d7112a04d8bab1726f593bb

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.5.2-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.2-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 70186e5a3440081cf0a2a6be9c839eab742541ab6b0a80829edc0c4891c928a4
MD5 a971e2f97d9806f51898dbea06c04471
BLAKE2b-256 4a0c5bec63ec9ad53eb8c7b4bc578ecf2a820ddbebf432f7aa990bbb665aec8a

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