Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

SDK to interact with the datalogue platform

Project description

dtl-python-sdk

The Datalogue python SDK is an SDK to be able to interact with the platform from code.

Use in a python project

Requirements You need to have artifactory set up with pip to be able to use this library

Install with Pip

pip install datalogue

Use in requirements.txt file

datalogue==0.0.1

Documentation

  • Authentication
  • Datasets
  • Access points
  • Stream
  • Jobs

Example

from datalogue import DtlClient

dtl = Dtl(
    username="user",
    password="password",
    uri="https://datalogue-platform-address.com"
)

dataset_search_query = "I want a dataset that is called x"
datasets = dtl.datasets.search(dataset_search_query)

if len(datasets) > 0:
    head_dataset = datasets[0]

    print(head_dataset.description)
    # "This is dataset x, I contain x y and z and I am already all cleaned up"
    print(head_dataset.id)
    # 

    if len(head_dataset.access_points) > 0
        access_point = head_dataset.access_points[0]


    else:
        print("looks like the selected dataset is empty")

else:
    print("No dataset that correspond to the query" + dataset_search_query)

Develop

Run tests

$ pytest --cov=datalogue tests/

Project details


Download files

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

Files for datalogue, version 0.0.26
Filename, size File type Python version Upload date Hashes
Filename, size datalogue-0.0.26-py3-none-any.whl (26.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page