Skip to content

Commit

Permalink
[README] : updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CooperGerman committed Feb 19, 2023
1 parent fd3d9e7 commit c72a26f
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,45 @@

This repo contains a simple script that aims at reformatting DragonSHield exported CSV files into Moxfield acceptable ones.

# How to me ?
It also contains a more advanced script that can filter the cards based on a list of cards you want to sell.
This script uses minimum and maximum prices as well as the minimum number of instances for each card to determine if it should be included in the output.

# How to me ?
## convert.py
To use this tool simply put all your extracted csv files into a directory and call the python file like follows.

```bash
python3 ./DS2MOX_convert.py <path to csv files>
```
python3 ./DS2MOX_convert.py <path to csv files folder>
```

## advanced_filtering.py

This script is to be used alongside a moxfield exported csv file. It will filter the cards based on the minimum and maximum prices you set as well as the minimum number of instances you want to keep.

```bash
python3 ./DS2MOX_advanced_filtering.py <path to csv files folder>
--min_price <minimum price for a card to be included> (default: 0.0)
// choices : float
--max_price <maximum price for a card to be included> (default: 'inf')
// choices : float
--min_instances <minimum number of instances for a card to be included> (default: 1)
// choices : int
--loglvl <log level> (default: INFO)
// choices : DEBUG, INFO, WARNING, ERROR, CRITICAL, debug, info, warning, error, critical

```

Example :

```bash
python3 ./DS2MOX_advanced_filtering.py ./csv_files --min_price 0.5 --max_price 1.0 --min_instances 2
```
OUTPUT:


# Future improvements :
- [ ] Store a local database of cards to avoid having to interrogate scryfall each time
- [ ] Add a GUI
- [ ] Add a way to export the filtered cards to a moxfield database
- [ ] Add a way to export the filtered cards to a deckbox database
- [ ] Add a way to export the filtered cards to a manabox database

0 comments on commit c72a26f

Please sign in to comment.