Skip to main content

A CSV file containing the Old Norse Hávamál stanzas and a simple Python app for accessing them.

Project description

PyHavamal

The Hávamál is an Old Norse poem in which each stanza is a saying. The topics range from proper feast decorum to dealing with sorcerers. PyHavamal provides easy access to the text of a translation by Henry Adams Bellows.

Installation

Use pip install pyhavamal.

Use

There are 165 stanzas in the Bellows translation numbered 1-165.

  • all() returns a list of all stanzas. Pass numbered=True to return a dict of numbered stanzas.
  • find_by_number(n) returns stanza n (where n is the stanza number and not zero-based).
  • random() returns a random stanza.
  • range_by_number(a, b) returns a list of stanzas from a to b inclusive (where a and b are stanza numbers and not zero-based).

License

MIT License

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

pyhavamal-0.1.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

pyhavamal-0.1.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file pyhavamal-0.1.2.tar.gz.

File metadata

  • Download URL: pyhavamal-0.1.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pyhavamal-0.1.2.tar.gz
Algorithm Hash digest
SHA256 33765b18717c466f03d61960cb2183b47a2ae67fa9c1d2c8c524f0ad32d08bbc
MD5 c80e6f9db90550434cb19b1dadb7ffd0
BLAKE2b-256 b0d0fd477476514ceddb7f91f327f49857fdd956a653c278c6942df6387e6ce5

See more details on using hashes here.

File details

Details for the file pyhavamal-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pyhavamal-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for pyhavamal-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72bdc3738d58dfdcf0f6887ba6b08d9d27b621f4716947416869ed547cf2fc77
MD5 612656b944733af00bb195be886333f1
BLAKE2b-256 053897e508edac5e641b9cd0bfe6d2c45861360daefefebd9a4c67fd56763454

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