A MORE RECENT VERSION IS AVAILABLE! HERE Hello everybody,
I wanted to let you know about my project, a python binding for sfml2. Also written with cython and it was forked from the official python binding written by Bastien LĂ©noard on the 20th November 2011 because I needed some features at once to write my current C++ projects in Python.
It has since then widely improved and I decided to share my work.
The release I'm about to introduce is based on a snapshot of sfml2 which was available on the 20th November 2011 that I used to call sfm1.9. I decided to stay and work with this version because maintaining a binding up-to-date with the very latest changes is time consuming (also because I have projects which depend on the binding and a change made in sfml2 involves a change in the binding which involves changes in all my projects).
This release version is v0.9 and I hope to provide for the next one (v1.0) a binding compatible with the release candidate; I've already started working on it.
Despite its dependency on the snapshot, it provides some features that may interest people.
What has changed since its fork ? (copy-paste from the documentation)
- network module implemented.
- sound module rewrited.
- some current limitation of the module have been fixed such the derivability of sf.Drawable.
- modules are implemented separately; you can import each module independently.
- support cython 0.16 (faster).
- many official examples are available and new examples have been added (such integrating with pyqt4).
- an extra-layer to the sfml has been added to avoid dealing with type and to provide more flexibility
- available trough depot in launchpad for ease of installation.
I suggest you to read the documentation to know more:
http://openhelbreath.net/python-sfml2/0.9/doc/introduction.htmlHow to install ?Just read the doc about compiling and if you are on ubuntu 12.04, packages are available trough a launchpad ppa. Type:
sudo apt-add-repository ppa:sonkun/sfml
sudo apt-get update
sudo apt-get install libsfml2-dev python-sfml2
Notes that the packages provide examples too, you may want to install sfml2-examples or/and python-sfml2-examples, then you just have to type:
sfml2-<examples name>
python-sfml2-<examples names>
For examples:
python-sfml2-pyqt4 # will run script pyqt4.py that use the binding.
sfml2-sound
pyton-sfml2-shader
If you are interested in following the version 1.0 development and having automatic updates, I'll set up another depot named sfml-development with sfml2-rc in and the binding as well.
Links:Main website:
http://openhelbreath.net/python-sfml2/Documentation:
http://openhelbreath.net/python-sfml2/0.9/doc/Downloads:
http://openhelbreath.net/python-sfml2/downloads/ or
https://github.com/Sonkun/python-sfml2/downloadsBug-tracker:
http://openhelbreath.net/python-sfml2/flyspray/Launchpad ppa:
https://launchpad.net/~sonkun/+archive/sfml