A Python SDK for interacting with datasets created on DataDistillr
Project description
DataDistillr Python SDK
This library allows you to programmatically interact with DataDistillr. It is quite simple to programmatically pull data from DataDistillr for use in machine learning.
Methods
get_dataframe(url, auth_token)
: Pulls your data and returns it in a Pandas DataFrame.get_csv_from_api(url, auth_token, filename)
: Pulls your data and returns it in a CSV file.get_json_from_api(url, auth_token, filename)
: Pulls your data and returns it in a JSON file.get_parquet_from_api(url, auth_token, filename)
: Pulls your data and returns it in a parquet file.get_excel_from_api(url, auth_token, filename)
: Pulls your data and returns it in an Excel file.get_dict_from_api(url, auth_token, filename)
: Pulls your data and returns it in a Python dictionary.
Getting your Endpoint URL and Authorization Token
See https://docs.datadistillr.com/ddr/ for complete documentation on obtaining the URL and Auth Token.
Usage
Using the SDK in Python code is quite simple. See the snippet below:
import datadistillr.datadistillr as ddr
url = <Your URL From DataDistillr>
auth_token = <AUTH TOKEN>
dataframe = ddr.datadistillr.get_dataframe(url, auth_token)
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 Distribution
datadistillr-0.1.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for datadistillr-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b7f8e193f60e1c19d3ff4e9821b3b6586d897562a7f70cd96640da836c9cd16 |
|
MD5 | 0d6b19ab9a7813e53f7b9875f6d0e529 |
|
BLAKE2b-256 | 7209e331260ef627712ce0a116b33ae6479263f13a2bb83914efd27513f12f20 |