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.
- worldbank_commodities/__init__.py +21 -0
- worldbank_commodities/__main__.py +15 -0
- worldbank_commodities/core.py +1206 -0
- worldbank_commodities/py.typed +0 -0
- worldbank_commodities-0.5.0.dist-info/METADATA +381 -0
- worldbank_commodities-0.5.0.dist-info/RECORD +9 -0
- worldbank_commodities-0.5.0.dist-info/WHEEL +4 -0
- worldbank_commodities-0.5.0.dist-info/entry_points.txt +2 -0
- worldbank_commodities-0.5.0.dist-info/licenses/LICENSE +21 -0
|
@@ -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()
|