Skip to main content

pyda

A custom, high-performance 2D game engine built with C (SDL2 backend) and Python. Zero Pygame dependency—pure raw speed and modular flexibility.

Requirements

  • Python >= 3.8
  • SDL2 development libraries (headers + lib)
    • Linux/Debian/Ubuntu/Termux: libsdl2-dev
    • macOS (Homebrew): brew install sdl2
    • Windows: install SDL2 and set include/lib paths or use vcpkg

Installation (Editable Mode)

pip install --editable .

Or from source:

python setup.py build_ext --inplace
pip install .

Quick usage

import pyda

pyda.init()
# ... use pyda._core, pyda.gameplay, pyda.physics_engine, etc.
pyda.quit()

Core entry points live in pyda._core (re-exported from the top-level package). Other modules are available as:

  • pyda._draw, pyda._font, pyda._image, pyda._mixer, pyda._mouse, pyda._key
  • pyda._rect, pyda._sprite, pyda._time, pyda._transform
  • pyda.gameplay, pyda.physics_engine, pyda.geometry_engine, pyda.collision_engine, pyda.game_utils
  • Helpers: pyda._math, pyda._text, pyda._bytes, pyda._datastruct

Build notes

The C extensions must match the PyInit_* / module names defined in the .c sources. SDL2-dependent modules are linked with -lSDL2.

License

See repository for license information.

Metadata

Release files for dan-pyda 1.0.1

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

Source distribution (sdist)

Source distribution for dan-pyda 1.0.1
File Size Uploaded Provenance Actions
dan_pyda-1.0.1.tar.gz 40.2 kB Without provenance Details for dan_pyda-1.0.1.tar.gz

Release files / dan_pyda-1.0.1.tar.gz

Download URL dan_pyda-1.0.1.tar.gz
Size 40.2 kB
Tags Source
SHA-256 checksum
How to use checksums
28bd55d6f8cac24a1efed4843482a98dc620004a4a851f274b8d3b305287427a
BLAKE2b-256 checksum
How to use checksums
252d2ed6f1c3e29e4c5ddde6c39cb2ebf5460140cdbc03f641593b4dfebaf88b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for dan-pyda 1.0.1

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

1.0.1 This release

1 release file 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