Skip to main content

Daft custom connector (DataSource/DataSink) for VastDB

Project description

vast-daft

Daft custom connector (DataSource / DataSink) for VastDB.

Installation

pip install vast-daft

Or with uv:

uv add vast-daft

Quick Start

Reading from VastDB

import pyarrow as pa
from vast_daft import VastDBConfig, VastDBDataSource

config = VastDBConfig(
    endpoint="http://vastdb:9090",
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    bucket="my-bucket",
    schema="my-schema",
)

schema = pa.schema([
    ("id", pa.string()),
    ("name", pa.string()),
    ("value", pa.float64()),
])

source = VastDBDataSource(config, "my_table", schema)
df = source.read()
df.show()

Writing to VastDB

import daft
from vast_daft import VastDBConfig, VastDBDataSink

config = VastDBConfig(...)
schema = pa.schema([("id", pa.string()), ("value", pa.float64())])

sink = VastDBDataSink(config, "my_table", schema)
daft.from_pydict({"id": ["a", "b"], "value": [1.0, 2.0]}).write_sink(sink).show()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vast_daft-0.1.1.tar.gz (24.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vast_daft-0.1.1-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file vast_daft-0.1.1.tar.gz.

File metadata

  • Download URL: vast_daft-0.1.1.tar.gz
  • Upload date:
  • Size: 24.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vast_daft-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cbd4a74061cbeed870562425a9e15647603a9905bbd87bf0870066899f417295
MD5 896f2952d4f5c17d8c38facad3f561bd
BLAKE2b-256 11c1633b974cd397a97373dc9806c94c3f2915af6a29bb1b470a7dec61ae1f79

See more details on using hashes here.

File details

Details for the file vast_daft-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: vast_daft-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vast_daft-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6f0a94b61b60fcdb3a89c71c447ca431f0d89467fc796de0735e065f5136a5
MD5 07c904a884d70e938713cb5ed299005e
BLAKE2b-256 5bff16e9314695845a2a506c7fe963c8e39113deb0bace9d0581d97e86006c59

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