Skip to main content

Metapyle

PyPI Python License: MIT

Early-stage research framework — Not for production use.

A unified interface for querying financial time-series data from multiple sources.

Overview

Financial data lives in many places—Bloomberg terminals, internal APIs, CSV exports—each with its own ticker syntax, authentication, and quirks. Metapyle provides a YAML-based catalog that maps human-readable names to source-specific details, giving you a single client.get() interface regardless of where the data comes from.

Currently supports Bloomberg (via xbbg), Macrobond (via macrobond-data-api), GS Marquee (via gs-quant), and local files (CSV/Parquet).

Installation

uv add metapyle

Or with pip:

pip install metapyle

Note: Bloomberg requires a Bloomberg Terminal. GS Quant requires GS Marquee access. Macrobond requires the desktop app or Web API credentials.

Quick Start

1. Create a catalog file (catalog.yaml):

# Bloomberg
- my_name: sp500_close
  source: bloomberg
  symbol: SPX Index
  field: PX_LAST

# Macrobond
- my_name: us_gdp
  source: macrobond
  symbol: usnaac0169

# GS Quant
- my_name: eurusd_vol
  source: gsquant
  symbol: EURUSD
  field: FXIMPLIEDVOL::impliedVolatility
  params:
    tenor: 1m
    deltaStrike: DN

# Local file
- my_name: gdp_forecast
  source: localfile
  symbol: GDP_FORECAST    # column name in the file
  path: /data/macro.csv   # file path

2. Query data:

from metapyle import Client

with Client(catalog="catalog.yaml") as client:
    # end defaults to today
    df = client.get(["sp500_close", "us_gdp"], start="2024-01-01")

Documentation

See the User Guide for complete documentation, including:

  • Catalog configuration
  • Creating catalogs from CSV
  • Frequency alignment
  • Caching
  • Macrobond unified series (server-side alignment)
  • Available data sources
  • Error handling

For low-level API examples showing what metapyle abstracts, see Raw API Examples.

License

MIT License - see LICENSE for details.

Metadata

Release files for metapyle 0.1.6

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

Source distribution (sdist)

Source distribution for metapyle 0.1.6
File Size Uploaded
metapyle-0.1.6.tar.gz 54.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metapyle 0.1.6
File Interpreter ABI Platform
metapyle-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 86.2 kB

Release files / metapyle-0.1.6.tar.gz

Download URL metapyle-0.1.6.tar.gz
Size 54.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77d29fa4e4faf99f8e73269565ec7e01ae1b4dc989da738edb86ca4533ff87e3
BLAKE2b-256 checksum
How to use checksums
f6d1e6b42bee1d269c73e19cedcae544c314f68adb49a6d26652776b4d0105b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / metapyle-0.1.6-py3-none-any.whl

Download URL metapyle-0.1.6-py3-none-any.whl
Size 31.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50a23576bc66f972de0ffc8062deef1caf1c60d4722ebb780578f9a6a170763a
BLAKE2b-256 checksum
How to use checksums
d0aff8f40b75eb206270efa6cdf09483cd2590feb8a1cc9d0d45cf87811fb3a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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