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 virtual machine:

  1. If you don't already have Python on your system download and install the the current release from python.org}(https://www.python.org/)

  2. Open a command line and run the command

pip install pymesomake

MacOS

Linux

Unless you've previously used Python's Natural Language Tool Kit you'll see this error on your first run of PyMesomake.

LookupError: 
**********************************************************************
  Resource punkt not found.
  Please use the NLTK Downloader to obtain the resource:

  >>> import nltk
  >>> nltk.download('punkt')

  Attempted to load tokenizers/punkt/PY3/english.pickle

  Searched in:
    - '/Users/erictheise/nltk_data'
    - '/Users/erictheise/Repos/erictheise/venvs/pymesomake/nltk_data'
    - '/Users/erictheise/Repos/erictheise/venvs/pymesomake/share/nltk_data'
    - '/Users/erictheise/Repos/erictheise/venvs/pymesomake/lib/nltk_data'
    - '/usr/share/nltk_data'
    - '/usr/local/share/nltk_data'
    - '/usr/lib/nltk_data'
    - '/usr/local/lib/nltk_data'
    - ''
**********************************************************************

You can download that component with:

$ python -m nltk.downloader punkt
[nltk_data] Downloading package punkt to
[nltk_data]     /Users/erictheise/nltk_data...
[nltk_data]   Unzipping tokenizers/punkt.zip.
$

Usage

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

Reminder to Maintainer

Publish thusly:

$ python setup.py sdist bdist_wheel
$ twine updload dist/*

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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pymesomake-0.2.1.tar.gz
  • Upload date:
  • Size: 4.7 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.1.tar.gz
Algorithm Hash digest
SHA256 e741ee876a0de64cf7e8fe00d67c07278c4cce4dc85b517aa49b59bb1faf64e7
MD5 80c43149a7e6f759144cc5e2b9670eb6
BLAKE2b-256 9b0a73b8c09ae4197f996aa31b3e4b59ea0e008e616e3a6ee3f28d031875172e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymesomake-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db3b819a006be3239e2bf9af361f33a9e488ab80d356fa62f6205ebcd511e89d
MD5 16db621cd778d9abb7a3e14bd6bd979d
BLAKE2b-256 cb8b32a1b3058a2ef0f09e0dcf38a565fbc32f4f85a1160af69a2d77041a42c7

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