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.4.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.4-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhavamal-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f124f6303b5ce5c9296ea3da69ae87e58abea7e10332b74ef704ab44cb274ad8
MD5 35d0ccdd7cfee444a0a9eec6ebf48ac4
BLAKE2b-256 3f16402970d8ff1bc493f4ea972b984f1555f0fd256a4c229a6c244d000cf7fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhavamal-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 33438a51e8b7ee01d7ae0dcc77364309cb66913298f0537b03cb2e930a58d800
MD5 dd9361e4be86f01a34f8b559a3f5a78a
BLAKE2b-256 e871b32d9dd9c3112a7d5f8e2bce54982901ddec88e57dd6216e31b0915b781a

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