A python wrapper for the ENet library
Project description
pyenet is a python wrapper for the ENet library by Lee Salzman,
It was originally written by Scott Robinson scott@tranzoa.com and is
currently maintained by Andrew Resch andrewresch@gmail.com
This fork is being maintained by the piqueserver team for purposes of
including
patches for bugs found while developing piqueserver, and to provide a
package
on pypi.
License
pyenet is licensed under the BSD license, see LICENSE for details.
enet is licensed under the MIT license, see
http://enet.bespin.org/License.html
Dependencies
Building pyenet requires all the same dependencies as enet plus Cython
and,
obviously, Python.
Installation
From pypi
pip install pyenet
Manually from git
Note: the enet sources are automatically downloaded from
http://enet.bespin.org/
by setup.py.
This version of pyenet requires enet 1.3.
Run the setup.py build:
$ python setup.py build
Once that is complete, install the new pyenet module:
# python setup.py install
Usage
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:
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
pyenet-1.3.13.post3.tar.gz
(13.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyenet-1.3.13.post3.tar.gz.
File metadata
- Download URL: pyenet-1.3.13.post3.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
327d1aec44ee229950b713cb14e6a4d02b557717a7034f70ece41b7f4d462635
|
|
| MD5 |
0fbaef069582b12422bf3eb2cbbb47cd
|
|
| BLAKE2b-256 |
9fcc2d9beaa345a6fb4af37adb7f066b5eefd399f97da1ec5d8f7e038c3db6a0
|
File details
Details for the file pyenet-1.3.13.post3-cp27-cp27m-win_amd64.whl.
File metadata
- Download URL: pyenet-1.3.13.post3-cp27-cp27m-win_amd64.whl
- Upload date:
- Size: 87.0 kB
- Tags: CPython 2.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d83e9c5a0dc90cda36cb7a4c07e8c24e9009ae2e97a12b89167c07c493d034c
|
|
| MD5 |
9299f73a78a7fbe1aeef56cd2f828b86
|
|
| BLAKE2b-256 |
e4bcf8be90ecc5db32f4f0f7004ae1f639e3ada7f1404563ee2b840d61edc8e2
|