Skip to main content

CLI to the TileDB array storage manager

Project description

TileDB-CLI

TileDB-CLI is a hierarchical command-line interface to the TileDB Storage Engine.

Installation

TileDB-CLI can be installed using pip with:

pip install tiledb-cli

For development mode, in the top level directory run:

pip install .[dev]

This will create tiledb (in /usr/local/bin, or other paths specific to venv or conda if you are using those), which you can run.

Commands

All commands begin with tiledb and are grouped into the following subgroups:

  • cloud: Perform TileDB Cloud tasks.
  • convert_from: Convert to and from TileDB arrays and other common file formats.
  • consolidate: Consolidate TileDB array fragments, fragment metadata, or and array metadata.
  • dump: Output information about TileDB arrays.
  • fragments: Perform various tasks on TileDB array fragments.
  • vacuum: Vacuum TileDB array fragments, fragment metadata, or and array metadata that have already been consolidated.

cloud

  • array
    • register: Register an array to the TileDB cloud service.
    • deregister: Deregister an array to the TileDB cloud service. This does not physically delete the array. It will remain in your bucket. All access to the array and could metadata will be removed.
    • share: Share the TileDB array to the user at a given namespace. At least one of the persmission flags must be supplied.
    • unshare: Revokes access to a TileDB array for the user at a given namespace.
  • dump
    • activity: Dump the array activity of an array located at a TileDB uri.
    • arrays: List array properties and their associated values for arrays in a TileDB user account.
    • orgs: List organization properties and their associated values for each organization a TileDB user account is a part of.
    • profile: Output the current logged in namespace's profile information.
    • task: List last task from TileDB cloud.
  • login: Login into TileDB cloud under a given credential using either a token or username. By default, credential is read from the environmental variable TILEDB_REST_TOKEN.
  • retry-task Retry running the task with the given id.

convert_from

  • csv: Convert a csv_file into a TileDB array.

consolidate

  • array-metadata: Consolidate the array metadata in an array.
  • fragment-metadata: Consolidate the fragments in an array.
  • fragments: Consolidate the fragments in an array.

dump

  • array: Output the data of a TileDB array.
  • config: Output TileDB's default configuration parameters and values.
  • fragments: Output the fragment information of a TileDB array.
  • mbrs: Output the minimum bounding rectangle for a sparse TileDB array.
  • metadata: Output the metadata of a TileDB array.
  • nonempty-domain`: Output the non-empty domain of a TileDB array.
  • schema: Output the schema of a TileDB array.
  • versions: Output the version information for the embedded library and Python package.

fragments

  • copy: Copy a range of fragments from an already existing array to another array.
  • delete: Delete a range of fragments from an array.

vacuum

  • array-metadata: Vacuum the already consolidated array metadata in an array.
  • fragment-metadata: Vacuum the already consolidated fragments in an array.
  • fragments: Vacuum the already consolidated fragments in an array.

Basic Usage

Create an array from a CSV file.

> cat example.csv
a,b
1,dog
2,cat
8,bird
20,elephant
> tiledb convert-from csv example.csv example.tdb

Output the array's schema.

> tiledb dump schema example.tdb
ArraySchema(
  domain=Domain(*[
    Dim(name='__tiledb_rows', domain=(0, 3), tile='3', dtype='uint64'),
  ]),
  attrs=[
    Attr(name='a', dtype='int64', var=False, nullable=False),
    Attr(name='b', dtype='<U0', var=True, nullable=False),
  ],
  cell_order='row-major',
  tile_order='row-major',
  capacity=10000,
  sparse=False,
)

Output data from the array.

> tiledb dump array example.tdb 0:4
OrderedDict([('__tiledb_rows', array([0, 1, 2, 3], dtype=uint64)),
             ('a', array([ 1,  2,  8, 20])),
             ('b', array(['dog', 'cat', 'bird', 'elephant'], dtype=object))])

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 Distribution

tiledb_cli-0.0.5-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file tiledb_cli-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: tiledb_cli-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for tiledb_cli-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b6219241e6bfd670aa5dd5a0574d1ffbb1b6ccc5d5e02305897152b4675a99ec
MD5 8234f5af22de718923d70bf7d2bbc60f
BLAKE2b-256 9ee8120cb087406aeb0bdd3a3c27a57588d928e38f8988d3e112bb858f64262a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page