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.toml
in case new dependencies are added or existing dependency versions were updated. - Update
version
field in[project]
section inpyproject.toml
whenever 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
eetc_data_client-2.1.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for eetc_data_client-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f4f1fc47fb1b57d572a029a8d4d8cb63dec54d7409af1fb7a059227121a225 |
|
MD5 | 4786f0387078eca4530028d2a668558d |
|
BLAKE2b-256 | 38fd9b48e1284602c3adb946f6457b0ba94b1e4a4c56647060584c0dc2ad3442 |