Skip to main content

Tabsdata is a publish-subscribe (pub/sub) server for tables.

Project description

Tabsdata

License

Your use of this product is subject to the terms of use available at https://tabsdata.com/license.

Tabsdata Pub/Sub for Tables

Tabsdata is a publish-subscribe (pub/sub) server for tables.

Tabsdata has connectors to publish and subscribe tables from local files, S3, Azure Storage, MySQL/MariaDB, Oracle, PostgreSQL. It also provides a Connector Plugin API to write custom connectors.

Tables can populated with external data or using data from other tables already existing in the Tabsdata server.

Tables can be manipulated using a TableFrame API (internally Tabsdata uses Polars) that enables selection, filtering, aggregation and joins operations.

For more details refer to Tabsdata Getting Started (latest) or the Tabsdata User Guide (latest).

Installation

Supported platforms:

  • Windows (x86 - latest)
  • macOS (Apple silicon/x86 - latest)
  • Ubuntu, Debian & RedHat - (x86 - latest)
pip install tabsdata

This version (1.5.1) Documentation

How Does Tabsdata Work?

The following snippets show how to publish and subscribe to tables in Tabsdata.

Publishing data from a MySQL Database

@td.publisher(
    td.MySQLSource(
        "mysql://127.0.0.1:3306/testing",
        ["select * from CUSTOMERS"],
        td.UserPasswordCredentials("admin", td.EnvironmentSecret("DB_PASWORD"))
    ),
    tables=["customers"]
)
def customers_publisher(customers: td.TableFrame) -> td.TableFrame:
    return customers

Subscribing, transforming and publishing data within Tabsdata

@td.transformer(
    input_tables=["persons"],
    output_tables=["spanish"]
)
def tfr(persons: td.TableFrame):
    return persons.filter(td.col("nationality").eq("spanish")).select(
        ["identifier", "name", "surname", "language"]
    )

Subscribing to data in an S3 Bucket

@td.subscriber(
    "spanish",
    td.S3Destination(
        "s3://my_bucket/spanish.parquet",
        td.S3AccessKeyCredentials(
            td.EnvironmentSecret("AWS_ACCESS_KEY_ID"),
            td.EnvironmentSecret("AWS_SECRET_KEY")
        )
    ),
)
def sub(spanish: td.TableFrame):
    return spanish

Executing the Publisher

To publish data to Tabsdata run the following command:

$ td fn trigger --coll examples --name pub

Every time the pub publisher is executed, the tfr transformer and the sub subscriber will also be executed.

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.

tabsdata-1.5.1-cp312-abi3-win_amd64.whl (32.6 MB view details)

Uploaded CPython 3.12+Windows x86-64

tabsdata-1.5.1-cp312-abi3-manylinux1_x86_64.whl (47.8 MB view details)

Uploaded CPython 3.12+

tabsdata-1.5.1-cp312-abi3-macosx_11_0_arm64.whl (30.8 MB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file tabsdata-1.5.1-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: tabsdata-1.5.1-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 32.6 MB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for tabsdata-1.5.1-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 f8e8312dcdbe5f40e9b71460ff93f4b0f76ee7769da88dff5c85bfc7b758014b
MD5 7c43efbfe732f1eef2386a7479b887bc
BLAKE2b-256 46eb81b4a2eda8cbde55f5866379137bf17450e851b7ffd55fa15b47575716ce

See more details on using hashes here.

File details

Details for the file tabsdata-1.5.1-cp312-abi3-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tabsdata-1.5.1-cp312-abi3-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e6140f446e6cd418f728710ad73c5bd344b0e8dd8ee59fe074f5b0d3d3cadbb
MD5 8cf36da4f41b0d33a58ddbfbc67f8108
BLAKE2b-256 c0c904ca51731af43bf5be6c8b70f3ef7650b7a8dc6fae99d09aad3ecc0358e7

See more details on using hashes here.

File details

Details for the file tabsdata-1.5.1-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tabsdata-1.5.1-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2b70b0edfa92a8d38c7d47e903f9ac073025d2c24752a5562d8b8d9ee8a8d04b
MD5 6222a7dc3968f048dbbed571bca80ee9
BLAKE2b-256 ca0af98f82cc9f223edd9c32fde4ea128b5845c69ee32ff27ecf8729329d91e2

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