Config
Config
Class defining the configuration to run mtg_pynance with.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
workspace_path
|
Path
|
Path to the workspace directory. |
required |
collection_path
|
Path
|
Path to the card collection csv file. |
required |
Methods:
| Name | Description |
|---|---|
create_workspace |
Creates the workspace folder. |
get_bulk_info_path |
Returns the path of Scryfall's bulk data default cards information json file. |
get_bulk_data_path |
Returns the path of Scryfall's bulk data default cards json file. |
get_database_path |
Returns the path to the local SQL collection database. |
get_bulk_data_timestamp |
Get timestamp of local bulk data files. |
Source code in src/mtg_pynance/config.py
create_workspace()
get_bulk_data_path()
Returns the path to Scryfall's bulk data default cards json file.
get_bulk_data_timestamp()
Get timestamp of local bulk data files if they exist or return None if they don't.
Source code in src/mtg_pynance/config.py
get_bulk_info_path()
Returns the path to Scryfall's bulk data default cards information json file.
get_database_path()
Returns the path to the SQL collection database where each card in the collection has its information stored.