A Python cffi port of libtcod.
Project description
About
This is a Python CFFI port of libtcod, this is an offshoot of the python-tdl project and has been made into it’s own package. Both projects are still developed together, and this module provides functions specifically to be used by python-tdl.
This library is hosted on GitHub: https://github.com/HexDecimal/libtcod-cffi
Any issues you have with this module can be reported at the GitHub issue tracker: https://github.com/HexDecimal/libtcod-cffi/issues
python-tdl is a port of libtcod made to be “Pythonic”, you can find it here: https://github.com/HexDecimal/python-tdl
And libtcod is here: http://roguecentral.org/doryen/libtcod/
Installation
The latest Windows installer can be found on PyPI: https://pypi.python.org/pypi/libtcod-cffi
If it’s available you can use pip instead by running the command:
pip install libtcod-cffi
This module can also be manually installed by going into the “setup.py” directory and running the command:
python setup.py install
This will require setuptools which you can find here: https://pypi.python.org/pypi/setuptools It also requires that your Python installation is set up to compile binaries.
Usage
This module was designed to be backwards compatible with the libtcod.py script that was distributed with libtcod. If you had code that runs on the original module you can use this library as a drop-in replacement like this:
import tcod as libtcod
Guides and Tutorials for the original library should also work with this one. When possible, using PyPy will give the best performance, and is highly reccomended.
Requirements
Python 2.7+ or 3.2+
32 bit Windows, 32/64 bit Linux, or Mac OS/X (64 bit architecture)
An up-to-date version of python-cffi: https://pypi.python.org/pypi/cffi
Linux will require libsdl, libpng, zlib, and python-dev packages
License
libtcod-cffi is distributed under the Simplified 2-clause FreeBSD license. Read LICENSE.txt, and the tcod/lib/README’s for more details.
Changelog
- 0.2.2
This module can now compile and link properly on Linux
- 0.2.1
console_check_for_keypress and console_wait_for_keypress will work now
console_fill_foreground was fixed
console_init_root can now accept a regular string on Python 3
- 0.2.0
The library is now backwards compatible with the original libtcod.py module. Everything except libtcod’s cfg parser is supported.
- 0.1.0
First version released
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for libtcod_cffi-0.2.2-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4666610397e5f566d33c3ad6917ae20e5ee26207e8168ad6ffe1121fdb8c630e |
|
MD5 | a4aa5395ec110b1c3c287de31c1cd0fd |
|
BLAKE2b-256 | 5587802ba2c1f82f661d7da990199ecbfbb067d8f692b3a494290d6909871414 |
Hashes for libtcod_cffi-0.2.2-cp33-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd251b8ef918d62c8584705ef5424d91576725e584e7b5ed1605109f661fec7e |
|
MD5 | 2a45d01e7b243fbfcd6c5031c8532a70 |
|
BLAKE2b-256 | d6eea3448d31bb913d338f307357b7b66badbc6ce24c0c24585e274169b07994 |
Hashes for libtcod_cffi-0.2.2-cp32-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 940e70ff10c2e1e8a9ad9a005e5ef734eb10ee12ca7a7790e25820e420840414 |
|
MD5 | 0bb0ec91741aa5ade180e09d965584a0 |
|
BLAKE2b-256 | 5121166cdea16579a4c5df5871b577446d7ddcd1cfa5c25af7a9bc865bac3160 |
Hashes for libtcod_cffi-0.2.2-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3cafa822b9d62ea82bd06a8a194177f9b6ea91140155ae91a77bcde1e8f8278f |
|
MD5 | d94b71db25b718938718485ff89add50 |
|
BLAKE2b-256 | ae9bb5840df2b0227295eab68fb9b4bda771519ec25844668bb6f14170b75206 |
Hashes for libtcod-cffi-0.2.2.win32-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8184895d2ccfb261ca78ca42ac85312de8f9b4fb19fc4d09c8848b5f2db2e61a |
|
MD5 | 166b36a6caf14e04bdc30bf8ea461940 |
|
BLAKE2b-256 | 57754381ff340ac78636bf7c47645b18c63076363bc977da54e73200ea286c8a |
Hashes for libtcod-cffi-0.2.2.win32-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb7682d6f06ca7e1f43e95bc58686b5d54e7778fe241a9a4162797a392381ddc |
|
MD5 | 6fac36ba0cf71eb6491b5875e2e64b37 |
|
BLAKE2b-256 | 1f361bb4d38465781660635a60e55712b89bef597041b814097cc59488449087 |
Hashes for libtcod-cffi-0.2.2.win32-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | b15910d01434f25557e5c2c4f7cf551d7a6ec3ea019f5710cd2f7cbb0e69ba91 |
|
MD5 | ef3db4a90e61f2b308e8c05188961017 |
|
BLAKE2b-256 | 7abd4f136fe6a20239391c14a6ed9d83fb350ead5af4b0ce3c0620f34694436f |
Hashes for libtcod-cffi-0.2.2.win32-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | badc9ef99d06470277f1fc26b44798e8b88ba2867ad6e9321d69fbe9f0f6102e |
|
MD5 | f70fe2b6c3fd7dcadc805be4d2539f51 |
|
BLAKE2b-256 | cd07e85d98e076ba8ea89de7c334e86e923901d0cd95a7b529e84409a27c59aa |