Skip to main content

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

Project description

Tabsdata

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)
  • OSX (Apple silicon/x86 - latest)
  • Ubuntu, Debian & RedHat - (x86/ARM - latest)
pip install tabsdata

This version (0.9.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 --collection 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-0.9.1-py312-none-win_amd64.whl (27.9 MB view details)

Uploaded Python 3.12Windows x86-64

tabsdata-0.9.1-py312-none-manylinux1_x86_64.whl (42.6 MB view details)

Uploaded Python 3.12

tabsdata-0.9.1-py312-none-macosx_11_0_arm64.whl (26.3 MB view details)

Uploaded Python 3.12macOS 11.0+ ARM64

tabsdata-0.9.1-py312-none-macosx_10_15_x86_64.whl (28.1 MB view details)

Uploaded Python 3.12macOS 10.15+ x86-64

File details

Details for the file tabsdata-0.9.1-py312-none-win_amd64.whl.

File metadata

  • Download URL: tabsdata-0.9.1-py312-none-win_amd64.whl
  • Upload date:
  • Size: 27.9 MB
  • Tags: Python 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for tabsdata-0.9.1-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 dd6a55628cf7b6d1b57fe267f4858c96c75bbe11f691e96bcc8a9b8eb81109ba
MD5 b53cd7ab6710cc9dfaa02b9ab623ba06
BLAKE2b-256 8d964dc0c9e73a28fe6d91a7a073dcde7f47df1b481a74d2169bf56da8c6c210

See more details on using hashes here.

File details

Details for the file tabsdata-0.9.1-py312-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for tabsdata-0.9.1-py312-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 fe446900822a0689942360d49aa472ecfb703f945224d8768e28ad5bd7469fa7
MD5 a846ca6a4fea23e9c51dd244fe813662
BLAKE2b-256 b16464233ada5e8a32bbc88138090f28e0b15fdb6980f07bf993344ee9740450

See more details on using hashes here.

File details

Details for the file tabsdata-0.9.1-py312-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for tabsdata-0.9.1-py312-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 60cb3a029d7f19ab2e7aab1f3caded6b57618aa30bc11b28a68f548f5f341422
MD5 fdcd2a677c8a4b8fa1c91b2f6bf820d1
BLAKE2b-256 486df2a3500d6c3098ded4f6c603c03d9c5dec74eeaf6626237db79b7e21fa02

See more details on using hashes here.

File details

Details for the file tabsdata-0.9.1-py312-none-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for tabsdata-0.9.1-py312-none-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 75a2deb570bf8c243464416e5066264ca98b7f50b6f959a5f0bd2db9bb4582ca
MD5 92733ec84af1c65ed73b53ca0a833e1c
BLAKE2b-256 dc75e1ce75a745d5f168d64dd72783e8f91695305156759bd9c1c666d3ea0892

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