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

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.5.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.8 MB view details)

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

taos_ws_py-0.5.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.4 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.5.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.6 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

taos_ws_py-0.5.4-cp37-abi3-macosx_10_12_x86_64.whl (3.6 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

taos_ws_py-0.5.4-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (7.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.5.4-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.5.4-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 167570c8e9b7c7cbadcc3d3d304f25a579ff302d6510606ae1e00fbb03cae580
MD5 a6bf77fcbc02d2a57e580ccfed6cd304
BLAKE2b-256 0e1552bb2b6f7d44dae1563fbd64306d3b03b446422e1d07a9304e07319749f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 55884fe266f0dd75dc192b24a00b9f92587e98769e7d237e4bf9af188bb9ac86
MD5 b57995b047d7022ec01227daba31cf58
BLAKE2b-256 2ec2bf3d745d18b3e0651e2faac61376fb848238c79d11be3423890b504d6396

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.4-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 afd4692ffb9d876be6338e0bfb3d9215382f50fbae69b14aa4c52050c0c63bf2
MD5 34ba26504e31a03165590f940f910758
BLAKE2b-256 b8940bec7fc2224d98f70c2d6674fc30f46ce7ffeb16e02837dd162012efc782

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.4-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 63276a90acb4f0e7fe34fc6b9434f3e43ae3b4db5724a4cb5bc4849e6ad97d60
MD5 81d7c58f9234ca0a4d0c3cbcf507e927
BLAKE2b-256 1c5414a5b21433e10f51fbfaaa2e0815ea505ef35b26bd962d6b274132c85b4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.4-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d2d4d978b84e8cf83a5eb2fc1884f04d690172ea0279ba36c101b60478400a99
MD5 87aa4971ab8615b3ae154e5cfe503f6b
BLAKE2b-256 3d6380e24a533bbabcc764f47756c828dd891199db11497ce54b9e7e4d843ba6

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.5.4-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.4-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 a92c32b2878146b4f9f143f96170316ae71443acbc40e75086a523b711e93f66
MD5 50c4880ee6d4294267ab5c207d53c14e
BLAKE2b-256 ec3236a424cb432f142087937f720d2c269457228af5a46f50bb7e6e3a2b9562

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