<jupyter_start><jupyter_text>Read from the Arable APIhttps://developer.arable.com<jupyter_code>%load_ext autoreload
%autoreload 2

import numpy as np
import pandas as pd
import geopandas as gpd
from datetime import date, datetime, timedelta
import requests
import os

%matplotlib inline
import matplotlib
import matplotlib.pyplot as plt
font = {'size'   : 12}
matplotlib.rc('font', **font)

pd.plotting.register_matplotlib_converters()
from lib.client_v2 import ArableClient

import yaml
with open('../yaml/config2.yml') as config_data:
    c = yaml.load(config_data, Loader=yaml.SafeLoader)

from lib.parcel_utilities import *
email = c['arable']['email']
password = c['arable']['password']
a = ArableClient()
a.connect(email=email, password=password)
# Your Tenants
a.tenants
# Forming a request
baseurl = a._base_url
devices_endpoint = '/devices'
locations_endpoint = '/locations'

headers = {
    'Authorization': 'Bearer {}'.format(a.token)
}

params = {
    'limit': 24
}
# Executing a request
r = requests.get(baseurl+devices_endpoint, params=params, headers=headers)

if r.status_code == 200:
    devices = r.json()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11882046834345186, 'fraction_numerical': 0.008673026886383347, 'mean_word_length': 5.632183908045977, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '518141', 'license': 'Apache-2.0', 'n_tokens_mistral': 405, 'n_tokens_neox': 389, 'n_words': 99, 'path': 'materials/code/sensors/Notebook_3.ipynb', 'repo_name': 'agroimpacts/nmeo', 'size': '1153'}