eetc-data-client-2.0.0
توضیحات
EETC Data Hub Client Library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | eetc-data-client-2.0.0 |
| نام | eetc-data-client |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['East Empire Trading Company <eastempiretradingcompany2019@gmail.com>, Stefan Delic <einfach.jung1@gmail.com>, Milos Dovedan <dovedanmilosh@gmail.com>'] |
| نویسنده | - |
| ایمیل نویسنده | East Empire Trading Company <eastempiretradingcompany2019@gmail.com>, Stefan Delic <einfach.jung1@gmail.com>, Milos Dovedan <dovedanmilosh@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/eetc-data-client/ |
| مجوز | Copyright (c) 2018 The Python Packaging Authority Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
# EETC Data Client
Python client for consuming the [EETC Data Hub REST API](https://eetc.readme.io/reference/price-data).
Used for retrieving data managed by [EETC Data Hub](https://github.com/east-empire-trading-company/eetc_data_hub).
### Usage examples
```python
"""
Getting historical daily price data for AAPL.
"""
from eetc_data_client.client import EETCDataClient
client = EETCDataClient(api_key="getYourApiKeyFromUsOnRequest")
aapl_price_data_df = client.get_price_data("AAPL")
print(aapl_price_data_df.head())
```
```python
"""
Getting fundamentals for AAPL.
"""
from eetc_data_client.client import EETCDataClient
client = EETCDataClient(api_key="getYourApiKeyFromUsOnRequest")
aapl_fundamentals_data_df = client.get_fundamentals_data("AAPL", frequency="Quarterly")
print(aapl_fundamentals_data_df.head())
```
```python
"""
Getting (macroeconomic) indicator data for Chinese exports.
"""
from eetc_data_client.client import EETCDataClient
client = EETCDataClient(api_key="getYourApiKeyFromUsOnRequest")
china_exports_data_df = client.get_macroeconomic_data("Exports in USD - China")
print(china_exports_data_df.head())
```
### Available (macroeconomic) indicators
To get the available (macroeconomic) indicators use the `get_indicators()` method.
"""
Getting historical macroeconomic data for Chinese exports.
"""
```python
from eetc_data_client.client import EETCDataClient
client = EETCDataClient(api_key="getYourApiKeyFromUsOnRequest")
indicators = client.get_indicators()
print(indicators)
```
## Development
### System requirements
To run the project locally and work on it, you need the following:
- Python 3.8+
### Project setup
```commandline
sudo apt-get install build-essential
make update_and_install_python_requirements
```
### Adding a new Python package
1. Add the package name to `requirements.in`
2. Run:
```commandline
make update_and_install_python_requirements
```
### Publishing new package versions to PyPi
1. Update `[build_system]` section in `pyproject.toml` in case new dependencies are added or existing dependency versions were updated.
2. Update `version` field in `[project]` section in `pyproject.toml` whenever there is a new change to the project.
3. Publish package on PyPi Test, run command:
```commandline
make publish_package_on_pypi_test
```
4. If everything is ok on PyPi Test, publish on "real" PyPi using the command:
```commandline
make publish_package_on_pypi
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl eetc-data-client-2.0.0:
pip install eetc-data-client-2.0.0.whl
نصب پکیج tar.gz eetc-data-client-2.0.0:
pip install eetc-data-client-2.0.0.tar.gz