Command line Python program to extract army rules and unit cards from 10th edition Warhammer 40k indexes to create army list specific pdfs with reduced file size.
Project description
Description
Command line Python program to extract army rules and unit cards from 10th edition Warhammer 40k indexes to create army list specific pdfs with reduced file size. Requires Python and pypdf.
Instructions
- Download an army index https://www.warhammer-community.com/warhammer-40000-downloads/#indexes-faqs-and-errata
- Install Python
- Install py40kie using pip:
pip install py40kie
- Run py40kie using command line:
py40kie [-h] [-o OUTPUT_PDF] [-a ARMY_RULES_PAGES [ARMY_RULES_PAGES ...]] [-v] index_pdf pages [pages ...]
Postional arguments
- The "index.pdf" file to extract cards from
- Space separated list of cards to extract. Can be page numbers or exact unit titles. Army rules, strategems and unit wargear are included automatically
Optional arguments:
- -o: The file to save the extracted pdf to. Folder path can be included
- -e: Optional flag to extract the enhancements page
- -nw: Optional flag to disable extracting wargear pages
- -a: Optional argument to specify army rules and strategem pages (space separated numbers). Use this if the army rules and strategems are not contained in the first 4 pages of the index
- -v: Optional flag to override page extraction. Will extract only the page numbers specified
Examples
py40kie "tyranids index.pdf" 9 21 25 27 -o "my army list"
py40kie "tyranids index.pdf" "hive tyrant" "tyranid warriors with ranged bio-weapons" 25 "hOrMaGaUnTs" -o "./my lists/my army list"
Contributions
Future features
Any suggested features would be appreciated.
Issues
py40kie was not tested on all indexes. If there is any problem extracting cards please submit an issue https://github.com/Dragons-Ire/40k-index-pdf-extractor/issues/new
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file py40kie-0.1.2.tar.gz
.
File metadata
- Download URL: py40kie-0.1.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6acfa92417a8d10c1f5e649bd83819e67ba49a176fa45e05a390205ad219bf60 |
|
MD5 | 03c1b283755f7827d1aa04f9101b8e11 |
|
BLAKE2b-256 | 3fc5f4901eb443f839a5554bef907a3a77a8384ace15979b387d85f12974f7ca |
File details
Details for the file py40kie-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: py40kie-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a170f62afaed1af5c4659d628e00bb56524cd682576f4d956bd4130a0444680 |
|
MD5 | ecaf29d0910d5dc1d9f56f61dc5d4194 |
|
BLAKE2b-256 | 82477f466cc9d21def8d3a16e0076d27b726dd070beba4ccaf3ea870defa27f4 |