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.3.0.tar.gz (4.8 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.3.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pymesomake-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2e03f0b7fa5194f7e4c68af435e9b76fec3e1fd9ed905473b7a9fcf1f98bf4ad
MD5 6b8da5f3509a6ac0bac083c8e918e865
BLAKE2b-256 d63da19e832525252be82d152dc7422f51e27faaec71fe910c7aa91d5f7e0b18

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymesomake-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6

File hashes

Hashes for pymesomake-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f3b20031bb5bc3c087d468226fa6fc7c9aca11a024ec5fa4f676693626c390c
MD5 6fd39bafe29df017a8d94ad97ff9bca2
BLAKE2b-256 4e23530a28949edadc03920c127dd072d53b740bf0963600c6fa5aa602ef9b59

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