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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhavamal-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c427ce2d881a2e4f5bb3453bcb77de858e1edddac3d16ad89eb551a4e4318ff1
MD5 9b681e5cb85ddd3570a8e588112dad93
BLAKE2b-256 a1dca0e740c00b314945d75456c76bda2c2d93ba6b59587c61d55f70dd32d923

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhavamal-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a70e43a89010ef56a163b88a2f2dcc09e525a30b2288c9e35b203088be17ca37
MD5 fab09fdae48fb52a908a614e4ecd7ca5
BLAKE2b-256 8cda485b89ad93a4e2004966d1f147063545dd32f9b8a3c13c46f952f3a99820

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