Skip to main content

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

  1. Add the package name to requirements.in
  2. Run:
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:
make publish_package_on_pypi_test
  1. If everything is ok on PyPi Test, publish on "real" PyPi using the command:
make publish_package_on_pypi

Metadata

Release files for eetc-data-client 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eetc-data-client 2.3.0
File Size Uploaded
eetc_data_client-2.3.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eetc-data-client 2.3.0
File Interpreter ABI Platform
eetc_data_client-2.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / eetc_data_client-2.3.0.tar.gz

Download URL eetc_data_client-2.3.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
53e77f96b2356c0e62709e90bf9233f7cea86539a74a01997a389b47b417f931
BLAKE2b-256 checksum
How to use checksums
90914048d26faeb7f6658c26a1010fd28e37dc3e2c87fabf8220f1d761fc42f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / eetc_data_client-2.3.0-py3-none-any.whl

Download URL eetc_data_client-2.3.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
826d64497695029888a8aa5b7445753279922213f33cdcdd1e561f0653882314
BLAKE2b-256 checksum
How to use checksums
418b5b53492ded468b79405543bfa0442ce2bab36a8e1a5f4157385cf1112bc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

2.3.0 This release

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page