Skip to main content

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
    • -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

py40kie-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

py40kie-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file py40kie-0.1.1.tar.gz.

File metadata

  • Download URL: py40kie-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for py40kie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54fc5e852adb0f4f9f48ed901951aad1f0d997a963989fdf434ec9f7a373aaba
MD5 05f9b41d904d88bb0a31bb85d97ed5bc
BLAKE2b-256 1ac6c2ab91b5c5e7fecdd2b190412622cdc575102d18f8a2f672575a7b88f533

See more details on using hashes here.

File details

Details for the file py40kie-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py40kie-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for py40kie-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd756c485ebac530389b66180da849305a450223699534fe237af86ce750c508
MD5 2f3461ddd1fad485fe141dcc52b37292
BLAKE2b-256 cd0fcfed1bd97d1eb9b66daa6399e87647e2022adf285f74c1d26705c5a7f4ff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page