Skip to main content

A parser for the twee format

Project description

GitHub Actions Workflow Status Read the Docs (version)

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.2.3.tar.gz (7.0 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.2.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytwee-0.2.3.tar.gz
Algorithm Hash digest
SHA256 fbab5cfc0ec39adb8be316b1eacab763a361cc1c1c54c1606125b05e3cd788ff
MD5 45799f9d2b3c2e352b226cf14b15fba4
BLAKE2b-256 405df0843f8db3226f8bcab5fb6846319e173a0ed8227bed64c78f4db4ef6af5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytwee-0.2.3.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.2.3-py3-none-any.whl.

File metadata

  • Download URL: pytwee-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cecd0cb65a0d96e5bcae63bb964d4e0d53bf5d9d9684e9fc26d47ef3d457262d
MD5 295de12580b7b6c17610de56836c060a
BLAKE2b-256 83ea9bbbaee90e2d47ea717c4f34abb6a3a0741670941a1abe4b152dca44483d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytwee-0.2.3-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