Python library for the ALTADATA API
Project description
ALTADATA Python library provides convenient access to the ALTADATA API from applications written in the Python language. With this Python library, developers can build applications around the ALTADATA API without having to deal with accessing and managing requests and responses.
Installation
pip install altadata
Retrieving Data
You can get the entire data with the code below. This function returns List of dict by default.
client = AltaDataAPI(YOUR_API_KEY)
data = client.get_data(PRODUCT_CODE).load()
We currently have pandas dataframe support in the library. Users can optionally retrieve their datasets as pandas dataframe. If dataframe_functionality parameter is True function returns pandas dataframe.
Note: This functionality requires pandas (v0.23 or above) to work.
client = AltaDataAPI(api_key=YOUR_API_KEY, dataframe_functionality=True)
data = client.get_data(PRODUCT_CODE).load()
You can get data with using various conditions.
client = AltaDataAPI(YOUR_API_KEY)
data = client.get_data(PRODUCT_CODE)\
.equal(condition_column=COLUMN_NAME, condition_value=CONDITION_VALUE)\
.sort(order_column=COLUMN_NAME, order_method="desc")\
.load()
Documentation
Read the documentation online at altadata-python.rtfd.io
Optionally, build documentation from the docs/ folder
pip install sphinx
cd docs
make html
License
altadata-python is under MIT license. See the LICENSE file for more info.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file altadata-0.2.0.tar.gz
.
File metadata
- Download URL: altadata-0.2.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b886f5193c9c2ca25a3810c98bc6a3897152cd6e9350693841846f0bc66c366 |
|
MD5 | c6fc671ba32a5bde5cbba673f1e91412 |
|
BLAKE2b-256 | 99492922a0c0c45f92d86c33fb7a31c96449f0c6c94d61839d7f20b27c98745c |
File details
Details for the file altadata-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: altadata-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf8aa06fd6023e1fa2339b8a94a5fc0fc5a4938f0e50a7a0db910027d1594e15 |
|
MD5 | 58fdbb50a859b1a7023fdb84ff831178 |
|
BLAKE2b-256 | ac91af0baab0a6a81ec87b36fa94ef06df90d2ecb465106510bcd0e580deb47f |