Airflow TDengine Provider
The Airflow Provider for TDengine.
Usage
Build the package locally, and install it on your Airflow environment.
pip install dist/apache_airflow_providers_tdengine-0.0.1-py3-none-any.whl
Or via PyPI:
pip install apache-airflow-providers-tdengine
Add a connection to Airflow via CLI:
airflow connections add 'tdengine_default' \
--conn-uri 'YOUR_CONN_URI_HERE'
NOTICE: The client driver taosc must be installed since only native connector i.e. tdengine is supported now.
Sample Operator
from sciaiot.airflow.providers.tdengine.operators.tdengine import BaseTDengineOperator
class CustomTDengineOperator(BaseOperator):
def __init__(self, *, **kwargs) -> None:
super().__init__(conn_id=conn_id, database=database, **kwargs)
def execute(self, context: Context) -> None:
statement = "SELECT server_status()"
hook = self.get_hook()
hook.run(statement=statement)
Development
IDE
Use devcontainer with VS Code.
Database
Run the tests/DDL.sql in taos CLI to setup a test database.
Code Style
In the root folder of project, run:
# add -v for verbose output
# add --fix for auto fixing
ruff check
Or with the Ruff extension installed, run commands for any opening python file.
Type Check
In the root folder of project, run:
mypy .
Test
In the root folder of project, run:
pytest .
Build
In the root folder of project, run:
python -m build
Metadata
Release files for apache-airflow-providers-tdengine 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apache_airflow_providers_tdengine-0.1.1.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apache_airflow_providers_tdengine-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / apache_airflow_providers_tdengine-0.1.1.tar.gz
| Download URL | apache_airflow_providers_tdengine-0.1.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a82a988fb2c5a46e8c6947305a38d780a399fbf4818dd35fc6663dc7303ff21f
|
|
BLAKE2b-256 checksum How to use checksums |
26c681dc79f360d3293e4ec5226d02aa99b1a6721d8365e417a916a0a15f6eaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 19, 2024.
Transparency logRelease files / apache_airflow_providers_tdengine-0.1.1-py3-none-any.whl
| Download URL | apache_airflow_providers_tdengine-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b566b907c0c1b4795f65dab2278cc668ea448843946da702170858729d4eeeb
|
|
BLAKE2b-256 checksum How to use checksums |
9b293b3e74fdc93e7ff925b601a2e083ecb02fde987273df688d27b38d2920ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 19, 2024.
Transparency log