Global Data Interface is a Python package designed to provide a unified interface to easily query for data from a number of APIs providing international time series data.
Project description
GLOBAL DATA INTERFACE
Global Data Interface is a Python package designed to provide a unified interface to easily query for data from a number of APIs providing international time series data.
README Contents
Installation
Usage
Examples
Design
Global Data Interface
The GlobalDataInterface class is the main interface for the package. It is a singleton class. The GlobalDataInterface contains several sub-clients which each interact with and retrive data from their associated API. A GlobalDataInterface object can be used to interact with each of its internal sub-clients individually to create API specific requests and retrive API specific data.
The GlobalDataInterface has the following methods to retrive data from multiple sub-clients, and return data in a unified structure.
indicators()economies()indicator_groups()economy_groups()data()
Sub-Clients
In its current version GlobalDataInterface has 4 sub-clients for the following organizations and their APIs:
WBClientUNClientWTOClientIMFClient
these all inheriate from the BaseClient abstract class. The BaseClient contains internal utility methods for url construction and making REST HTTP requests. The BaseClient contains an abstract method info() which is implemented in child classes to print details om the specific API being interacted with, including the organization providing it and a link to its documentation.
World Bank Client
The WB client provides methods for retreiving data from the WB V2 API endpoints.
indicators()economies()regions()topics()sources()income_levels()data()
World Trade Organization Client
The WTO Client provides methods for retreving data from the WTO timeseries V1 API endpoints.
indicators()economies()indicator_catagories()regions()economic_groups()product_classifications()products_and_sectors()topics()units()periods()frequencies()data()
International Monetary Fund Client
The IMF Client provides methods for retreving data from the IMF datamapper V1 API endpoints.
indicators()economies()regions()groups()data()
United Nations Client
The UN Client is still to be implemented.
Data-Structures
Project details
Release history Release notifications | RSS feed
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 Global-Data-Interface-0.1.0a1.tar.gz.
File metadata
- Download URL: Global-Data-Interface-0.1.0a1.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce956e5433102f02576a97f13512e887ae0c5825160d73c780731add925690ce
|
|
| MD5 |
3502430f8dfd8aa8c30e95e8cc9ed547
|
|
| BLAKE2b-256 |
935cd4d2d30f339226e321f3e64765ea76476cacbf97c2bce307b4d4d32d73ab
|
File details
Details for the file Global_Data_Interface-0.1.0a1-py3-none-any.whl.
File metadata
- Download URL: Global_Data_Interface-0.1.0a1-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b28a5d0d73f3a5ba9e803be685bcfb396ce3f9e7b8776fdc2c436c4fa767351
|
|
| MD5 |
78e9063a0a2e72c619e04866c39afd73
|
|
| BLAKE2b-256 |
8e3cecbfc713e14be67fb776c9654c13ae64090d478d72cbdf4b3bb57d668686
|