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.25-py3-none-any.whl
(26.4 kB
view hashes)
Close
Hashes for datalogue-0.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3ecbd6828bea41375415e988a16fb86767e8465ad97a5c6ec9faa231482744f |
|
MD5 | 88425b0457d1526e59802ba316a5a00f |
|
BLAKE2b-256 | 1f74dabf863369b57a2202a0512c19927051b6d61969145846c710b8c28cbc1e |