Python wrapper for Lever Open API
Project description
leveropen
Lever Open API Python Wrapper
This project enables access to Lever Open data using Python.
Installation
pip install leveropen
Usage Example
Note: This example uses the additional python package matplotlib
import matplotlib.pyplot as plt
from tqdm import tqdm
from leveropen import Lever
lever = Lever(access_token="your-unique-access-token")
dataset = lever.get_datasets_by_collection("Gross Domestic Product (GDP)")[0]
fig, ax = plt.subplots()
for series in tqdm(dataset.get_series(), desc="Parsing series objects", unit="SeriesObjects"):
data = series.get_data()["Value"]
data.plot(
title=f"Collection: {dataset.collection}\nTopic: {dataset.topic}",
ax=ax,
label=series.name,
)
ax.legend()
plt.show()
Console:
Parsing datasets: 100%|██████████| 1/1 [00:00<00:00, 321.95datasets/s]
✔ Loading datasets successful
✔ Loading series data successful
Parsing series: 100%|██████████| 5/5 [00:00<00:00, 19765.81series/s]
Parsing series objects: 100%|██████████| 5/5 [00:05<00:00, 1.16s/SeriesObjects]
Links
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
leveropen-0.0.2.tar.gz
(9.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
leveropen-0.0.2-py3-none-any.whl
(11.7 kB
view details)
File details
Details for the file leveropen-0.0.2.tar.gz.
File metadata
- Download URL: leveropen-0.0.2.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47281aaf0154580d6fe1d44caab84cff4d60155c895452fdf7c0a7fb49b21573
|
|
| MD5 |
240cbd22c7d05946d9456d1c7b315f4a
|
|
| BLAKE2b-256 |
0aaaab856586ae0d73b624a042bb7b26adc87ef2e396e1d23f4c6e45357dcf43
|
File details
Details for the file leveropen-0.0.2-py3-none-any.whl.
File metadata
- Download URL: leveropen-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c1f1dd290e8b0ae5322e566b10367b95a9559c7fbdf0884d1ca7ca5f363435d
|
|
| MD5 |
7a01143f65683d247304aa9521b0c7dd
|
|
| BLAKE2b-256 |
e34f02160e08a294488ed6be35a69e6a9f44eb425c6a386c6c698a6179e9948e
|