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.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

Metadata

Release files for taos-ws-py 0.6.0

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.6.0
File
taos_ws_py-0.6.0-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 abi3 Linux glibc 2.17+ x86-64 Details
taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.7 abi3 Linux glibc 2.17+ ARMv7l Details
taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details
taos_ws_py-0.6.0-cp37-abi3-macosx_10_12_x86_64.whl CPython 3.7 abi3 macOS 10.12+ x86-64 Details
taos_ws_py-0.6.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.7 abi3 macOS 10.12+ x86-64, macOS 11.0+ ARM64, macOS 10.12+ universal2 (ARM64, x86-64) Details

Total release size: 25.7 MB

Release files / taos_ws_py-0.6.0-cp37-abi3-win_amd64.whl

Download URL taos_ws_py-0.6.0-cp37-abi3-win_amd64.whl
Size 4.2 MB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a4f44321a86843e33c7749838064b04e8f370bdf3002d0cdfd10669ac3b83406
BLAKE2b-256 checksum
How to use checksums
780dbb2b9b001066ee6d2e638a4536441929cc2d69503638b870c7aad9876885
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release files / taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.9 MB
Tags CPython 3.7 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c34fe6a4ca500cc3051e85a6527651dc9e42c6bbd6be872a23dca40bf9bc9f4c
BLAKE2b-256 checksum
How to use checksums
df8062935babb8d5aa618b98424fbaace7d1682f4b027b1c87c048575bdcdc24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release files / taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.4 MB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
2b680098f180de49d8ae3b67ac8372afdeddce4319ffe58013b9ff433ac70e89
BLAKE2b-256 checksum
How to use checksums
00dcd81d75fdeb255e48d88df4d408a2eeffe87abb8dc1bd108f0abf0ad117dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release files / taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL taos_ws_py-0.6.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.6 MB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b91d087fb0068df0294f8f0303ab91efd3e8ed502206d4f9cd2ae0aaf1fb477e
BLAKE2b-256 checksum
How to use checksums
e9013c9c8efe252a54ad61e7087acf9dfacd0fb11a6acab60da1347c9b3dfd7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release files / taos_ws_py-0.6.0-cp37-abi3-macosx_10_12_x86_64.whl

Download URL taos_ws_py-0.6.0-cp37-abi3-macosx_10_12_x86_64.whl
Size 3.6 MB
Tags CPython 3.7 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f094d7c88ec44624ee7bc9451ba52a286da04382c3251cc48144ae3c9cec9bf8
BLAKE2b-256 checksum
How to use checksums
df515faee0e730333352a45b2c6cce722d10e40bb32c692b37bf2dafc6abfabb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release files / taos_ws_py-0.6.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL taos_ws_py-0.6.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 7.0 MB
Tags CPython 3.7 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0873c92e58207c4dab1bbc23e9087321e926ec95543edfeb1b22ae05fe22b785
BLAKE2b-256 checksum
How to use checksums
04c4d285abb6d93688955edaed9f28d9c7ace10232196807c0df026291807cea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.1

Release history Release notifications | RSS feed

0.7.0

7 release files

0.6.9

7 release files

0.6.8

6 release files

0.6.7

14 release files

0.6.6

14 release files

0.6.5

14 release files

0.6.4

14 release files

0.6.3

6 release files

0.6.2

6 release files

0.6.1

6 release files

This release

0.6.0 This release

6 release files

0.5.4

6 release files

0.5.3

6 release files

0.5.2

6 release files

0.5.1

6 release files

0.4.0

6 release files

0.3.9

6 release files

0.3.8

6 release files

0.3.5

6 release files

0.3.4

6 release files

0.3.3

6 release files

0.3.2

6 release files

0.3.1

8 release files

0.3.0

6 release files

0.2.9

6 release files

0.2.8

6 release files

0.2.7

6 release files

0.2.6

6 release files

0.2.5

6 release files

0.2.4

6 release files

0.2.3

6 release files

0.2.2

5 release files

0.2.1

6 release files

0.2.0

6 release files

0.1.1

4 release files

0.1.0

4 release files

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