Skip to content
A python wrapper for the ENet library
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Support for socket.send and intercept callback (#4) Jan 21, 2017
enet.pyx Add fast drop option, use default encoding (#9) Mar 15, 2018 updated enet source url (#12) Aug 1, 2017 Support for socket.send and intercept callback (#4) Jan 21, 2017


pyenet is a python wrapper for the ENet library by Lee Salzman,

It was originally written by Scott Robinson and is currently maintained by Andrew Resch

##License pyenet is licensed under the BSD license, see LICENSE for details. enet is licensed under the MIT license, see


Building pyenet requires all the same dependencies as enet plus Cython and, obviously, Python.


The first step is to download the enet sources from and extract it to the enet/ directory in pyenet's source directory. You could also check out the enet source code from their CVS repository.

This version of pyenet requires enet 1.3.

Next step is to run the build:

$ python build

Once that is complete, install the new pyenet module:

# python install


Once you have installed pyenet, you only need to import the enet module to start using enet in your project.

Example server:

>>> import enet
>>> host = enet.Host(enet.Address("localhost", 33333), 1, 0, 0)
>>> event = host.service(0)

Example client:

>>> import enet
>>> host = enet.Host(None, 1, 0, 0)
>>> peer = host.connect(enet.Address("localhost", 33333), 1)

More information on usage can be obtained from:

You can’t perform that action at this time.