Alejandro Cremades commited on
Commit
42764e1
2 Parent(s): fc00695 7c52136

Merge pull request #70 from alecrem/chore/issue-68/update-readme

Browse files
README.md CHANGED
@@ -6,20 +6,24 @@ app_file: "Middle_School_Card_Search.py"
6
 
7
  # middleschool-cardlist
8
 
9
- Composes a list of Magic cards legal in the Middle School format
10
 
11
  ## List of Middle School legal cards
12
 
13
  You can download the list in the following formats:
14
 
15
- - [JSON](output/middleschool.json)
16
- - [CSV](output/middleschool.csv)
 
 
17
 
18
- ## The process: the Jupyter notebook
19
 
20
- Feel free to take a look at [the notebook](https://github.com/alecrem/middleschool-cardlist/blob/main/middleschool-cardlist.ipynb)
21
 
22
- ### Requirements to run the notebook
 
 
23
 
24
  Command line utilities:
25
 
@@ -35,10 +39,12 @@ Python modules:
35
 
36
  ## Streamlit web interface
37
 
38
- The app is deployed here: [middleschoolmtg.streamlit.app](https://middleschoolmtg.streamlit.app/)
 
 
39
 
40
  To run the Streamlit app locally, install the [streamlit](https://docs.streamlit.io/library/get-started) module and run:
41
 
42
  ```sh
43
- streamlit run Middle_School_Card_List.py
44
  ```
 
6
 
7
  # middleschool-cardlist
8
 
9
+ Composes a list of Magic cards legal in the Middle School format.
10
 
11
  ## List of Middle School legal cards
12
 
13
  You can download the list in the following formats:
14
 
15
+ - [JSON (Oracle IDs and card names only)](output/middleschool.json)
16
+ - [CSV (Oracle IDs and card names only)](output/middleschool.csv)
17
+ - [JSON (with additional columns)](output/middleschool_extra_fields.json)
18
+ - [CSV (with additional columns)](output/middleschool_extra_fields.csv)
19
 
20
+ ## Composing the list
21
 
22
+ Feel free to take a look at [the Jupyter notebook](https://github.com/alecrem/middleschool-cardlist/blob/main/middleschool-cardlist.ipynb) for a quick idea of the process (outdated version).
23
 
24
+ To actually compose the list, please run the shell and python scripts in the `list_scripts` directory in order.
25
+
26
+ ### Requirements
27
 
28
  Command line utilities:
29
 
 
39
 
40
  ## Streamlit web interface
41
 
42
+ This repository also hosts a web app where users can search for Middle School legal cards or check the legality of cards in a list.
43
+
44
+ The app is deployed here: [alecrem-middleschool.hf.space](https://alecrem-middleschool.hf.space/).
45
 
46
  To run the Streamlit app locally, install the [streamlit](https://docs.streamlit.io/library/get-started) module and run:
47
 
48
  ```sh
49
+ streamlit run Middle_School_Card_Search.py
50
  ```
list_scripts/1_download_mtgjson.sh CHANGED
@@ -1,9 +1,11 @@
 
 
 
 
 
1
  # Download mtgjson data and extract it on the `data` directory
2
  # Feel free to make the file available in any other way
3
 
4
- # Important: run this script from the parent directory
5
- # (the root directory in this repository)
6
-
7
  cd data
8
  wget "https://mtgjson.com/api/v5/AllPrintings.json.bz2"
9
  bunzip2 AllPrintings.json.bz2
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository):
3
+ #
4
+ # sh list_scripts/1_download_mtgjson.sh
5
+
6
  # Download mtgjson data and extract it on the `data` directory
7
  # Feel free to make the file available in any other way
8
 
 
 
 
9
  cd data
10
  wget "https://mtgjson.com/api/v5/AllPrintings.json.bz2"
11
  bunzip2 AllPrintings.json.bz2
list_scripts/2_per_set_json_files.py CHANGED
@@ -1,7 +1,11 @@
1
- ## Important: run this script from the parent directory
2
- ## (the root directory in this repository)
3
  #
4
- # python3 list_scripts/1.py
 
 
 
 
5
 
6
  # The Raw data is very large, so let's make JSON files for all relevant sets
7
  # Note: this can take a couple minutes to run
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
  #
4
+ # python3 list_scripts/2_per_set_json_files.py
5
+ #
6
+ # Then, run the newly generated bash script:
7
+ #
8
+ # sh list_scripts/3_separate_json_files_per_set.sh
9
 
10
  # The Raw data is very large, so let's make JSON files for all relevant sets
11
  # Note: this can take a couple minutes to run
list_scripts/4_compile_from_legal_sets.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import json
2
  import pandas as pd
3
 
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/4_compile_from_legal_sets.py
5
+
6
  import json
7
  import pandas as pd
8
 
list_scripts/5_remove_wrong_names.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import pandas as pd
2
 
3
  # Remove Japanese card names that are wrong on MTGJSON
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/5_remove_wrong_names.py
5
+
6
  import pandas as pd
7
 
8
  # Remove Japanese card names that are wrong on MTGJSON
list_scripts/6_find_remaining_japanese_names.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import pandas as pd
2
  import time
3
  from requests_html import HTMLSession
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/6_find_remaining_japanese_names.py
5
+
6
  import pandas as pd
7
  import time
8
  from requests_html import HTMLSession
list_scripts/7_remove_banned_cards.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import pandas as pd
2
 
3
  # Remove cards that are banned in the format
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/7_remove_banned_cards.py
5
+
6
  import pandas as pd
7
 
8
  # Remove cards that are banned in the format
list_scripts/8_add_other_fields.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  import json
2
  import pandas as pd
3
 
 
1
+ # Important: run this script from the parent directory
2
+ # (the root directory in this repository)
3
+ #
4
+ # python3 list_scripts/8_add_other_fields.py
5
+
6
  import json
7
  import pandas as pd
8