Skip to main content

iambic: Data extraction and rendering library for Shakespearean text. :scroll:

image image image image image codecov Code style: black Netlify Status

Let computers do the hard work for you! iambic provides:

  1. The most accurate method for counting lines automatically.
  2. Automatically track which characters are speaking in any scene.
  3. Deterministic, repeatable results, with the ability to store your data as JSON with strictly defined schema for passing over the wire or storing locally or in a NoSQL database between runtimes.

Installation

In order to install the latest version, simply pip3 install -U iambic.

This library requires Python 3.7 or greater.

What is it?

iambic was originally envisioned as a tool for translating Shakespearean text into actionable information, i.e.:

  1. How many lines are in this particular play?
  2. How many lines does a given character speak in this play?
  3. Which characters speak, in which scenes and acts?

As a result of the implementation, this tool can be applied to any body of text which adhere's to its parsing syntax.

The Schema

The full schema specification has been written in JSON Schema 7.0 and can be found here

Documentation

The full documentation is available at iambic.seandstewart.io

How to Contribute

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
  2. Create a branch on Github for your issue or fork the repository on GitHub to start making your changes to the master branch.
  3. Write a test which shows that the bug was fixed or that the feature works as expected.
  4. Send a pull request and bug the maintainer until it gets merged and published. :)

Release files for iambic 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iambic 3.0.0
File Size Uploaded
iambic-3.0.0.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for iambic 3.0.0
File Interpreter ABI Platform
iambic-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.1 MB

Release files / iambic-3.0.0.tar.gz

Download URL iambic-3.0.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
b4193073e3820123ccb630caf577944d5dfeb79677c6f389853ec9e8a9a7afeb
BLAKE2b-256 checksum
How to use checksums
f623cd45ea49c45eaac25beeeebbb4e86fdc04676722454a28b0f2079126d150
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1040-azure

Release files / iambic-3.0.0-py3-none-any.whl

Download URL iambic-3.0.0-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
856c99ddf50c497d00679784440f78eda726d154a1f15a7ec1184cd0864721ee
BLAKE2b-256 checksum
How to use checksums
8cf06026d5a81de908e161d7afb758eb505befa40787d9b3d19c5671c963aac8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1040-azure
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page