Skip to main content

Wame

Simple, Pythonic, Pygame Wrapper

  • Latest Version v0.8.0
  • Supports Python 3.7+

Documentation Status

What is Wame?

Wame was created as a backend Pygame wrapper, where all backend (and tedious) code is left in the background. This allows for events to be dispatched in specific event methods rather than in a messy manner like default Pygame and most other engine program loops. This is primarily because handling the game backend and frontend in a singular file (or a couple) can be an eyesore, and Wame fixes this issue.

What are Wame's features?

  • Encapsulates Pygame's backend game programming
  • Dispatches and calls methods needed to render and update game code, while executing events in a structured manner
  • Allows on-demand scene switching (more about this later)
  • Provides basic objects like font rendering (text), drawing, buttons, etc. (a pain to always make on many projects)

How do I use Wame?

  • Install Wame via PyPI: pip install wame-engine
  • Import it into your program using import wame

Documentation

You can find our documentation here.

Getting Started

After installation:

  • Instantiate a new Engine (runs the game loop and dispatches events)
  • Define a new ~Scene subclass (manages your objects and logic)
import wame

class BasicScene(wame.Scene):
    def on_init(self, *args, **kwargs) -> None:
        ...
    
    def on_render(self) -> None:
        ...
    
    def on_update(self) -> None:
        ...

engine: wame.Engine = wame.Engine("Basic Game Window", wame.Pipeline.PYGAME)
engine.register_scene("Basic", BasicScene)
engine.set_scene("Basic")

engine.start()

This will create a fullscreen, black window. You can close it by pressing ALT+F4.

  • If you'd like to see more functional examples, visit our Tutorials section of our documentation

Contributing

Thanks for your interest in contributing to our game engine! Contributions are welcome, as they can only help us get to where we want to see wame go! Whether you want to submit a bug report, fix a bug, add a new feature, remove parts of the program, we welcome your contributions.

How to Contribute

  1. Fork this repository
    • Fork this repository to your own GitHub account by clicking the "Fork" button at the top-right of this page.
  2. Clone your fork
    • Clone the forked repository to your local machine using the following command:
    • git clone https://github.com/your-username/your-fork.git
  3. Create a new branch
    • Before making any changes, create a new branch with a descriptive name for your work/changes. For example:
    • git checkout -b feature-name
  4. Make your changes
    • Implement your changes, whether it's fixing bugs, improving documentation, or adding new features.
    • Be sure to write clear, concise commit messages explaining the changes you've made.
  5. Commit your changes
    • Once your changes are ready, commit them to your local branch:
    • git add .
    • git commit -m "Add feature-name"
  6. Push your changes
    • Push your changes to your forked repository:
    • git push origin feature-name
  7. Create a pull request
    • Open a pull request on the original repository from your fork.
    • Ensure that your pull request explains the purpose of the changes and any relevant context.
    • If applicable, include links to relevant issues.

Reporting Bugs

  • If you find a bug or issue, please open an issue on the Issues page above.
  • Be sure to provide detailed information to help us understand and reproduce the problem.

Feature Requests

  • We welcome suggestions for new features.
  • If you have an idea, please open an issue on the Issues page above to discuss it first.
  • This ensures that we're all on the same page and helps us prioritize improvements.

Thanks for Contributing

Your contributions make this project better and more useful for everyone! Thank you for taking the time to improve this project!

License

This project is licensed under the MIT License. Copyright © 2025 WilDev Studios. All rights reserved.

Metadata

Release files for wame-engine 0.8.0

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

Source distribution (sdist)

Source distribution for wame-engine 0.8.0
File Size Uploaded Provenance Actions
wame_engine-0.8.0.tar.gz 38.5 kB Without provenance Details for wame_engine-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wame-engine 0.8.0
File Interpreter ABI Platform Actions
wame_engine-0.8.0-py3-none-any.whl Python 3 none any Details for wame_engine-0.8.0-py3-none-any.whl

Total release size: 84.2 kB

Release files / wame_engine-0.8.0.tar.gz

Download URL wame_engine-0.8.0.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ce8c45050d3fbac74634457cf3b9764678c66bc2b32e1d7ce18dfc9533ad57b2
BLAKE2b-256 checksum
How to use checksums
d6800032a277c5d9b71914d1bfdbcd90511d9943f8540923b69473c73455f300
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Release files / wame_engine-0.8.0-py3-none-any.whl

Download URL wame_engine-0.8.0-py3-none-any.whl
Size 45.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be5d7c481de0311baac65d97e04509b637f78117db03db350c4413510ddf3979
BLAKE2b-256 checksum
How to use checksums
341ffc65fcce2c6421cbe50fc53a3468e9085268e169d2f5cd9778651fe828bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.4

Security for wame-engine 0.8.0

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