Skip to main content

A Python cffi port of libtcod.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

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 libsdl1.2, libsdl1.2-dev, libpng, zlib, libffi-dev, 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.4
  • Compiler will now use distribution specific SDL header files before falling back on the included header files.

0.2.3
  • better Color performance

  • parser now works when using a custom listener class

  • SDL renderer callback now receives a accessible SDL_Surface cdata object.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libtcod-cffi-0.2.4.zip (1.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

libtcod_cffi-0.2.4-cp34-none-win32.whl (1.6 MB view details)

Uploaded CPython 3.4Windows x86

libtcod_cffi-0.2.4-cp33-none-win32.whl (1.6 MB view details)

Uploaded CPython 3.3Windows x86

libtcod_cffi-0.2.4-cp32-none-win32.whl (1.6 MB view details)

Uploaded CPython 3.2Windows x86

libtcod_cffi-0.2.4-cp27-none-win32.whl (1.6 MB view details)

Uploaded CPython 2.7Windows x86

libtcod-cffi-0.2.4.win32-py3.4.exe (1.8 MB view details)

Uploaded Source

libtcod-cffi-0.2.4.win32-py3.3.exe (1.8 MB view details)

Uploaded Source

libtcod-cffi-0.2.4.win32-py3.2.exe (1.8 MB view details)

Uploaded Source

libtcod-cffi-0.2.4.win32-py2.7.exe (1.8 MB view details)

Uploaded Source

File details

Details for the file libtcod-cffi-0.2.4.zip.

File metadata

  • Download URL: libtcod-cffi-0.2.4.zip
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for libtcod-cffi-0.2.4.zip
Algorithm Hash digest
SHA256 bd5ed2a596c5f71e85cecde6d7c41592e8bfed60fe9f7b9d7d842f41b819ca7b
MD5 0d9d245f9812d7ddd2f77a3db0a8c973
BLAKE2b-256 78bd5722f0d53b929a464c5b2867496fdf4a890a8f00de616acadbbbc3a7872c

See more details on using hashes here.

File details

Details for the file libtcod_cffi-0.2.4-cp34-none-win32.whl.

File metadata

File hashes

Hashes for libtcod_cffi-0.2.4-cp34-none-win32.whl
Algorithm Hash digest
SHA256 e83c6be45c20555b0a8a6284752a15eddc4ddb737ff147f132a04e59b093a067
MD5 42b6a6914a478971cfdc97be4c7d45a3
BLAKE2b-256 fdef22dd85fb5f059fe5f23e2d0d447c4bb149874064439dc987c6458c726c8c

See more details on using hashes here.

File details

Details for the file libtcod_cffi-0.2.4-cp33-none-win32.whl.

File metadata

File hashes

Hashes for libtcod_cffi-0.2.4-cp33-none-win32.whl
Algorithm Hash digest
SHA256 d61a244f4ac6d244ba46b1769780903e434e90f5368a037d58eddffb6e111fea
MD5 87b37df3d0e53e9952efcc891490b082
BLAKE2b-256 557beaadf0dc93aa0e3977ffb50a371e65faf03b1607cbccf390141063500de3

See more details on using hashes here.

File details

Details for the file libtcod_cffi-0.2.4-cp32-none-win32.whl.

File metadata

File hashes

Hashes for libtcod_cffi-0.2.4-cp32-none-win32.whl
Algorithm Hash digest
SHA256 57fccbb9fd51201236b991f15f355a591068b0b588c5ef414350f161dede0baa
MD5 5c64268fae7c474c4e2319df280bb937
BLAKE2b-256 548b4a832c12f78b81d272c6d2da94104ea9a5651622382a5de0f50e4c06e3db

See more details on using hashes here.

File details

Details for the file libtcod_cffi-0.2.4-cp27-none-win32.whl.

File metadata

File hashes

Hashes for libtcod_cffi-0.2.4-cp27-none-win32.whl
Algorithm Hash digest
SHA256 605e441a6d0c65f40dca64f545e91ccf5e913a85b2870ef086a3349b39b4ece5
MD5 24577811f359c8e75b74be78605e378e
BLAKE2b-256 081c425e636e0f59c9191f78673eaf3c27b3f2901112d42eac8ec670dd59e1fb

See more details on using hashes here.

File details

Details for the file libtcod-cffi-0.2.4.win32-py3.4.exe.

File metadata

File hashes

Hashes for libtcod-cffi-0.2.4.win32-py3.4.exe
Algorithm Hash digest
SHA256 bd501ba3e36342ea3d9be2f7b5ae2b537f88a2982a1ec1135980a52283e371ee
MD5 62fd3bf120bd46f445ff26795d1e6b7d
BLAKE2b-256 d7c1c8c480a113e46a9f83b5d26cc6f37b5c2e92c354da9aa1508dc1ef57a89b

See more details on using hashes here.

File details

Details for the file libtcod-cffi-0.2.4.win32-py3.3.exe.

File metadata

File hashes

Hashes for libtcod-cffi-0.2.4.win32-py3.3.exe
Algorithm Hash digest
SHA256 ce14fefd66e5a877ac09a9d8aff48ad8727c019fe555699bc5b8cd57504673c6
MD5 b655144d8f49556aebedae4545d64953
BLAKE2b-256 52512a1b6e65025c63da0896b215c03fa453246adbef7c5a25baa33de374f50c

See more details on using hashes here.

File details

Details for the file libtcod-cffi-0.2.4.win32-py3.2.exe.

File metadata

File hashes

Hashes for libtcod-cffi-0.2.4.win32-py3.2.exe
Algorithm Hash digest
SHA256 c0630c7f425ab3305a2faa6b9f45e38cc993841e4ac321da944c0fd0989a60ba
MD5 0472d6e9b2b0314360adf3c1d88f862a
BLAKE2b-256 6d1e5488a23788ac41e576adbebe7ce57c9e16b42ee93b378ed80fbdbb27ba52

See more details on using hashes here.

File details

Details for the file libtcod-cffi-0.2.4.win32-py2.7.exe.

File metadata

File hashes

Hashes for libtcod-cffi-0.2.4.win32-py2.7.exe
Algorithm Hash digest
SHA256 a1fb89e44c9b5548ba6321487f5cfbc28060bd1d0626397aabb6c500d4ab0ba6
MD5 4d3e3ff50ceb0ba7a7a38babed928d74
BLAKE2b-256 4c13771cbb2cf83396beec913334071c658cd0324674fc7768f6e03795dfcf8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page