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 the downloaded 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

coming soon

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.2.2.tar.gz (4.6 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.2.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymesomake-0.2.2.tar.gz
  • Upload date:
  • Size: 4.6 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.2.2.tar.gz
Algorithm Hash digest
SHA256 9853a9bcfcb2832191ebe64870358f2ceb095dfa4b3fafd9ce221cf1130a700b
MD5 1b25d449dc830103fc512ac3405ac1d6
BLAKE2b-256 70c95c7db9ebb024d16af9ca1c0cfc5baa886c71c144214358ced1068de2974e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymesomake-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 668632cef44b67038f70d8996b4175223ecb2a33dce1f106436fbbecc86af1a5
MD5 cfb7bc0608e36ad5aa346a408662b64e
BLAKE2b-256 b133f8a85f0e5aa48b4bda181863c6765864b8c228126dd5d6e261527089725e

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