Skip to main content

A fun little command-line tool for fetching random Warhammer lore snippets from the wikis.

Project description

Vasara

A fun little command-line tool for fetching random Warhammer lore snippets from the wikis.

Usage

vasara is a command-line tool for fetching random Warhammer lore snippets.

vasara [universe] [OPTIONS]

Arguments:

  • universe: The Warhammer universe you want to get lore snippets from.
    • Choices: 40k, fantasy, aos
    • Default: 40k

Options:

  • -c, --count <COUNT>: Number of lore snippets to fetch.
    • Default: 1
  • -p, --paragraph: Fetch a full paragraph instead of a snippet.
  • -m, --max-length <MAX_LENGTH>: Maximum length of the snippets.
    • Default: 190
  • -f, --format <FORMAT>: Output format.
    • Choices: text, json
    • Default: text
  • --retries <RETRIES>: Number of retries to attempt before cancelling.
    • Default: 5
  • --max-workers <RETRIES>: Max number of worker threads used for concurrently querying the wiki.
    • Default: 500

Examples

Fetch a single Warhammer 40,000 lore snippet (default):

vasara

Fetch 3 Age of Sigmar lore snippets:

vasara aos --count 3

Fetch a full paragraph of Warhammer Fantasy Battles lore:

vasara fantasy --paragraph

Fetch lore in JSON format:

vasara 40k --count 2 --format json

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

vasara-0.2.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vasara-0.2.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file vasara-0.2.0.tar.gz.

File metadata

  • Download URL: vasara-0.2.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for vasara-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c0f1f764ffcf424fcb28e6f522f2d5ff4c21fa50c0873336840b0068a1bab6c2
MD5 fe439c2cacc444a3546800ce9e8891d4
BLAKE2b-256 d07a2ff6fde96af6967ca031fa8aeff167efda280db7000ba83602a171fe8fb3

See more details on using hashes here.

File details

Details for the file vasara-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vasara-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for vasara-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b894d74a4bcd9c0a4772a4ba53c36127b8b93d16e2dbb4d7e209e04a8ddc853
MD5 a153b5c586422ea1113907244507bb93
BLAKE2b-256 9961ea551dfec2b7d28074452fad0c1d0f55da7b7300a072e1db1168a801dcb4

See more details on using hashes here.

Supported by

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