Skip to main content

adventurelib

Build Documentation Status

adventurelib provides basic functionality for writing text-based adventure games, with the aim of making it easy enough for young teenagers to do.

The foundation of adventurelib is the ability to define functions that are called in response to commands. For example, you could write a function to be called when the user types commands like "take hat":

@when('take THING')
def take(thing):
    print(f'You take the {thing}.')
    inventory.append(thing)

It also includes the foundations needed to write games involving rooms, items, characters and more... but users will have to implement these features for themselves as they explore Python programming concepts.

Installing

adventurelib.py is a single file that can be copied into your project. You can also install it with pip:

pip install adventurelib

Documentation

Comprehensive documentation is on Read The Docs.

Metadata

Release files for adventurelib 1.2.1

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

Source distribution (sdist)

Source distribution for adventurelib 1.2.1
File Size Uploaded Provenance Actions
adventurelib-1.2.1.tar.gz 28.6 kB Without provenance Details for adventurelib-1.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 36.3 kB

Release files / adventurelib-1.2.1.tar.gz

Download URL adventurelib-1.2.1.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8772d0d9085abf6d6bb0ddea0aa3d8f8228c1cc8a052ff68cd741af27cfdba8e
BLAKE2b-256 checksum
How to use checksums
62463d95f4e84aaf6cf4eee2385f4de8532d9834051f5863300d48632525bf36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

Release files / adventurelib-1.2.1-py3-none-any.whl

Download URL adventurelib-1.2.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aac1eba3ce841c13c5aa19c94916f6d75ebad9e5ebd5fb50524acd8733b8b432
BLAKE2b-256 checksum
How to use checksums
3744f429f6388d365c7bdb00cbbc0838340b0ebe1a31b0708858dd8c55a7d263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.2

Security for adventurelib 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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