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

Uploaded CPython 3.7+Windows x86-64

taos_ws_py-0.5.3-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.3-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (3.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

taos_ws_py-0.5.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (3.5 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

taos_ws_py-0.5.3-cp37-abi3-macosx_10_12_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

taos_ws_py-0.5.3-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl (6.8 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.3-cp37-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for taos_ws_py-0.5.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fa76510860de53a5c1cd3835395e1c15093c3bde6e00bfaf73a04cc74d6a403b
MD5 10da7e4c0544b74ef1fd15e41571a0cd
BLAKE2b-256 2009d5043924cc3aa6c4437ae1f60f1dd15d19fe0088a415704b83a4b39994a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1d58e414821b1d6474027e12e7df38e30a4e7ab8e2e8533953bdfa665a3a083
MD5 087d580fff7e8f760708c8cfc02ab698
BLAKE2b-256 afde8a18250054c434388f1e672d03def9d595843f27628dd9328706ea73963d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.3-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 9a63c593144890cfa821789937a52dd53c066644da2d7fee89e37859ac408e1f
MD5 7106b90a65f666267538fc9e9bb98375
BLAKE2b-256 feebc75fc46ecacb94aad60461395a04d4758e729d8ab2f8fa8b012406275fc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.3-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a217e8130e179a7cdea4cfb059e2133242a5b4c971785de1f212ea8542fad3fa
MD5 3eac1335b4987d46987d4b13b5e343a6
BLAKE2b-256 3883b40dbf4f4865e33d18afd97d197a220666748c427a81be966f6919c1a860

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for taos_ws_py-0.5.3-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c4288ee6ab027eb95acf96e5d5ca434aef057ab49a15979e1f01d7532a885674
MD5 8e815e049f28dc00be8745095a62beda
BLAKE2b-256 33619d95539a661189c656b1c18b881a66e1223b378473249754e5564800bc8d

See more details on using hashes here.

File details

Details for the file taos_ws_py-0.5.3-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.3-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Algorithm Hash digest
SHA256 8c05caa4ce47d5c01056470d85ba844bee986c76a9602af3cc40fa0fc8c27275
MD5 ce5e7d54bc51feb8912561643fe181fc
BLAKE2b-256 0c4834d81a4bd51c83600656fcce2494a3a45ee486609649c798225269067e2c

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