PySDL2


NamePySDL2 JSON
Version 0.9.16 PyPI version JSON
download
home_pagehttps://github.com/py-sdl/py-sdl2
SummaryPython SDL2 bindings
upload_time2023-06-28 14:38:27
maintainer
docs_urlNone
authorMarcus von Appen
requires_python
licensePublic Domain / zlib
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # PySDL2

[![Tests](https://github.com/py-sdl/py-sdl2/actions/workflows/run_tests.yml/badge.svg)](https://github.com/py-sdl/py-sdl2/actions/workflows/run_tests.yml)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysdl2)
[![PyPI Version](https://img.shields.io/pypi/v/PySDL2.svg)](https://pypi.python.org/pypi/PySDL2)

PySDL2 is a pure Python wrapper around the SDL2, SDL2\_mixer, SDL2\_image,
SDL2\_ttf, and SDL2\_gfx libraries.
Instead of relying on C code, it uses the built-in ctypes module to interface
with SDL2, and provides simple Python classes and wrappers for common
SDL2 functionality.

## Installation

PySDL2 is easy to install and integrate within your own projects.
To install or update to the latest version, simply run one of the
following commands in a terminal:

```bash
# Install latest stable version from PyPI
pip install -U pysdl2

# Install latest development verion from GitHub
pip install -U git+https://github.com/py-sdl/py-sdl2.git
```

**Note**: If installing on Python 3 on a computer where both Python 2 and 3
are installed, replace `pip` with `pip3` in the above commands.

## Requirements

In order for PySDL2 to work, the binaries for SDL2 (and any SDL2 addon modules
you wish to use, e.g. SDL2\_mixer) need to be installed on your system. On
macOS, Windows, and most x86 and ARM64 distributions of Linux, the recommended
way to install the SDL2 binaries is via the `pysdl2-dll` package using pip:

```bash
pip install pysdl2-dll
```

This will install pre-built binaries for all supported SDL2 libraries as
a Python package, which PySDL2 will automatically load if available.
On systems not supported by `pysdl2-dll`, you can install the SDL2 binaries using
your system's package manager (which may be out of date), or alternatively
build and install the latest versions yourself from source.

The current minimum supported versions for each library are listed below:

* **SDL2** >= 2.0.5
* **SDL2_mixer** >= 2.0.1 (for the `sdl2.sdlmixer` module)
* **SDL2_ttf** >= 2.0.14 (for the `sdl2.sdlttf` module)
* **SDL2_image** >= 2.0.1 (for the `sdl2.sdlimage` module)
* **SDL2_gfx** >= 1.0.3 (for the `sdl2.sdlgfx` module)

## Documentation

If you just started with SDL and PySDL2, it is strongly recommended
that you read through the tutorial of the documentation to learn the
basics. You can find the documentation at `doc/html` or online at
<http://pysdl2.readthedocs.org>.

## License

This library is given to the public domain. There are no licensing
restrictions. Please see `doc/copying.rst` for further details.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/py-sdl/py-sdl2",
    "name": "PySDL2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Marcus von Appen",
    "author_email": "marcus@sysfault.org",
    "download_url": "https://files.pythonhosted.org/packages/63/ae/f40e4c4738fb39ce140950ed7d9bc21358826416d91a5426a190c612f789/PySDL2-0.9.16.tar.gz",
    "platform": null,
    "description": "# PySDL2\n\n[![Tests](https://github.com/py-sdl/py-sdl2/actions/workflows/run_tests.yml/badge.svg)](https://github.com/py-sdl/py-sdl2/actions/workflows/run_tests.yml)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pysdl2)\n[![PyPI Version](https://img.shields.io/pypi/v/PySDL2.svg)](https://pypi.python.org/pypi/PySDL2)\n\nPySDL2 is a pure Python wrapper around the SDL2, SDL2\\_mixer, SDL2\\_image,\nSDL2\\_ttf, and SDL2\\_gfx libraries.\nInstead of relying on C code, it uses the built-in ctypes module to interface\nwith SDL2, and provides simple Python classes and wrappers for common\nSDL2 functionality.\n\n## Installation\n\nPySDL2 is easy to install and integrate within your own projects.\nTo install or update to the latest version, simply run one of the\nfollowing commands in a terminal:\n\n```bash\n# Install latest stable version from PyPI\npip install -U pysdl2\n\n# Install latest development verion from GitHub\npip install -U git+https://github.com/py-sdl/py-sdl2.git\n```\n\n**Note**: If installing on Python 3 on a computer where both Python 2 and 3\nare installed, replace `pip` with `pip3` in the above commands.\n\n## Requirements\n\nIn order for PySDL2 to work, the binaries for SDL2 (and any SDL2 addon modules\nyou wish to use, e.g. SDL2\\_mixer) need to be installed on your system. On\nmacOS, Windows, and most x86 and ARM64 distributions of Linux, the recommended\nway to install the SDL2 binaries is via the `pysdl2-dll` package using pip:\n\n```bash\npip install pysdl2-dll\n```\n\nThis will install pre-built binaries for all supported SDL2 libraries as\na Python package, which PySDL2 will automatically load if available.\nOn systems not supported by `pysdl2-dll`, you can install the SDL2 binaries using\nyour system's package manager (which may be out of date), or alternatively\nbuild and install the latest versions yourself from source.\n\nThe current minimum supported versions for each library are listed below:\n\n* **SDL2** >= 2.0.5\n* **SDL2_mixer** >= 2.0.1 (for the `sdl2.sdlmixer` module)\n* **SDL2_ttf** >= 2.0.14 (for the `sdl2.sdlttf` module)\n* **SDL2_image** >= 2.0.1 (for the `sdl2.sdlimage` module)\n* **SDL2_gfx** >= 1.0.3 (for the `sdl2.sdlgfx` module)\n\n## Documentation\n\nIf you just started with SDL and PySDL2, it is strongly recommended\nthat you read through the tutorial of the documentation to learn the\nbasics. You can find the documentation at `doc/html` or online at\n<http://pysdl2.readthedocs.org>.\n\n## License\n\nThis library is given to the public domain. There are no licensing\nrestrictions. Please see `doc/copying.rst` for further details.",
    "bugtrack_url": null,
    "license": "Public Domain / zlib",
    "summary": "Python SDL2 bindings",
    "version": "0.9.16",
    "project_urls": {
        "Download": "https://pypi.python.org/pypi/PySDL2",
        "Homepage": "https://github.com/py-sdl/py-sdl2"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "63aef40e4c4738fb39ce140950ed7d9bc21358826416d91a5426a190c612f789",
                "md5": "b497f7f3562b665eb7c2c418ce701f5c",
                "sha256": "1027406badbecdd30fe56e800a5a76ad7d7271a3aec0b7acf780ee26a00f2d40"
            },
            "downloads": -1,
            "filename": "PySDL2-0.9.16.tar.gz",
            "has_sig": false,
            "md5_digest": "b497f7f3562b665eb7c2c418ce701f5c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 773537,
            "upload_time": "2023-06-28T14:38:27",
            "upload_time_iso_8601": "2023-06-28T14:38:27.305926Z",
            "url": "https://files.pythonhosted.org/packages/63/ae/f40e4c4738fb39ce140950ed7d9bc21358826416d91a5426a190c612f789/PySDL2-0.9.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-28 14:38:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "py-sdl",
    "github_project": "py-sdl2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "appveyor": true,
    "lcname": "pysdl2"
}
        
Elapsed time: 0.08347s