From 1030542a1c948eeaab3553b32fa016c7cf87a686 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Feb 2021 02:13:39 +0000 Subject: [PATCH 01/11] Bump aiohttp from 3.6.1 to 3.7.4 Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.6.1 to 3.7.4. - [Release notes](https://github.com/aio-libs/aiohttp/releases) - [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst) - [Commits](https://github.com/aio-libs/aiohttp/compare/v3.6.1...v3.7.4) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d16da0f..9966432 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -aiohttp==3.6.1 +aiohttp==3.7.4 asyncio==3.4.3 From 804150946b896b2b665aed2ef7a29c405d7252a5 Mon Sep 17 00:00:00 2001 From: Luke Date: Fri, 16 Jul 2021 15:36:02 +0200 Subject: [PATCH 02/11] add support to class cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the new expansion "forgotten realms", they added a new type of cards: class cards. This is one example [cleric class json response](https://api.scryfall.com/cards/47ce8b7e-d8e1-489a-a69e-99089eeb8739?format=json&pretty=true) and [cleric class scryfall view](https://scryfall.com/card/afr/6/cleric-class). So basically I added a one-liner to support them. Can you please merge the PR? Thanks! 😄 --- scrython/cards/cards_object.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 6451ec2..d1f847b 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -167,6 +167,7 @@ class CardsObject(FoundationObject): 'meld': lambda num: self.scryfallJson['image_uris'], 'leveler': lambda num: self.scryfallJson['image_uris'], 'saga': lambda num: self.scryfallJson['image_uris'], + 'class': lambda num: self.scryfallJson['image_uris'], 'planar': lambda num: self.scryfallJson['image_uris'], 'scheme': lambda num: self.scryfallJson['image_uris'], 'vanguard': lambda num: self.scryfallJson['image_uris'], @@ -758,4 +759,4 @@ class CardsObject(FoundationObject): """ super(CardsObject, self)._checkForKey('image_status') - return self.scryfallJson['image_status'] \ No newline at end of file + return self.scryfallJson['image_status'] From c0873d6a2a0c143aee37b600edb3f917d90338ff Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:02:18 -0400 Subject: [PATCH 03/11] Added 3.9 to build test suite --- .github/workflows/tests.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 113c822..d98094e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,23 +4,22 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: [3.5, 3.6, 3.7, 3.8, 3.9] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pytest - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Test with pytest - run: | - pytest + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test with pytest + run: | + pytest From 5fc3e4f458e463624452c7aa2bc89321202b46c5 Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:02:33 -0400 Subject: [PATCH 04/11] Updated unit test --- unittests/test_cards.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unittests/test_cards.py b/unittests/test_cards.py index 1e685e8..8e25a9d 100644 --- a/unittests/test_cards.py +++ b/unittests/test_cards.py @@ -18,6 +18,8 @@ vanguard = Id(id='87c1234b-3834-4bba-bef2-05707bb1e8e2'); time.sleep(0.1) alt_lang_card = Collector(code='ths', collector_number='75', lang='ja'); time.sleep(0.1) planeswalker = Id(id='4c565076-5db2-47ea-8ee0-4a4fd7bb353d'); time.sleep(0.1) preview_check = Id(id='fb6b12e7-bb93-4eb6-bad1-b256a6ccff4e'); time.sleep(0.1) +class_card = Id(id='37d6343a-c514-4ca6-a415-62d1a473ae20'); time.sleep(0.1) +meld_card = Id(id='5a7a212e-e0b6-4f12-a95c-173cae023f93'); time.sleep(0.1) autocomplete = Autocomplete(q='Thal'); time.sleep(0.1) @@ -158,7 +160,7 @@ class TestCardObjects(unittest.TestCase): self.assertIsInstance(transform.color_indicator(1), list) def test_all_parts(self): - self.assertIsInstance(transform.all_parts(), list) + self.assertIsInstance(meld_card.all_parts(), list) def non_online_card_faces(self): self.assertIsInstance(transform.card_faces(), list) From 4e741772075bdf3cc4427f75b886d054b74b9e01 Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:08:26 -0400 Subject: [PATCH 05/11] Added support for the finishes attribute --- scrython/cards/cards_object.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index d1f847b..0b2e6d6 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -760,3 +760,14 @@ class CardsObject(FoundationObject): super(CardsObject, self)._checkForKey('image_status') return self.scryfallJson['image_status'] + + def finishes(self): + """A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + """ + super(CardsObject, self)._checkForKey('finishes') + + return self.scryfallJson['finishes'] From fbd8aeb55f8b18354a7edb0e78aea724b7b8078c Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:17:40 -0400 Subject: [PATCH 06/11] Added support for new pricing fields --- scrython/cards/cards_object.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 0b2e6d6..6e53de3 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -463,7 +463,7 @@ class CardsObject(FoundationObject): return self.scryfallJson['edhrec_rank'] def prices(self, mode): - """Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` + """Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -474,7 +474,7 @@ class CardsObject(FoundationObject): Returns: float: The prices as a float """ - modes = ['usd', 'usd_foil', 'eur', 'tix'] + modes = ['usd', 'usd_foil', 'usd_etched', 'usd_glossy', 'eur', 'tix'] if mode not in modes: raise KeyError("{} is not a key.".format(mode)) @@ -770,4 +770,4 @@ class CardsObject(FoundationObject): """ super(CardsObject, self)._checkForKey('finishes') - return self.scryfallJson['finishes'] + return self.scryfallJson['finishes'] \ No newline at end of file From daee40ba20d672912d9f9029cc63d068ad7f51de Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:20:57 -0400 Subject: [PATCH 07/11] Added deprecation warnings to foil and nonfoil --- scrython/cards/cards_object.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 6e53de3..62b4d6b 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -673,23 +673,31 @@ class CardsObject(FoundationObject): return self.scryfallJson['oracle_id'] def foil(self): - """True if this printing exists in a foil version + """True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean """ super(CardsObject, self)._checkForKey('foil') + print('WARNING: This method will be deprecated on Nov 1, 2021. Please use the `finishes` method instead.') + return self.scryfallJson['foil'] def nonfoil(self): """True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean """ super(CardsObject, self)._checkForKey('nonfoil') + print('WARNING: This method will be deprecated on Nov 1, 2021. Please use the `finishes` method instead.') + return self.scryfallJson['nonfoil'] def oversized(self): From 5e274384f5e589381d393e662ffa293842d3ccec Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:32:15 -0400 Subject: [PATCH 08/11] Added support for tcgplayer_etched_id --- scrython/cards/cards_object.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scrython/cards/cards_object.py b/scrython/cards/cards_object.py index 62b4d6b..ffd3baa 100644 --- a/scrython/cards/cards_object.py +++ b/scrython/cards/cards_object.py @@ -91,6 +91,16 @@ class CardsObject(FoundationObject): return self.scryfallJson['tcgplayer_id'] + def tcgplayer_etched_id(self): + """The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + """ + super(CardsObject, self)._checkForKey('tcgplayer_etched_id') + + return self.scryfallJson['tcgplayer_etched_id'] + def name(self): """The oracle name of the card @@ -676,7 +686,7 @@ class CardsObject(FoundationObject): """True if this printing exists in a foil version. DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. - + Returns: boolean """ From f624fb47b07a948092d5013ae4f73c79ead8d6cc Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:32:30 -0400 Subject: [PATCH 09/11] Updated unit tests --- unittests/test_cards.py | 44 ++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/unittests/test_cards.py b/unittests/test_cards.py index 8e25a9d..c78f9af 100644 --- a/unittests/test_cards.py +++ b/unittests/test_cards.py @@ -18,8 +18,8 @@ vanguard = Id(id='87c1234b-3834-4bba-bef2-05707bb1e8e2'); time.sleep(0.1) alt_lang_card = Collector(code='ths', collector_number='75', lang='ja'); time.sleep(0.1) planeswalker = Id(id='4c565076-5db2-47ea-8ee0-4a4fd7bb353d'); time.sleep(0.1) preview_check = Id(id='fb6b12e7-bb93-4eb6-bad1-b256a6ccff4e'); time.sleep(0.1) -class_card = Id(id='37d6343a-c514-4ca6-a415-62d1a473ae20'); time.sleep(0.1) meld_card = Id(id='5a7a212e-e0b6-4f12-a95c-173cae023f93'); time.sleep(0.1) +foil_etched = Id(id='47f44d5a-f3d6-4a9a-8bd3-b17a88565c51'); time.sleep(0.1) autocomplete = Autocomplete(q='Thal'); time.sleep(0.1) @@ -198,15 +198,9 @@ class TestCardObjects(unittest.TestCase): def test_oracle_id(self): self.assertIsInstance(non_online_card.oracle_id(), str) - def test_foil(self): - self.assertIsInstance(non_online_card.foil(), bool) - def test_loyalty(self): self.assertIsInstance(planeswalker.loyalty(), str) - def test_non_foil(self): - self.assertIsInstance(non_online_card.nonfoil(), bool) - def test_oversized(self): self.assertIsInstance(non_online_card.oversized(), bool) @@ -217,6 +211,27 @@ class TestCardObjects(unittest.TestCase): def test_image_status(self): self.assertIsInstance(non_online_card.image_status(), str) + def test_finishes(self): + self.assertIsInstance(foil_etched.finishes(), list) + + def test_tcgplayer_id(self): + self.assertIsInstance(non_online_card.tcgplayer_id(), int) + + def test_tcgplayer_etched_id(self): + self.assertIsInstance(foil_etched.tcgplayer_etched_id(), int) + + def test_frame_effects(self): + self.assertIsInstance(frame_effected_card.frame_effects(), list) + + def test_games(self): + self.assertIsInstance(non_online_card.games(), list) + + def test_promo(self): + self.assertIsInstance(non_online_card.promo(), bool) + + def test_released_at(self): + self.assertIsInstance(non_online_card.released_at(), str) + class TestAutocomplete(unittest.TestCase): def test_object(self): @@ -248,21 +263,6 @@ class TestSearch(unittest.TestCase): def test_data_length(self): self.assertIsInstance(search.data_length(), int) - def test_tcgplayer_id(self): - self.assertIsInstance(non_online_card.tcgplayer_id(), int) - - def test_frame_effects(self): - self.assertIsInstance(frame_effected_card.frame_effects(), list) - - def test_games(self): - self.assertIsInstance(non_online_card.games(), list) - - def test_promo(self): - self.assertIsInstance(non_online_card.promo(), bool) - - def test_released_at(self): - self.assertIsInstance(non_online_card.released_at(), str) - if __name__ == '__main__': test_classes_to_run = [ From 22c1cca4ea0ed8a0028857fa5ae24e546f6c9d54 Mon Sep 17 00:00:00 2001 From: NandaScott Date: Mon, 6 Sep 2021 12:34:14 -0400 Subject: [PATCH 10/11] Updated docs --- docs/scrython.cards/ArenaId.md | 31 ++++++++++++++++++++++++++++--- docs/scrython.cards/Collector.md | 31 ++++++++++++++++++++++++++++--- docs/scrython.cards/Id.md | 31 ++++++++++++++++++++++++++++--- docs/scrython.cards/Mtgo.md | 31 ++++++++++++++++++++++++++++--- docs/scrython.cards/Multiverse.md | 31 ++++++++++++++++++++++++++++--- docs/scrython.cards/Named.md | 31 ++++++++++++++++++++++++++++--- docs/scrython.cards/Random.md | 31 ++++++++++++++++++++++++++++--- 7 files changed, 196 insertions(+), 21 deletions(-) diff --git a/docs/scrython.cards/ArenaId.md b/docs/scrython.cards/ArenaId.md index 507036e..e4abd79 100644 --- a/docs/scrython.cards/ArenaId.md +++ b/docs/scrython.cards/ArenaId.md @@ -151,6 +151,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -166,8 +177,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -387,6 +400,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -463,7 +478,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -665,6 +680,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` diff --git a/docs/scrython.cards/Collector.md b/docs/scrython.cards/Collector.md index ef7ef7c..1df4b27 100644 --- a/docs/scrython.cards/Collector.md +++ b/docs/scrython.cards/Collector.md @@ -148,6 +148,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -163,8 +174,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -384,6 +397,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -460,7 +475,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -662,6 +677,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` diff --git a/docs/scrython.cards/Id.md b/docs/scrython.cards/Id.md index ca1991e..ef12b6e 100644 --- a/docs/scrython.cards/Id.md +++ b/docs/scrython.cards/Id.md @@ -151,6 +151,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -166,8 +177,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -387,6 +400,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -463,7 +478,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -665,6 +680,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` diff --git a/docs/scrython.cards/Mtgo.md b/docs/scrython.cards/Mtgo.md index 64b03f0..a591937 100644 --- a/docs/scrython.cards/Mtgo.md +++ b/docs/scrython.cards/Mtgo.md @@ -151,6 +151,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -166,8 +177,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -387,6 +400,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -463,7 +478,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -665,6 +680,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` diff --git a/docs/scrython.cards/Multiverse.md b/docs/scrython.cards/Multiverse.md index 3e0f747..fdf03e4 100644 --- a/docs/scrython.cards/Multiverse.md +++ b/docs/scrython.cards/Multiverse.md @@ -151,6 +151,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -166,8 +177,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -387,6 +400,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -463,7 +478,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -665,6 +680,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` diff --git a/docs/scrython.cards/Named.md b/docs/scrython.cards/Named.md index 5c9d123..8b0b78d 100644 --- a/docs/scrython.cards/Named.md +++ b/docs/scrython.cards/Named.md @@ -153,6 +153,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -168,8 +179,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -389,6 +402,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -465,7 +480,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -667,6 +682,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` diff --git a/docs/scrython.cards/Random.md b/docs/scrython.cards/Random.md index 8f8808d..5512530 100644 --- a/docs/scrython.cards/Random.md +++ b/docs/scrython.cards/Random.md @@ -149,6 +149,17 @@ The rank of the card on edhrec.com Returns: int: The rank of the card on edhrec.co +``` +--- +### `finishes()` + +``` +A list of computer-readable flags that indicate if this card + can come in foil, nonfoil, etched, or glossy finishes. + + Returns: + list: A list of all finishes. + ``` --- ### `flavor_text()` @@ -164,8 +175,10 @@ The flavor text of the card, if any ### `foil()` ``` -True if this printing exists in a foil version - +True if this printing exists in a foil version. + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. + Returns: boolean @@ -385,6 +398,8 @@ The oracle name of the card ``` True if this printing does not exist in foil + + DEPRECATION NOTICE: This method will be deprecated on Nov 1, 2021. Returns: boolean @@ -461,7 +476,7 @@ Preview information for this card, if any. ### `prices()` ``` -Returns prices from modes `usd`, `usd_foil`, `eur`, and `tix` +Returns prices from modes `usd`, `usd_foil`, `usd_etched`, `usd_glossy`, `eur`, and `tix` Args: mode (string): The prices to get @@ -663,6 +678,16 @@ True if this card is featured in the story Returns: boolean +``` +--- +### `tcgplayer_etched_id()` + +``` +The `etched_id` of the card on TCGplayer. + + Returns: + integer: The TCGplayer etched id of the card + ``` --- ### `tcgplayer_id()` From b46bc772db41ac84b5b864c60d9c84708633b91c Mon Sep 17 00:00:00 2001 From: Nanda Scott Date: Mon, 6 Sep 2021 12:39:36 -0400 Subject: [PATCH 11/11] Update tests.yml --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d98094e..dd11700 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2