No project description provided
Project description
The official TDengine Python websocket connector
Table of Contents
- 1. Introduction
- 2. Documentation
- 3. Prerequisites
- 4. Build
- 5. Testing
- 6. CI/CD
- 7. Submitting Issues
- 8. Submitting PRs
- 9. References
- 10. License
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:
- The
taos
module. It uses TDengine C client library for client server communications. - 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:
- Fork this project, refer to (how to fork a repo).
- 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. - Modify the code, ensure all unit tests pass, and add new unit tests to verify the changes.
- Push the changes to the remote branch (
git push origin my_branch
). - Create a Pull Request on GitHub (how to create a pull request).
- 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.
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file taos_ws_py-0.4.0-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: taos_ws_py-0.4.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 3.8 MB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c477c6f1abc845faac479ccfbb2929a9cb7ba83bf3078dfdcaf1dea9854f1f2d |
|
MD5 | ff055c479554d93383b5ffb920ce1e57 |
|
BLAKE2b-256 | 5686c51472174c112ca28914bf2d7fa44a7b4712379e6e22d4c342a2ce0bba9e |
File details
Details for the file taos_ws_py-0.4.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: taos_ws_py-0.4.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adbe3b2695c8d9f186fc6874e06c866a73a10d540a1f8502b645c876bba70e47 |
|
MD5 | 26a717756aa671b71017b9b5db020026 |
|
BLAKE2b-256 | 5f7c52b0be4ffe26d973f64f047b894d70680e5bef6ecdc07d26cc5d25178a66 |
File details
Details for the file taos_ws_py-0.4.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: taos_ws_py-0.4.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a4164a6fbef574586a3e9b693b5830bbf4d74e83ce3cd40b175dda05dc3025 |
|
MD5 | e0b3ccd01e27ec3b4f66aefb4794b345 |
|
BLAKE2b-256 | f750b17d0c80ce058353c3875e77d9f95e7b718b39ad3ed02bb2c9a96d3bf379 |
File details
Details for the file taos_ws_py-0.4.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: taos_ws_py-0.4.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08482e57240721b0f53a69083de420f9fa1f054a1746c822bfc9944df40019d9 |
|
MD5 | b186286d0ac53e028973400b4c19d395 |
|
BLAKE2b-256 | b18383fb259caca154f731e734e9024675e114873fb857b52d426d9948cb9cc0 |
File details
Details for the file taos_ws_py-0.4.0-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: taos_ws_py-0.4.0-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.3 MB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7fef3e99b56ed72d22555865a7c83e703bf0564a58e7ee825fd960fa1e32e6a |
|
MD5 | 1f00d6d3c4a257a50e060db18f36139b |
|
BLAKE2b-256 | 3a3be4a8e39c97244779193f61d9ae925ecb476e74411f39fff5e2be7904ab0e |
File details
Details for the file taos_ws_py-0.4.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
.
File metadata
- Download URL: taos_ws_py-0.4.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.7+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1aa3a37ffae50e2d20ce9328eaaafee47e0da7f744be70474961faf2c5bf7b4 |
|
MD5 | 8db5ca3e2fb82e51e234788daf85dcae |
|
BLAKE2b-256 | 0d79febf047375cdc945a93a94bcc113f70f9d288fd4c95a61220e76f2450a9a |