Skip to main content

Exposes a common API in Python for the Macrobobond Web and Client Data APIs

Project description

Macrobond logo

Macrobond Data API for Python

This software is in beta !

PyPI PyPI License: MIT Code style: black

The Macrobond Data API for Python is used to access the world’s most extensive macroeconomic, aggregate financial and sector database provided by Macrobond. Exposes a common API in Python for the Macrobobond Web and Client data APIs

You have to be a licensed user and have a Data+ or data feed user account in order to use the API.

API reference

Basic usage

# web
from macrobond_data_api.web import WebClient

with WebClient('client id', 'client secret') as api:
    series = api.series.get_one_series('usgdp')

# com
from macrobond_data_api.com import ComClient

with ComClient() as api:
    series = api.series.get_one_series('usgdp')

Features

The Macrobond Data API for Python uses either the Macrobond Web REST API or the Macrobond Client data API to obtain time series with values and metadata. The API consists of a set of functions in common between the underlying APIs as well as specialized functions unique to each implementation.

Installing macrobond-data-api and Supported Versions

Macrobond Data API for Python is available on PyPI:

python -m pip install macrobond-data-api

Macrobond Data API for Python officially supports Python 3.6+.

Using of system keyring

When using WebClient it is recommended to use the system keyring. This can be done easily by running the include script using this command:

python -c "from macrobond_data_api.util import *; save_credential_to_keyring()"

Supported keyrings

Contributing

We welcome community pull requests for bug fixes, enhancements, and documentation.

Getting support

Support options

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

macrobond_data_api-0.0.0-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

Details for the file macrobond_data_api-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for macrobond_data_api-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9953784b56476435c9a56cf22e23afdbcd823acc9b78a2f9d7a356ebe628383
MD5 ebed481644c6f74c7b6d62fc6bdd3adf
BLAKE2b-256 fc0e17a5e28c16077af5a7f0c164f8145ffd7855fbd2d1b36bd73a85ee6d090d

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