Skip to main content

A parser for the twee format

Project description

pylint workflow Status test workflow Status Read the Docs (version)

pypi workflow Status PyPI - Version PyPI - Python Version PyPI - Status

Features

Use

# Install by pip
$ python -m pip install pytwee
# Run in console
$ python -m pytwee tests/t001.tw
# Import as a module
import pytwee

story = pytwee.story.Story()

with open('my-story.tw', 'rt') as f:
    parser = pytwee.twee3.Parser(story)
    for line in iter(f.readline, ''):
        parser(line)
    del parser #<- very important

print('story:', story)

License

Static Badge

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

pytwee-0.3.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

pytwee-0.3.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytwee-0.3.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytwee-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4bc1a0fb89cd32cb657537060d656a65b630b066e0ae37f2828f4f0ea5b4ec7b
MD5 be31c501c18e63fe1c4bbf3d24499edd
BLAKE2b-256 b5e43b84a0de491bc81c776286175b2168784695dc3f9b0af619b67310a0df47

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytwee-0.3.0.tar.gz:

Publisher: pypi.yml on jixingcn/pytwee

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pytwee-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytwee-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b072b730a8dbef3026c496cdf3eabf470bf3e83d4cb2333808b3edea646d8858
MD5 65a172710a2890864492e3381843279a
BLAKE2b-256 13dca004c600ece47c02178186a2c4ff0a29162f2440990c8542a81dcf103d7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytwee-0.3.0-py3-none-any.whl:

Publisher: pypi.yml on jixingcn/pytwee

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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