You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a simple test to pull cards and gets stats from [scryfall](https://scryfall.com/docs/api), using python
3
+
Leveraging [scryfall](https://scryfall.com/docs/api) to get stats for MTG cards
4
+
5
+
## setup
6
+
7
+
Clone and install with `pipx install scry`
4
8
5
9
## use
6
10
7
-
1. Add cards into database with a [search query](https://scryfall.com/docs/syntax): `python -m scry list "set:blb"` (returns unique cards from Bloomburrow set) and return stats for that query list.
8
-
2. Request a list of set releases with: `python -m scry setcodes`
9
-
3. Return stats for entire database: `python -m scry stats`
10
-
4. (Optional:) Clear your database: `python -m scry clear`
11
-
5. Test with `pytest -q` (Pytest package required)
11
+
- Draw a random card and add it to your database with `scry random`
12
+
- Get a list of cards based on a scryfall [search query](https://scryfall.com/docs/syntax) and add them to your database:
13
+
-`scry list "set:blb"` returns unique cards from the Bloomburrow set and shows stats for that list.
14
+
- Request a list of set releases with: `scry setcodes`
15
+
- Return stats for your entire database: `scry stats`
16
+
- (Optional:) Clear your database: `scry clear`
17
+
18
+
## about
19
+
20
+
Made with python and sqlite, and requests to the [scryfall](https://scryfall.com/docs/api) API.
21
+
This is a personal project to learn more about python packaging, sqlite, pytest, and MTG sets.
0 commit comments