Skip to main content

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


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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

datalogue-0.0.29-py3-none-any.whl (26.7 kB view hashes)

Uploaded Python 3

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