altadata-0.2.0
توضیحات
Python library for the ALTADATA API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | altadata-0.2.0 |
| نام | altadata |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ALTADATA |
| ایمیل نویسنده | contact@altadata.io |
| آدرس صفحه اصلی | https://github.com/altabering/altadata-python |
| آدرس اینترنتی | https://pypi.org/project/altadata/ |
| مجوز | MIT |
--------------------------
ALTADATA Python Client
--------------------------
.. image:: https://github.com/altabering/altadata-python/workflows/build/badge.svg
:target: https://github.com/altabering/altadata-python/actions
.. image:: https://badge.fury.io/py/altadata.svg
:target: https://badge.fury.io/py/altadata
|
`ALTADATA <https://www.altadata.io>`_ 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.
.. contents:: **Overview**
:depth: 2
Installation
==================
.. code-block::
pip install altadata
Retrieving Data
==================
You can get the entire data with the code below. This function returns List of dict by default.
.. code:: python
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 <https://github.com/pandas-dev/pandas>`_ (v0.23 or above) to work.
.. code:: python
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.
.. code:: python
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 <https://altadata-python.rtfd.io>`_
Optionally, build documentation from the ``docs/`` folder
.. code-block::
pip install sphinx
cd docs
make html
License
==================
altadata-python is under MIT license. See the `LICENSE <LICENSE>`_ file for more info.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.7.0 | requests |
| >=0.25.3 | pandas |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >= 3.5 | Python |
نحوه نصب
نصب پکیج whl altadata-0.2.0:
pip install altadata-0.2.0.whl
نصب پکیج tar.gz altadata-0.2.0:
pip install altadata-0.2.0.tar.gz