Skip to main content

An implementation of the mesostic generation algorithm Andrew Culver developed for John Cage.

Project description

PyMesomake

PyMesomake is a Python 3 implementation of the mesostic generation algorithm Andrew Culver developed for John Cage.

Installation

Windows

I only use Windows for testing in my projects but these instructions work for me on a vanilla Windows 10 VirtualBox virtual machine:

  1. If you don't already have Python on your system download and install the current release from python.org.

  2. Open a Command Prompt.

  3. Run this command.

pip install pymesomake
  1. Download the punkt tokenizer from Python's Natural Language Tool Kit.
python -m nltk.downloader punkt
  1. Download this file, containing the text of Genesis.

  2. Run this command, making sure to provide the correct path to wherever you've downloaded the Genesis text.

python -m pymesomake --sourcefile=Downloads\genesis.txt --mesostring="these are the times that try men's souls"

You should see a mesostic on your screen. Congratulations.

macOS

I do most of my development work on Macintosh hardware so my setup is somewhat customized. If you've done any programming on your Mac it's likely you've already installed Xcode, the homebrew package manager, and maybe a version of Python 3.

  1. Install a current release of Python 3 on your Mac. This guide is as good as any.

  2. Open a Terminal window.

  3. Run this command.

pip install pymesomake
  1. Download the punkt tokenizer from Python's Natural Language Tool Kit.
python -m nltk.downloader punkt
  1. Download this file, containing the text of Genesis.

  2. Run this command, making sure to provide the correct path to wherever you've downloaded the Genesis text.

python -m pymesomake --sourcefile=Downloads/genesis.txt --mesostring="these are the times that try men's souls"

You should see a mesostic on your screen. Congratulations.

Linux

coming soon

Usage

python pymesomake --sourcefile='data/genesis.txt' --mesostring="these are the times that try men's souls"

Acknowledgements & Resources

Andrew Culver

The Holy See

  • source of Genesis text. HTML source subjected to these minimal edits:
    • removal of page navigation elements
    • removal of chapter headings (e.g., "Chapter 6") and line numbering (e.g., "[1:30]")

Marjorie Perloff contextual essays

Reminder to Maintainer

Publish thusly:

python setup.py sdist bdist_wheel
twine upload dist/*

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

pymesomake-0.4.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

pymesomake-0.4.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file pymesomake-0.4.1.tar.gz.

File metadata

  • Download URL: pymesomake-0.4.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for pymesomake-0.4.1.tar.gz
Algorithm Hash digest
SHA256 43f4b9f2a210a5c5db32d1594f87167dc67f3465be8e5c34079436bbd529012c
MD5 762172870a6189dd10d365bad0c60787
BLAKE2b-256 4175b875c1ec4fa04006f0fca248b4c7616c95955ee397fa19a0a270241f38f4

See more details on using hashes here.

File details

Details for the file pymesomake-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: pymesomake-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for pymesomake-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aaf790f6f09bbb1fb71db1b9b84b4cc55999984ef96946797ea5b1fa5394ad5f
MD5 bc5d43c49805d210e7bf0be2e71c61ab
BLAKE2b-256 fa28a98acb28cc06d6b706af43d90d42ce884a4f63646cc73ff4033a0fcbd385

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