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.0.tar.gz (2.0 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.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhavamal-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 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.0.tar.gz
Algorithm Hash digest
SHA256 34ee6d7baff068fbb9e6af7c02a21049ebe2c87282c16947e7c6a6583997ee19
MD5 8ee5b3d3fee63b33465f97ec64a5e7e4
BLAKE2b-256 21449db6ca871f78e22224a5e39e920b5562f2f59ed25746a059bb3d6ed80049

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhavamal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a2b308e9850fbe2fb4518e4dfc70ab90a494973c34f275f1e434802120f53f
MD5 ff8874b9b3b9ff4b3a8296624e5d7f6c
BLAKE2b-256 6899b9619b484478bd2576b6ce0b8477a4fe4fd5f1c5911ac58940709fce177b

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