New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pyasge

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyasge

Python bindings for ASGE

  • 2.0.0
  • Source
  • PyPI
  • Socket score

Maintainers
1

PyASGE - Python Bindings for ASGE

CIstatus
docsDocs Actions Status
conda.recipeConda Actions Status
pip buildsPip Actions Status
cibuildwheelWheels Actions Status

A pybind11 module designed to work with the ASGE game engine and built with a CMake-based build system. ASGE is a simple 2D game framework designed to allow rapid prototyping of games. It provides the minimum of fuss when it comes to creating windows and moving sprites around the virtual game-world. Though it had humble beginnings, it's evolved to support a number of additional features over the years.

Prerequisites

On Unix (Linux, OS X)

  • A compiler with C++17 support
  • CMake >= 3.14 or Pip 10+
  • Ninja or Pip 10+

Mac OSX support is working, but not fully tested due to lack of hardware access.

Linux Build Dependencies

  • X11
  • brotli
  • bz2
  • harfbuzz
  • libpng
  • zlib

On Windows

  • Visual Studio 2015 or newer (required for all Python versions, see notes below)
  • CMake >= 3.14 or Pip 10+

Installation

Just clone this repository and pip install. Note the --recursive option which is needed for the pybind11 submodule:

git clone --recursive https://github.com/HuxyUK/pyasge.git
pip install ./pyasge

With the setup.py file included in this example, the pip install command will invoke CMake and build the module as specified in CMakeLists.txt.

Special notes for Windows

Compiler requirements

Pybind11 requires a C++11 compliant compiler, i.e Visual Studio 2015 on Windows. Unlike regular C extension modules, it's perfectly fine to compile a pybind11 module with a VS version newer than the target Python's VS version. See the FAQ for more details.

Runtime requirements

The Visual C++ 2015 redistributable packages are a runtime requirement for this project. It can be found here.

Building the documentation

Documentation for the example project is generated using Sphinx. Sphinx has the ability to automatically inspect the signatures and documentation strings in the extension module to generate beautiful documentation in a variety formats. The following command generates HTML-based reference documentation; for other formats please refer to the Sphinx manual:

  • cmake -G Ninja -H. -DASGE_BUILD_DEMOS=OFF -DASGE_ENABLE_DOXYGEN=OFF -Bbuild -DCMAKE_BUILD_TYPE=Release
  • cmake --build build --config Release -t pyasge_docs

The files will be output to the build/docs/html folder.

License

PyASGE is provided under a MIT License that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Test call

import pyasge
pyasge.INFO("Tis a good day to make a GAME!")
pyasge.ERROR("Oh noooes")

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc