Kingdom generator for Dominion
This script generates recommended "kingdoms" for the card game Dominion and its expansions. It scrapes the Dominion Strategy Wiki to find connections between cards and then uses this graph to find sets of cards that should play well together. In general, I've found the resulting games to be more fun than the randomly generated ones.
Installation
The best way to install is using pip:
python -m pip install dominion
Usage
You can generate a random, well-connected kingdom using all the expansions:
dominion generate
You can restrict the code to a subset of the expansions:
dominion generate -s base -s prosperity -s seaside
Note that you can list the supported expansions using:
dominion list sets
You can start the kingdom off with your favorite cards:
dominion generate -c "king's court" -c village
As above, you can see the available cards using:
dominion list cards
# or
dominion list cards -s prosperity -s base
Finally, for good measure you can get a deterministic result using:
dominion generate --seed 42
Updating the graph
The graph of card information and connections is included in this repository, but you can update it using:
dominion setup data/cards.json
You'll need to have BeautifulSoup and requests installed, and installing tqdm doesn't hurt.
Metadata
Release files for dominion 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dominion-0.0.1.tar.gz | 106.2 kB | Without provenance | Details for dominion-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dominion-0.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for dominion-0.0.1-py2.py3-none-any.whl |
Total release size: 213.7 kB
Release files / dominion-0.0.1.tar.gz
| Download URL | dominion-0.0.1.tar.gz |
|---|---|
| Size | 106.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7385b27bb0e37d6bfc77bb1d788e57c31aa5eaf175921c09ea07cc43372fd6c5
|
|
BLAKE2b-256 checksum How to use checksums |
c023f9e5b0c27d25364201909f031b98cf82ea6b49853b512433848c854724bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4
|
Release files / dominion-0.0.1-py2.py3-none-any.whl
| Download URL | dominion-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 107.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ed078e4f236ab3a906729dd83987c6993458976e02f815cebf9dea5144e9cd96
|
|
BLAKE2b-256 checksum How to use checksums |
30eb3c0dcd0f515ed49e2bed7f49900b2278c355150282e44835593335859b4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.4
|
Security for dominion 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.