Skip to main content

xyfny - a z-machine intepreter

This is based closely upon theinternetftw's xyppy.

Where that is geared towards an interactive simulation of a good ol'-fashioned Z-machine experience, this is intended to be plugging into event-driven systems (for instance, chat systems like Slack).

All of the terminal handling is stripped out. Rather, the z-machine runs until it attempts to read input from the user. At that point, it'll exit with an interrupt - unless there is user input pending in its buffer.

The basic gist of how this might be used:

# Initialise
env = make_env(file)
intro = do_step(env, line)

# Output the introductory text to the user
output(intro)

# On receiving an input event from the user:
response = do_step(env, event_text)
output(response)

References

Release files for xyfny 0.0.4

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

Source distribution (sdist)

Source distribution for xyfny 0.0.4
File Size Uploaded
xyfny-0.0.4.tar.gz 33.6 kB Details

Built distribution (wheel)

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

Total release size: 71.8 kB

Release files / xyfny-0.0.4.tar.gz

Download URL xyfny-0.0.4.tar.gz
Size 33.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0d0ee791ef06b04a213721beda64f8f9e0044a47ef0bf846584e0686e54b9f9b
BLAKE2b-256 checksum
How to use checksums
3bb92fa53d9bfaee5a1999502ee36a1a26581219c01fb73edf52e6013a432800
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / xyfny-0.0.4-py3-none-any.whl

Download URL xyfny-0.0.4-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f2b47d86d848c03fcffaf013456398b3b88eebe67cbc7bfacea5b6750b1f4fd
BLAKE2b-256 checksum
How to use checksums
0141c7734e04b2626e809841955058cb16f2cce3619a4c6241dc017371f1d9ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

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