EETC Data Hub Client Library
Project description
EETC Data Client
Python client for consuming the EETC Data Hub REST API. Used for retrieving data managed by EETC Data Hub.
Usage examples
"""
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())
"""
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())
"""
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.
"""
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
sudo apt-get install build-essential
make update_and_install_python_requirements
Adding a new Python package
- Add the package name to
requirements.in - Run:
make update_and_install_python_requirements
Publishing new package versions to PyPi
- Update
[build_system]section inpyproject.tomlin case new dependencies are added or existing dependency versions were updated. - Update
versionfield in[project]section inpyproject.tomlwhenever there is a new change to the project. - Publish package on PyPi Test, run command:
make publish_package_on_pypi_test
- If everything is ok on PyPi Test, publish on "real" PyPi using the command:
make publish_package_on_pypi
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
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
File details
Details for the file eetc_data_client-2.3.0.tar.gz.
File metadata
- Download URL: eetc_data_client-2.3.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53e77f96b2356c0e62709e90bf9233f7cea86539a74a01997a389b47b417f931
|
|
| MD5 |
bf11cbbcecea455da91439f70990f13a
|
|
| BLAKE2b-256 |
90914048d26faeb7f6658c26a1010fd28e37dc3e2c87fabf8220f1d761fc42f2
|
File details
Details for the file eetc_data_client-2.3.0-py3-none-any.whl.
File metadata
- Download URL: eetc_data_client-2.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826d64497695029888a8aa5b7445753279922213f33cdcdd1e561f0653882314
|
|
| MD5 |
595bfb80147dd6754e83c00f295c3702
|
|
| BLAKE2b-256 |
418b5b53492ded468b79405543bfa0442ce2bab36a8e1a5f4157385cf1112bc2
|