Skip to main content

Unofficial fan project: interactive Pokémon-inspired game library for the terminal, built with Textual TUI

Project description

pytemon

Python Pokemon game library with interactive terminal UI.

Disclaimer: This is an unofficial fan project and is not affiliated with, endorsed by, or connected to Nintendo, Game Freak, or The Pokémon Company. Pokémon and all related names are trademarks of Nintendo / Creatures Inc. / GAME FREAK inc. This project is made for educational and entertainment purposes only, with love for the franchise.

Overview

pytemon is a pure Python library that implements an interactive Pokemon game using the Textual TUI framework. It contains the full game engine — exploration, battles, items, gyms, evolution, and a rich terminal interface.

The robotframework-pokemon sibling project wraps this library as a Robot Framework keyword library.

Setup

cd pytemon/
poetry install

Run the game directly

poetry run python run_terminal.py

Run unit tests

poetry run pytest tests/ --tb=short -v --cov=pytemon --cov-report=term-missing

Project structure

pytemon/
├── pytemon/           # The Python package
│   ├── terminal.py    # Textual TUI app
│   ├── game_state.py  # Central game state
│   ├── exploration.py # Movement and encounters
│   ├── buildings.py   # Pokemon Center, Pokemart, etc.
│   ├── battle/        # Battle UI and actions
│   ├── data/          # Pokemon, move, trainer data
│   ├── engine/        # Core battle engine
│   └── ui/            # TUI mixin modules
├── tests/             # Pytest unit tests
├── run_terminal.py    # Direct launcher
└── pyproject.toml

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

pytemon-0.1.0.tar.gz (157.8 kB view details)

Uploaded Source

Built Distribution

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

pytemon-0.1.0-py3-none-any.whl (171.2 kB view details)

Uploaded Python 3

File details

Details for the file pytemon-0.1.0.tar.gz.

File metadata

  • Download URL: pytemon-0.1.0.tar.gz
  • Upload date:
  • Size: 157.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for pytemon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4f2ac525f3a63784fe2d001668e1c700e96ec01f0cf63fb147363c3313879c1
MD5 e96d9624b351982605df344fb9745c5d
BLAKE2b-256 28931bbdddb6480d611277acd58e4b2ab4b07dd16f22a2b501c69647d154a0fe

See more details on using hashes here.

File details

Details for the file pytemon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytemon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 171.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for pytemon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f742b442451fbdee572e2a915799e4fb3f7f95ac42b311bb9c7da0d12e6444ba
MD5 1343919037cce6772194658202ba6a42
BLAKE2b-256 7953e6ba743fdae5230c9423a5cde7dddee3e4f4bef9cc3c934529165ba51c1c

See more details on using hashes here.

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