Skip to main content

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

  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

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.3.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eetc_data_client-2.3.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for eetc_data_client-2.3.0.tar.gz
Algorithm Hash digest
SHA256 53e77f96b2356c0e62709e90bf9233f7cea86539a74a01997a389b47b417f931
MD5 bf11cbbcecea455da91439f70990f13a
BLAKE2b-256 90914048d26faeb7f6658c26a1010fd28e37dc3e2c87fabf8220f1d761fc42f2

See more details on using hashes here.

File details

Details for the file eetc_data_client-2.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for eetc_data_client-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 826d64497695029888a8aa5b7445753279922213f33cdcdd1e561f0653882314
MD5 595bfb80147dd6754e83c00f295c3702
BLAKE2b-256 418b5b53492ded468b79405543bfa0442ce2bab36a8e1a5f4157385cf1112bc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page