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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyhavamal-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 360bc2e611dff6c15086b00fa4a7706d331938f9504e2adf3928e5db52c870b0
MD5 8373a85a843e225e6b1ecf1024ccba85
BLAKE2b-256 2d2826e2104efbdab0e55ee1d38120773b9608d5e985a06c47df57e72afd2942

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyhavamal-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ced7b93ebe32c32c7d489a013deb0788680561397cc717a4407340f8a9733e3d
MD5 4eb918500378f010e950d5584fb645b3
BLAKE2b-256 9b24808716c7fa5b70c1ee1ab3b95574c36317958c48292ad0165b4f7b548c94

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