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.2.tar.gz
(8.3 kB
view hashes)
Built Distribution
datadistillr-0.1.2-py3.7.egg
(15.0 kB
view hashes)