tcgapi 0.13.0__tar.gz → 0.13.2__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.
- {tcgapi-0.13.0 → tcgapi-0.13.2}/PKG-INFO +4 -4
- {tcgapi-0.13.0 → tcgapi-0.13.2}/README.md +2 -2
- {tcgapi-0.13.0 → tcgapi-0.13.2}/pyproject.toml +2 -2
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/__init__.py +1 -1
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/cards.py +2 -1
- {tcgapi-0.13.0 → tcgapi-0.13.2}/.gitignore +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/LICENSE +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/_transport.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/async_client.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/client.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/errors.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/models.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/__init__.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/_base.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/bulk.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/cardmarket.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/ebay.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/export.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/games.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/identify.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/keys.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/prices.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/search.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/sets.py +0 -0
- {tcgapi-0.13.0 → tcgapi-0.13.2}/tcgapi/resources/usage.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: tcgapi
|
|
3
|
-
Version: 0.13.
|
|
4
|
-
Summary: Official Python SDK for tcgapi.dev — pricing data for Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Lorcana, One Piece, and
|
|
3
|
+
Version: 0.13.2
|
|
4
|
+
Summary: Official Python SDK for tcgapi.dev — pricing data for Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Lorcana, One Piece, and 50+ more trading card games.
|
|
5
5
|
Project-URL: Homepage, https://tcgapi.dev
|
|
6
6
|
Project-URL: Documentation, https://tcgapi.dev/api/
|
|
7
7
|
Project-URL: Source, https://github.com/gordy-ftw/tcgapi-python
|
|
@@ -40,7 +40,7 @@ Description-Content-Type: text/markdown
|
|
|
40
40
|
[](https://pypi.org/project/tcgapi/)
|
|
41
41
|
[](https://opensource.org/licenses/MIT)
|
|
42
42
|
|
|
43
|
-
Official Python SDK for [**tcgapi.dev**](https://tcgapi.dev) — a unified pricing API for **
|
|
43
|
+
Official Python SDK for [**tcgapi.dev**](https://tcgapi.dev) — a unified pricing API for **50+ trading card games**, including:
|
|
44
44
|
|
|
45
45
|
- Pokémon TCG (English + Japanese)
|
|
46
46
|
- Magic: The Gathering
|
|
@@ -261,7 +261,7 @@ daily price guide: `price_trend`, `avg_sell_price`, `low_price` and 1/7/30-day a
|
|
|
261
261
|
`last_updated_at` the guide's date. `cm_series` says which of the product's two series the printing
|
|
262
262
|
reads (`"regular"`, or `"foil"` — reverse holo for Pokemon). Where Cardmarket sells a card's editions as
|
|
263
263
|
one product (Yu-Gi-Oh! 1st Edition + Unlimited) there is one `"All editions"` row with
|
|
264
|
-
`editions_blended=True`.
|
|
264
|
+
`editions_blended=True`. Returns an empty list when Cardmarket has no matching product.
|
|
265
265
|
|
|
266
266
|
```python
|
|
267
267
|
cm = tcg.cards.cardmarket_prices(123456)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://pypi.org/project/tcgapi/)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
Official Python SDK for [**tcgapi.dev**](https://tcgapi.dev) — a unified pricing API for **
|
|
7
|
+
Official Python SDK for [**tcgapi.dev**](https://tcgapi.dev) — a unified pricing API for **50+ trading card games**, including:
|
|
8
8
|
|
|
9
9
|
- Pokémon TCG (English + Japanese)
|
|
10
10
|
- Magic: The Gathering
|
|
@@ -225,7 +225,7 @@ daily price guide: `price_trend`, `avg_sell_price`, `low_price` and 1/7/30-day a
|
|
|
225
225
|
`last_updated_at` the guide's date. `cm_series` says which of the product's two series the printing
|
|
226
226
|
reads (`"regular"`, or `"foil"` — reverse holo for Pokemon). Where Cardmarket sells a card's editions as
|
|
227
227
|
one product (Yu-Gi-Oh! 1st Edition + Unlimited) there is one `"All editions"` row with
|
|
228
|
-
`editions_blended=True`.
|
|
228
|
+
`editions_blended=True`. Returns an empty list when Cardmarket has no matching product.
|
|
229
229
|
|
|
230
230
|
```python
|
|
231
231
|
cm = tcg.cards.cardmarket_prices(123456)
|
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tcgapi"
|
|
7
|
-
version = "0.13.
|
|
8
|
-
description = "Official Python SDK for tcgapi.dev — pricing data for Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Lorcana, One Piece, and
|
|
7
|
+
version = "0.13.2"
|
|
8
|
+
description = "Official Python SDK for tcgapi.dev — pricing data for Pokemon, Magic: The Gathering, Yu-Gi-Oh!, Lorcana, One Piece, and 50+ more trading card games."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
11
11
|
license = { text = "MIT" }
|
|
@@ -61,7 +61,8 @@ class CardsResource:
|
|
|
61
61
|
def cardmarket_prices(self, card_id: int, *, printing: str | None = None) -> Response[list[CardmarketPrice]]:
|
|
62
62
|
# Cardmarket EU prices (EUR) per printing, from Cardmarket's daily price guide. A card whose
|
|
63
63
|
# editions Cardmarket sells as one product has one "All editions" row (editions_blended).
|
|
64
|
-
#
|
|
64
|
+
# An empty list when Cardmarket has no matching product for the card; NotFoundError only
|
|
65
|
+
# for an unknown card id.
|
|
65
66
|
body = self._client._request("GET", f"/cards/{card_id}/prices/cardmarket", {"printing": printing})
|
|
66
67
|
return parse_response(list[CardmarketPrice], body)
|
|
67
68
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|