Skip to main content

Python client for Dremio. See https://dremio.com

Project description

Dremio client

https://img.shields.io/pypi/v/dremio_client.svg https://img.shields.io/travis/rymurr/dremio_client.svg Documentation Status Updates Codacy Codecov

The un-official python client for Dremio’s REST API. This enables both administrators and data scientists to get the most out of Dremio in Python

Features

  • Cross platform support

  • All Pythons between 2.7 - 3.7 supported

  • Full support for Dremio’s REST API

  • Optional Support for Dremio’s ODBC or experimental Arrow Flight capabilities

  • Rich config file support via confuse yaml config library. Simple to create a client (config stored in a yaml file)

    from dremio_client import init
    client = init() # initialise connectivity to Dremio via config file
    catalog = client.data # fetch catalog
    vds = catalog.space.vds.get() # fetch a specific dataset
    df = vds.query() # query the first 1000 rows of the dataset and return as a DataFrame
    pds = catalog.source.pds.get() # fetch a physical dataset
    pds.metadata_refresh() # refresh metadata on that dataset
  • CLI interface for integration with scripts

    $ dremio_client query --sql 'select * from sys.options'
    {'results':results}
    $ dremio_client refresh-metadata --table 'my.vds.name'
    {'result':'ok'}
  • Catalog autocompletion in Jupyter Notebooks

https://raw.github.com/rymurr/dremio_client/master/docs/images/autocomplete.gif

Status

This is still alpha software and is relatively incomplete. Contributions in the form of Github Issues or Pull requests are welcome. See CONTRIBUTING

TODO

  • see issues

History

0.1.0 (2019-07-04)

  • First code, unreleased.

0.2.4 (2019-08-13)

  • Alpha quality release with partial implementation of features. First PyPI release.

0.3.0 (2019-08-14)

  • Beta quality release for GET based endpoints

0.5.0 (2019-10-30)

  • Most endpoint supported

  • flight support with tls & auth

  • minor bugfixes

0.6.3 (2020-01-29)

  • All endpoints supported

  • lots of bugfixes

  • utilities for building spaces/folders vds

  • removed recordclass library in favor of attrs

0.8.4 (2020-01-29)

  • history re-written

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

dremio_client-0.8.4.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

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

dremio_client-0.8.4-py2.py3-none-any.whl (44.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dremio_client-0.8.4.tar.gz.

File metadata

  • Download URL: dremio_client-0.8.4.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1

File hashes

Hashes for dremio_client-0.8.4.tar.gz
Algorithm Hash digest
SHA256 2c3a788f5612b722a10e169e29543d0ac5d0452d2ec8d83d0d52f6f01ef6ccb1
MD5 336e68460fe610cc48c6b66008075c1b
BLAKE2b-256 d6809d511b77c396d5a458454b9bf73da09b11a3879b1d0ca663898d76f1f89a

See more details on using hashes here.

File details

Details for the file dremio_client-0.8.4-py2.py3-none-any.whl.

File metadata

  • Download URL: dremio_client-0.8.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.1

File hashes

Hashes for dremio_client-0.8.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da8a0f61232917fcb65353275f98c5d3df37f928392c61693939785f9ab54a41
MD5 c83e4f1ac721b32e0c68d147c920d0be
BLAKE2b-256 6863a71c8862ef027a9d1252a0b71935fedef7eb136c943d3ca5a632ddd98a5d

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