pymetrix-psets¶
A plugin: a separate package
pymetrix-psets is a first-party plugin, installed on its own (not yet on PyPI: from a clone of the repository):
Read PSETS series into pymetrix, with their metadata, vintages, provenance and known publisher issues.
The names pymetrix_psets exports (its __all__), with their full documentation. Import them from the plugin: from pymetrix_psets import .... The plugin's README says more.
Public names¶
psets_vintages
¶
psets_vintages(source: str, origins: Iterable[Any]) -> dict[Any, Dataset]
{origin: the data as released by the end of that period}, for backtest(..., vintages=...):
vintages = psets_vintages("psets://forecasts/NGDP_R.Q", pd.period_range("2015Q1", "2019Q4", freq="Q")) result = backtest(fit, data, ("2015Q1", "2019Q4"), horizon=4, vintages=vintages)
PsetsCatalogue
¶
What the proposed Data → Get data dialog asks a data plugin (docs/design/plugins.md, "Proposal for
decision 1"). PSETS browses by facets, so children is not offered. Each method is one PSETS call.
address
¶
The address that reads these series: what the dialog's Read records.
PsetsIssueWarning
¶
Bases: UserWarning
A publisher problem PSETS knows about, in a series just read.
read_psets
¶
read_psets(source: str, vintage: str | None = None, **options: Any) -> Dataset
psets://<alias>/<code>,<code>?start=&end=&freq=&agg=: the series, as one dataset (one frequency).
vintage (from Dataset.read(..., vintage=...)) is PSETS's as_of: the data as the publishers had
released them by that date. Options in the address and keywords both reach db.frame.
Plugin plumbing¶
What pymetrix's plugin loader reads (PLUGIN, register) and the plugin's version.
PLUGIN
module-attribute
¶
PLUGIN = PluginInfo(name='pymetrix-psets', version=__version__, api='1.13', requires={'psets': ''}, license='BSD-3-Clause', maintainer='Geoffrey Heenan', description='Series from a PSETS database: metadata, vintages, provenance and known publisher issues', install='pip install "PSETS @ git+https://github.com/GeoffHeenan/Econ_timeseries_DB#subdirectory=python"')
register
¶
Called through the pymetrix.io entry point: psets:// addresses read through this plugin.