Skip to main content

A Python game engine for the browser

Project description

enpyre-logo

Enpyre

A Python game engine in React.
Write python games that run in React applications 👌


build status license


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

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

enpyre-0.0.6.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

enpyre-0.0.6-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file enpyre-0.0.6.tar.gz.

File metadata

  • Download URL: enpyre-0.0.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure

File hashes

Hashes for enpyre-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7740524f8dfd7b4e9f6e1ebcf3275dbba42dd59a967477538888a2c8d5fab9c5
MD5 c9f116e6bd18e76e72ed1ce68e716369
BLAKE2b-256 a59a031eebcfe44eba977fae8e0319dcacd0099e66af468b3a25ae4c04a2e385

See more details on using hashes here.

File details

Details for the file enpyre-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: enpyre-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Linux/5.13.0-1031-azure

File hashes

Hashes for enpyre-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 56ed43e93f2ab031ea4b2c80d62cd63478ec0e389084f1478e2778dcc3e8fd49
MD5 f1a881cd7b845a7b4a987789ce8de3a5
BLAKE2b-256 4478253a90be409a93ee8e3cba5ad0a0f6ed0e6bc36bc2ae721c29347c3b139a

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