Skip to main content

TileDB Cloud platform Python client

Project description

TileDB-Cloud-Py

This repository contains the Python client for the TileDB Cloud Service.

Quick Links

Installation

See Installation Instructions

Quickstart

See Quickstart section of the docs.

API Documentation

See https://tiledb-inc.github.io/TileDB-Cloud-Py/

Contribute to documentation

Documentation uses Quarto style documentation.

Testing

  • Selection:
    • All tests: pytest
    • All tests with verbosity: pytest -vs
    • Tests with taskgraphs in their names: pytest -vsk taskgraphs
  • Credentials:
    • These tests run on TileDB Cloud using your current environment variable TILEDB_REST_TOKEN -- you will need a valid API token for the tests to pass
    • For continuous integration, the token is configured for the unittest user and all tests should pass
    • For interactive use, if your TILEDB_REST_TOKEN points to your own account, most tests will run, except for those that explicitly check against contents of the unittest account which are skipped

Ingestion testing

This package contains modules and functions that will be run in the TileDB Cloud as UDFs. Local ingestor changes can be tested in the cloud by using a feature of cloudpickle. Below is a runnable example. TILEDB_NAMESPACE is your TileDB namespace ("TileDB-Inc", for example). TILEDB_ACCESS_CREDENTIAL_NAME is the name of the stored credentials for accessing AWS_BUCKET. IMAGE_FILE_KEY is the key for an object in that bucket and OUTPUT_GROUP_KEY is the key to be used for the group that the ingest() UDF will create in AWS_BUCKET.

from tiledb.cloud._vendor import cloudpickle

import tiledb.cloud.bioimg

cloudpickle.register_pickle_by_value(tiledb.cloud.bioimg)

tiledb.cloud.bioimg.ingest(
    source="s3://AWS_BUCKET/IMAGE_FILE_KEY",
    output="s3://AWS_BUCKET/OUTPUT_GROUP_KEY",
    config=None,
    namespace="TILEDB_NAMESPACE",
    acn="TILEDB_ACCESS_CREDENTIAL_NAME",
    ingest_resources={"cpu": "8", "memory": "32Gi"},
)

In this case tiledb.cloud.bioimg.ingest() uses cloudpickle to send a local function to TileDB Cloud, and tdbcp.register_pickle_by_value(tiledb.cloud.bioimg) directs cloudpickle to bring the currently imported tiledb.cloud.bioimg module along with the function. Your local version of the module will be used instead of the version currently deployed in TileDB Cloud.

Note: your local changes to the Cloud-Py package will need to be installed in order for cloudpickle to serialize them, as cloudpickle needs to find them at runtime.

Releasing

Releasing is entirely automated. Releases made on GitHub using tags that start with "v", like "v0.12.28", trigger sdist and wheel builds and upload of those distributions to the Python Package Index.

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 Distribution

tiledb_cloud-0.14.4.tar.gz (462.9 kB view details)

Uploaded Source

Built Distribution

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

tiledb_cloud-0.14.4-py3-none-any.whl (862.7 kB view details)

Uploaded Python 3

File details

Details for the file tiledb_cloud-0.14.4.tar.gz.

File metadata

  • Download URL: tiledb_cloud-0.14.4.tar.gz
  • Upload date:
  • Size: 462.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tiledb_cloud-0.14.4.tar.gz
Algorithm Hash digest
SHA256 6cf6af97bc7850ef293099f307d4212b22d96e7b5c1d6c74ee4a6e51f8e45e73
MD5 98c69c833178f0b7c8b6154207d2e6e1
BLAKE2b-256 b798b1e63a38c02de5bec7d99028904a3e5bb9e98ecb00bab4e61cb92a209c62

See more details on using hashes here.

File details

Details for the file tiledb_cloud-0.14.4-py3-none-any.whl.

File metadata

  • Download URL: tiledb_cloud-0.14.4-py3-none-any.whl
  • Upload date:
  • Size: 862.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tiledb_cloud-0.14.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00f7433eb1b6b12b62eeb7630021456db9ec05735a2074735fe68be09891d47b
MD5 5b4baa6f6e180a09579c78cde34f7a03
BLAKE2b-256 da386c2da0f5513238aa7cb99a5aa5965ecd90ccc66301174eacfe06deef43ee

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