metergraph-core 0.7.5__tar.gz → 0.7.6__tar.gz
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.
- {metergraph_core-0.7.5/src/metergraph_core.egg-info → metergraph_core-0.7.6}/PKG-INFO +1 -1
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/pyproject.toml +1 -1
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/data/prices.yaml +34 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/data/sources.yaml +10 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/extractors.py +26 -2
- {metergraph_core-0.7.5 → metergraph_core-0.7.6/src/metergraph_core.egg-info}/PKG-INFO +1 -1
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/MANIFEST.in +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/README.md +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/setup.cfg +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/__init__.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/billing.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/catalog.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/catalog_delta.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/data/models.yaml +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/loader.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/models.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/refresh.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/responses.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/retrieval.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core/sources.py +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core.egg-info/SOURCES.txt +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core.egg-info/dependency_links.txt +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core.egg-info/requires.txt +0 -0
- {metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metergraph-core
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more.
|
|
5
5
|
Author: Metergraph
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "metergraph-core"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.6"
|
|
4
4
|
description = "Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "Apache-2.0"
|
|
@@ -3188,6 +3188,40 @@ models:
|
|
|
3188
3188
|
rules:
|
|
3189
3189
|
varies_by_provider: true
|
|
3190
3190
|
source_url: https://openrouter.ai/api/v1/models
|
|
3191
|
+
- canonical_id: moonshotai/kimi-k3.1-pro
|
|
3192
|
+
publisher: moonshotai
|
|
3193
|
+
aliases:
|
|
3194
|
+
- {provider: moonshotai, alias: kimi-k3.1-pro, channel: moonshot-api}
|
|
3195
|
+
- {provider: unknown, alias: kimi-k3.1-pro, channel: moonshot-api}
|
|
3196
|
+
- {provider: litellm, alias: kimi-k3.1-pro, channel: moonshot-api}
|
|
3197
|
+
prices:
|
|
3198
|
+
- channel: moonshot-api
|
|
3199
|
+
region: global
|
|
3200
|
+
effective_from: "2026-10-24"
|
|
3201
|
+
input_per_mtok: 2.00
|
|
3202
|
+
output_per_mtok: 10.00
|
|
3203
|
+
cache_read_per_mtok: 0.20
|
|
3204
|
+
cache_write_5m_per_mtok: 2.00
|
|
3205
|
+
rules: {input_includes_cache_read: true, input_includes_cache_write: true}
|
|
3206
|
+
source_url: https://platform.kimi.ai/
|
|
3207
|
+
|
|
3208
|
+
- canonical_id: moonshotai/kimi-k3.1-pro-highspeed
|
|
3209
|
+
publisher: moonshotai
|
|
3210
|
+
aliases:
|
|
3211
|
+
- {provider: moonshotai, alias: kimi-k3.1-pro-highspeed, channel: moonshot-api}
|
|
3212
|
+
- {provider: unknown, alias: kimi-k3.1-pro-highspeed, channel: moonshot-api}
|
|
3213
|
+
- {provider: litellm, alias: kimi-k3.1-pro-highspeed, channel: moonshot-api}
|
|
3214
|
+
prices:
|
|
3215
|
+
- channel: moonshot-api
|
|
3216
|
+
region: global
|
|
3217
|
+
effective_from: "2026-10-24"
|
|
3218
|
+
input_per_mtok: 4.00
|
|
3219
|
+
output_per_mtok: 20.00
|
|
3220
|
+
cache_read_per_mtok: 0.20
|
|
3221
|
+
cache_write_5m_per_mtok: 4.00
|
|
3222
|
+
rules: {input_includes_cache_read: true, input_includes_cache_write: true}
|
|
3223
|
+
source_url: https://platform.kimi.ai/
|
|
3224
|
+
|
|
3191
3225
|
- canonical_id: moonshotai/kimi-k3
|
|
3192
3226
|
publisher: moonshotai
|
|
3193
3227
|
aliases:
|
|
@@ -152,6 +152,16 @@ sources:
|
|
|
152
152
|
fingerprint: null
|
|
153
153
|
low_risk: {eligible: false, dimensions: []}
|
|
154
154
|
|
|
155
|
+
- id: moonshot-api-pricing
|
|
156
|
+
provider: moonshotai
|
|
157
|
+
channel: moonshot-api
|
|
158
|
+
catalog_channel: true
|
|
159
|
+
url: https://platform.kimi.ai/
|
|
160
|
+
parser: html-price-prose
|
|
161
|
+
dimensions: [input_per_mtok, output_per_mtok, cache_read_per_mtok, cache_write_5m_per_mtok]
|
|
162
|
+
fingerprint: null
|
|
163
|
+
low_risk: {eligible: false, dimensions: []}
|
|
164
|
+
|
|
155
165
|
# Gemini and partner models on Vertex AI. Prices vary by model, context
|
|
156
166
|
# length, tier and processing mode; reviewed discovery only. The URL is the
|
|
157
167
|
# current destination of Google's Vertex AI generative pricing page
|
|
@@ -7,8 +7,8 @@ the parser id a source registry entry names.
|
|
|
7
7
|
Official parsers (OpenAI, Anthropic, Google, DeepSeek, Mistral, xAI and
|
|
8
8
|
Perplexity) turn a page into ``{model name: {field: Decimal}}`` tables keyed
|
|
9
9
|
by the page's own model spelling; :func:`extract` maps those to catalog
|
|
10
|
-
price columns. The
|
|
11
|
-
``gpu-license-prose
|
|
10
|
+
price columns. The generic discovery parsers, ``html-tables``,
|
|
11
|
+
``html-price-prose``, and ``gpu-license-prose`` record normalized evidence for a
|
|
12
12
|
reviewer and never produce applicable price rows; the license parser's
|
|
13
13
|
evidence is GPU or license pricing, never token rates.
|
|
14
14
|
|
|
@@ -886,6 +886,23 @@ def _table_features(content: str) -> Any:
|
|
|
886
886
|
return {"headers": sorted(list(row) for row in headers)}
|
|
887
887
|
|
|
888
888
|
|
|
889
|
+
def _price_prose_evidence(content: str) -> dict[str, Any]:
|
|
890
|
+
text = page_text(content)
|
|
891
|
+
mentions = []
|
|
892
|
+
amounts = []
|
|
893
|
+
for match in _AMOUNT.finditer(text):
|
|
894
|
+
amounts.append(match.group()[1:].replace(",", ""))
|
|
895
|
+
excerpt = text[max(0, match.start() - 300):match.end() + 100].strip(" |")
|
|
896
|
+
if excerpt not in mentions:
|
|
897
|
+
mentions.append(excerpt)
|
|
898
|
+
return {"kind": "price_mentions", "mentions": mentions[:100], "amounts": amounts[:100]}
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
def _price_prose_features(content: str) -> Any:
|
|
902
|
+
text = _AMOUNT.sub("$#", page_text(content))
|
|
903
|
+
return {"has_prices": "$#" in text, "has_model": "model" in text.lower()}
|
|
904
|
+
|
|
905
|
+
|
|
889
906
|
_LICENSE_CANDIDATES = {
|
|
890
907
|
"license_per_gpu_year_usd": re.compile(r"\$([0-9][0-9,]*(?:\.[0-9]+)?) per GPU per year"),
|
|
891
908
|
"gpu_hour_usd": re.compile(r"\$([0-9][0-9,]*(?:\.[0-9]+)?) per GPU per hour"),
|
|
@@ -964,6 +981,12 @@ def redact_evidence(evidence: Mapping[str, Any]) -> dict[str, Any]:
|
|
|
964
981
|
"statement_count": len(evidence.get("statements") or []),
|
|
965
982
|
"candidates": dict(evidence.get("candidates") or {}),
|
|
966
983
|
}
|
|
984
|
+
if kind == "price_mentions":
|
|
985
|
+
return {
|
|
986
|
+
"kind": kind,
|
|
987
|
+
"redacted": True,
|
|
988
|
+
"amounts": list(evidence.get("amounts") or []),
|
|
989
|
+
}
|
|
967
990
|
return {"kind": kind, "redacted": True}
|
|
968
991
|
|
|
969
992
|
|
|
@@ -1006,6 +1029,7 @@ PARSERS: Mapping[str, ParserSpec] = MappingProxyType(
|
|
|
1006
1029
|
# Generic discovery parsers: any page's tables, or GPU and license
|
|
1007
1030
|
# pricing stated in prose. They describe no provider's layout.
|
|
1008
1031
|
"html-tables": ParserSpec(False, _table_features, evidence=_table_evidence),
|
|
1032
|
+
"html-price-prose": ParserSpec(False, _price_prose_features, evidence=_price_prose_evidence),
|
|
1009
1033
|
"gpu-license-prose": ParserSpec(False, _license_features, evidence=_license_evidence),
|
|
1010
1034
|
}
|
|
1011
1035
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metergraph-core
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: Open, effective-dated LLM pricing catalog and deterministic cost calculator for popular models across major providers and gateways, including OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter, Vercel AI Gateway, and more.
|
|
5
5
|
Author: Metergraph
|
|
6
6
|
License-Expression: Apache-2.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metergraph_core-0.7.5 → metergraph_core-0.7.6}/src/metergraph_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|