{ "info": { "author": "Michael P.", "author_email": "pyronimous@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Games/Entertainment", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flappy\n======\n\n\nFlappy (the name stands for FLash-like APi for PYthon) is a cross platform multimedia library with the API very similar to the ActionScript 3 Flash API. Flappy is built on top of the SDL2_ library and a slightly modified subset of c/c++ code from the OpenFL-Lime_ project.\n\n.. _SDL2: http://libsdl.org\n.. _OpenFL-Lime: https://github.com/openfl/lime\n\nFeatures\n--------\n* Runs on Windows, Linux, Mac OS X\n* GPU accelerated\n* Drawing images, text, shapes, gradients\n* Tile sheet batch rendering\n* Flash-like display list, display objects, containers\n* User input events and other events handling and propagation\n* 3D graphics support\n\nCurrent status\n--------------\n* Alpha version\n* No Python 3.x support\n* No sound playing\n\nInstall binary package\n----------------------\nIn Mac or Linux, try:\n::\n easy_install flappy\n\nFor windows, download the installer (one of Flappy-xxx.win32.exe files) here_\n\n.. _here: http://pypi.python.org/pypi/Flappy#downloads\n\nBuild from source\n-----------------\nTo build Flappy, Cython_ 0.19.1 or above is required. \n\n.. _Cython: http://cython.org/#download\n\nAlso the following libraries needed:\n\n* SDL2\n* freetype 2\n* libpng 1.6\n* libjpeg 6b\n\nYou can either install development versions of these libraries to your system (or already have them installed), and build and install Flappy like this:\n::\n \n python setup.py install\n\nOr you can clone this repository_ to the same directory as Flappy's source directory and build and install with this command:\n::\n \n python setup.py build_extensions_with_waf --use-prebuilt-libs install\n\n.. _repository: https://github.com/pyronimous/flappy_prebuilt_dependencies\n\nQuick example\n-------------\nThis code draws a black-outlined orange circle inside a window sized 400x400 pixels. Each time you click on that circle you'll see the string \"YAY!\" in console output:\n\n::\n\n import flappy\n from flappy.display import Sprite\n from flappy.events import MouseEvent\n\n class Example(Sprite):\n\n def __init__(self):\n super(Example, self).__init__()\n\n circle = Sprite()\n circle.graphics.lineStyle(4)\n circle.graphics.beginFill(0xff8000)\n circle.graphics.drawCircle(200, 200, 100)\n circle.graphics.endFill()\n self.addChild(circle)\n\n circle.addEventListener(MouseEvent.CLICK, self.on_circle_click)\n\n def on_circle_click(self, event):\n print 'YAY!'\n\n if __name__ == '__main__':\n flappy.start(Example, width=400, height=400, title='Example')\n\n.. image:: http://i.imgur.com/wqtfqz2.png\n\nFor the comparison, here is the code_ in ActionScript 3 which does the same.\n\n.. _code: https://gist.github.com/pyronimous/9588523\n \n\nHelp\n----\nFor now, documentation is a stub. But you can take a look at ActionScript3 API reference_ for Flash. Classes and method in packages flappy.display, flappy.events, flappy.geom, flappy.text are very similar to the classes and methods in Flash's corresponding packages.\n\n.. _reference: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/\n\nAlso, see samples:\n\n.. image:: http://i.imgur.com/VVUFH8f.png", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pyronimous/flappy", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Flappy", "package_url": "https://pypi.org/project/Flappy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Flappy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/pyronimous/flappy" }, "release_url": "https://pypi.org/project/Flappy/0.3.7/", "requires_dist": null, "requires_python": null, "summary": "Multimedia library with the Adobe Flash-like API", "version": "0.3.7" }, "last_serial": 1101962, "releases": { "0.3.7": [ { "comment_text": "", "digests": { "md5": "24f00256e686eea8c480f33bcb54b1e1", "sha256": "7e46896264c7ed4252ec8053497cc883f767eb169ad2eacf508b22b445c91957" }, "downloads": -1, "filename": "Flappy-0.3.7-py2.7-linux-x86_64.egg", "has_sig": false, "md5_digest": "24f00256e686eea8c480f33bcb54b1e1", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1716771, "upload_time": "2014-03-15T19:37:46", "url": "https://files.pythonhosted.org/packages/82/d9/52e8410ecc947bf1ef4700a0f7bee61e844b3698de9face4f9534056210c/Flappy-0.3.7-py2.7-linux-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "2a45db2346d26f08420cbe4b79ad37a0", "sha256": "fa81c542e9846782235096bfb5a14488b4d33cf70480b6510f0c7b8224b63d4b" }, "downloads": -1, "filename": "Flappy-0.3.7-py2.7-macosx-10.7-x86_64.egg", "has_sig": false, "md5_digest": "2a45db2346d26f08420cbe4b79ad37a0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1508501, "upload_time": "2014-03-16T09:53:16", "url": "https://files.pythonhosted.org/packages/15/cf/6659ee86bc98e37859c3e3a2004ef70206cad1e33defcacafb5a83185727/Flappy-0.3.7-py2.7-macosx-10.7-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "25a49450b05dd7ba61a6df72f61e4332", "sha256": "150792f0fe35536073fbcf4d7fd492db2a5a384f6691763e6eee7843d71947ca" }, "downloads": -1, "filename": "Flappy-0.3.7.tar.gz", "has_sig": false, "md5_digest": "25a49450b05dd7ba61a6df72f61e4332", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2239525, "upload_time": "2014-03-16T20:57:24", "url": "https://files.pythonhosted.org/packages/20/18/a0bf00d52eb99a04c3ce58e8c64755c5d038472d895bceba4cb6435bab81/Flappy-0.3.7.tar.gz" }, { "comment_text": "", "digests": { "md5": "ee5c1b3880ff58563b18ae81f2ebc91a", "sha256": "f6a5b2aeee8e1eda49dec57da40e132525ea0a34ddafaeff452e4fc471f6c4c3" }, "downloads": -1, "filename": "Flappy-0.3.7.win32.exe", "has_sig": false, "md5_digest": "ee5c1b3880ff58563b18ae81f2ebc91a", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 1265631, "upload_time": "2014-03-14T14:56:07", "url": "https://files.pythonhosted.org/packages/49/35/8d5e87eb23488edec3518c1886c9064292ae7f65c9dd4b296bf5f0aab8dc/Flappy-0.3.7.win32.exe" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24f00256e686eea8c480f33bcb54b1e1", "sha256": "7e46896264c7ed4252ec8053497cc883f767eb169ad2eacf508b22b445c91957" }, "downloads": -1, "filename": "Flappy-0.3.7-py2.7-linux-x86_64.egg", "has_sig": false, "md5_digest": "24f00256e686eea8c480f33bcb54b1e1", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1716771, "upload_time": "2014-03-15T19:37:46", "url": "https://files.pythonhosted.org/packages/82/d9/52e8410ecc947bf1ef4700a0f7bee61e844b3698de9face4f9534056210c/Flappy-0.3.7-py2.7-linux-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "2a45db2346d26f08420cbe4b79ad37a0", "sha256": "fa81c542e9846782235096bfb5a14488b4d33cf70480b6510f0c7b8224b63d4b" }, "downloads": -1, "filename": "Flappy-0.3.7-py2.7-macosx-10.7-x86_64.egg", "has_sig": false, "md5_digest": "2a45db2346d26f08420cbe4b79ad37a0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 1508501, "upload_time": "2014-03-16T09:53:16", "url": "https://files.pythonhosted.org/packages/15/cf/6659ee86bc98e37859c3e3a2004ef70206cad1e33defcacafb5a83185727/Flappy-0.3.7-py2.7-macosx-10.7-x86_64.egg" }, { "comment_text": "", "digests": { "md5": "25a49450b05dd7ba61a6df72f61e4332", "sha256": "150792f0fe35536073fbcf4d7fd492db2a5a384f6691763e6eee7843d71947ca" }, "downloads": -1, "filename": "Flappy-0.3.7.tar.gz", "has_sig": false, "md5_digest": "25a49450b05dd7ba61a6df72f61e4332", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2239525, "upload_time": "2014-03-16T20:57:24", "url": "https://files.pythonhosted.org/packages/20/18/a0bf00d52eb99a04c3ce58e8c64755c5d038472d895bceba4cb6435bab81/Flappy-0.3.7.tar.gz" }, { "comment_text": "", "digests": { "md5": "ee5c1b3880ff58563b18ae81f2ebc91a", "sha256": "f6a5b2aeee8e1eda49dec57da40e132525ea0a34ddafaeff452e4fc471f6c4c3" }, "downloads": -1, "filename": "Flappy-0.3.7.win32.exe", "has_sig": false, "md5_digest": "ee5c1b3880ff58563b18ae81f2ebc91a", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 1265631, "upload_time": "2014-03-14T14:56:07", "url": "https://files.pythonhosted.org/packages/49/35/8d5e87eb23488edec3518c1886c9064292ae7f65c9dd4b296bf5f0aab8dc/Flappy-0.3.7.win32.exe" } ] }