worldbank-commodities 0.5.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ """
2
+ Public package interface for :mod:`worldbank_commodities`.
3
+
4
+ This package wraps the World Bank "Pink Sheet" (Commodity Markets) price data.
5
+ The implementation lives in :mod:`worldbank_commodities.core`; the names most
6
+ callers need are re-exported here so that a simple
7
+ ``from worldbank_commodities import WorldBankCommodities`` is enough to get
8
+ started.
9
+
10
+ Exports:
11
+ Commodity: Immutable metadata (name and unit) for one price series.
12
+ WorldBankCommodities: The main client for discovering, downloading and
13
+ parsing the price workbooks.
14
+ main: Entry point for the ``python-fire`` command-line interface.
15
+ """
16
+
17
+ from __future__ import annotations
18
+
19
+ from worldbank_commodities.core import Commodity, WorldBankCommodities, main
20
+
21
+ __all__ = ["Commodity", "WorldBankCommodities", "main"]
@@ -0,0 +1,15 @@
1
+ """
2
+ Module entry point enabling ``python -m worldbank_commodities``.
3
+
4
+ Running the package as a module simply delegates to
5
+ :func:`worldbank_commodities.core.main`, which launches the Fire-generated
6
+ command-line interface. This mirrors the ``worldbank-commodities`` console
7
+ script installed via the project's entry points.
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ from worldbank_commodities.core import main
13
+
14
+ if __name__ == "__main__":
15
+ main()