Skip to main content

Wanty (Python prototype)

[!WARNING] This is a somewhat academic reference implementation. Not production ready.

This is a proof of concept for the CAFFO: Capability-Affordance Decision Process, a game NPC AI architecture inspired by utility maximizers, which lets entities do things in the world according to their own ability, scoring them by their needs.

In nerd terms, it solves the dialectic between

  • Capabilities - what an entity can actually do intrinsically (walk, fly, swim)
  • Affordances - what an environment tells an entity it can do extrinsically (hunt a person, forage a bush, leap a ledge)

This is because CAFFO entities:

  1. sense affordances in the environment
  2. cogitate possible plans from those affordances and commit intention to one
  3. sequence tasks based on the intent
  4. execute a task by deriving a task-oriented action (TOA) object every timestep.

The TOA is something generic like "move towards point in space" or "eat from object reference", but each entity can process it its own way. Birds "move" by flying, land animals "move" on the ground at different speeds, so on.

Example

The example shows a simple 2D roguelike-esque grid world, where agents can move around, eat food to not starve to death, and greet each other to not feel lonely. Which actions they prioritize is dynamically weighted based on their needs, which you can observe in real time through the cogitation scoring part of the observation panel in the example.

python -m pwanty

[!NOTE] The demo uses ANSI escape codes to provide a text interface view of the world. Make sure your terminal supports those.

Licensing

Uses the MIT License.

©2026 Gustavo Ramos Rehermann (wallabra).

Metadata

Release files for proto-wanty 0.3.2

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

Source distribution (sdist)

Source distribution for proto-wanty 0.3.2
File Size Uploaded Provenance
proto_wanty-0.3.2.tar.gz 16.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for proto-wanty 0.3.2
File Interpreter ABI Platform
proto_wanty-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 46.0 kB

Release files / proto_wanty-0.3.2.tar.gz

Download URL proto_wanty-0.3.2.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e18713759479ef58e1388d33ace7dbfe6f8e2511dd045ec12b64d94b04ce7f1a
BLAKE2b-256 checksum
How to use checksums
a1b2a6eba9ef8b6cade22336ba7b6ae4d2c5880c503962e0a3cbee2a612b10ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / proto_wanty-0.3.2-py3-none-any.whl

Download URL proto_wanty-0.3.2-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd109f84eb9be0c1eb4bc8bb377016f00f783ccdbdc88aa3332ea3970013dbe6
BLAKE2b-256 checksum
How to use checksums
a6a56881ca76d7d5053456c73ed4fdf8dea4d2eeb182c05afb1ce811b8c93e06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for proto-wanty 0.3.2

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.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files No provenance

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