Skip to content

Commit 6da9707

Browse files
authored
Merge pull request #6 from thrly/rename-for-pypi
Renaming and package install details
2 parents 96ff6c9 + f1f2f4a commit 6da9707

File tree

14 files changed

+34
-14
lines changed

14 files changed

+34
-14
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
# _"scry a card, planeswalker..."_ 🔮🃏
1+
# scryfall-set
22

3-
Leveraging [scryfall](https://scryfall.com/docs/api) to get stats for MTG cards
3+
## _"scry a card, planeswalker..."_ 🔮🃏
4+
5+
Overview stats for MTG sets and searches using the [Scryfall](https://scryfall.com/docs/api) API
46

57
<p align="center">
68
<img src="./img/scry-screenshot.png" alt="example screenshot" width="50%">
79
</p>
810

9-
## setup
11+
## install
12+
13+
Install via PyPi with `pip install scry-set`
14+
15+
### locally
1016

11-
Clone and install with `pipx install .`
17+
Clone and install with `pipx install .` or `pip install .`
1218

1319
## use
1420

1521
- Request a reference list of set releases with: `scry setlist`
22+
- to see a _full_ list of all releases including bonus boxes and memorabilia: `scry setlist --all`
1623
- Get stats for a specific set:
1724
- `scry set BLB` returns all cards from the _Bloomburrow_ set
1825
- `scry set latest` finds the most recent release.
@@ -30,3 +37,15 @@ This also may lead to large database files with a lot of sets. To clear your dat
3037

3138
Made with python and sqlite, and requests to the [scryfall](https://scryfall.com/docs/api) API.
3239
This is a personal project to learn more about python packaging, sqlite, pytest, and MTG sets.
40+
41+
## testing
42+
43+
Run tests with `pytest`
44+
45+
## licence
46+
47+
This project is distributed with the [MIT licence](./LICENCE)
48+
49+
## disclaimer
50+
51+
This project is not linked, authorized, endorsed by, or in any way officially connected with Wizards of the Coast.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[project]
2-
name = "scry"
2+
name = "scryfall-set"
33
version = "0.1"
4+
description = "Overview stats for MTG sets and searches using the Scryfall API"
45
dependencies = [
56
"requests",
67
"pytest",
@@ -17,7 +18,7 @@ classifiers = [
1718

1819
# defines the command and script that will be used to run
1920
[project.scripts]
20-
scry = "scry.main:main"
21+
scry = "scryfall_set.main:main"
2122

2223
[project.urls]
2324
repository = "https://github.com/thrly/scry"
@@ -29,4 +30,4 @@ build-backend = "setuptools.build_meta"
2930

3031
[tool.setuptools.packages.find]
3132
where = ["src"]
32-
include = ["scry*"]
33+
include = ["scryfall_set*"]

src/scry/cli.py renamed to src/scryfall_set/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import argparse
22
from datetime import datetime
33

4-
from scry.db_queries import get_unique_cards
5-
from scry.loading import Loading
6-
from scry.request import find_current_release, check_date_past, get_set_info
4+
from scryfall_set.db_queries import get_unique_cards
5+
from scryfall_set.loading import Loading
6+
from scryfall_set.request import find_current_release, check_date_past, get_set_info
77
from . import (
88
get_random_card,
99
insert_cards,

0 commit comments

Comments
 (0)