Enpyre
A Python game engine in React.
Write python games that run in React applications 👌
Enpyre is an open-source library to render 2D games made with Python in React with graphics by PIXI.js and the power of Pyodide, WASM, and modern web technologies.
Install and Usage
Enpyre python engine only works inside Pyodide environment.
With Enpyre npm package
Just start a React project and add enpyre package.
Standalone
Start a pyodide environment and install enpyre pip package by micropip:
await pyodide.loadPackage('micropip');
await pyodide.runPythonAsync(`
import micropip
await micropip.install('enpyre')
from enpyre import *
`);
Example games
See examples of usage.
Development
Install Poetry
- OSX/Linux:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - - Windows:
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
Install dependencies
poetry install
Pre commit install
pre-commit install
Run server
./start.sh
Local package
Set you web appliction to install enpyre package from http://localhost:8080/enpyre-0.0.1-py3-none-any.whl
Release files for enpyre 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enpyre-0.0.6.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enpyre-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / enpyre-0.0.6.tar.gz
| Download URL | enpyre-0.0.6.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7740524f8dfd7b4e9f6e1ebcf3275dbba42dd59a967477538888a2c8d5fab9c5
|
|
BLAKE2b-256 checksum How to use checksums |
a59a031eebcfe44eba977fae8e0319dcacd0099e66af468b3a25ae4c04a2e385
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure
|
Release files / enpyre-0.0.6-py3-none-any.whl
| Download URL | enpyre-0.0.6-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56ed43e93f2ab031ea4b2c80d62cd63478ec0e389084f1478e2778dcc3e8fd49
|
|
BLAKE2b-256 checksum How to use checksums |
4478253a90be409a93ee8e3cba5ad0a0f6ed0e6bc36bc2ae721c29347c3b139a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure
|