Skip to main content

A python wrapper for the ENet library

Project description

# pyenet

pyenet is a python wrapper for the ENet library by Lee Salzman,
http://enet.bespin.org

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
```

## Packaging notes

- update package version in `setup.py`

- set up the venv:

```bash
python3 -m venv venv
source venv/bin/activate
pip install -r dev-requirements.txt
```

- build the sdist: `python setup.py sdist`
- build the bdist wheel:
- ```
sudo docker run -i -t -v `pwd`:/io quay.io/pypa/manylinux1_x86_64 /bin/bash
# from in docker container:
cd /io
/opt/python/cp36-cp36m/bin/pip install -r dev-requirements.txt
```
- upload to pypi: `twine upload dist/*`
- once successful: commit, tag, push to github

## 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:
http://enet.bespin.org/Tutorial.html


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

pyenet-1.3.13.post6.tar.gz (14.3 kB view details)

Uploaded Source

Built Distributions

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

pyenet-1.3.13.post6-cp36-cp36m-win_amd64.whl (82.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

pyenet-1.3.13.post6-cp36-cp36m-manylinux1_x86_64.whl (376.1 kB view details)

Uploaded CPython 3.6m

pyenet-1.3.13.post6-cp35-cp35m-manylinux1_x86_64.whl (370.3 kB view details)

Uploaded CPython 3.5m

pyenet-1.3.13.post6-cp34-cp34m-manylinux1_x86_64.whl (379.3 kB view details)

Uploaded CPython 3.4m

pyenet-1.3.13.post6-cp33-cp33m-manylinux1_x86_64.whl (352.9 kB view details)

Uploaded CPython 3.3m

pyenet-1.3.13.post6-cp27-cp27mu-manylinux1_x86_64.whl (339.3 kB view details)

Uploaded CPython 2.7mu

pyenet-1.3.13.post6-cp27-cp27m-manylinux1_x86_64.whl (339.3 kB view details)

Uploaded CPython 2.7m

File details

Details for the file pyenet-1.3.13.post6.tar.gz.

File metadata

  • Download URL: pyenet-1.3.13.post6.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyenet-1.3.13.post6.tar.gz
Algorithm Hash digest
SHA256 65ebb5b758fecb435e6ff9f470ed8d7193935dbf627e537acf7feaf662110c38
MD5 24820eefc7491d7441d70d925d1222e9
BLAKE2b-256 90e73e620a63ce740246632710b0223dbf315f55a945566a163f1b1bcbba8aa4

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b7f3ef57877d997e5ee9c0dcc5c935376629977dc50a36ea2f088370476b4bc9
MD5 5f8ad7d20309a2fd8fabb7826603f043
BLAKE2b-256 38e5d254203589f116ca936ec1493a4620c9f7d19bbc6657321654801a3aa2b3

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 6c3399b5e56c18b8a8804261c4fc0e65c5dbf5b00714b33d603dac62b3a7e668
MD5 2c0bbbe8dc6303d5ffb8823f4e1d0caf
BLAKE2b-256 611e00eb000486e4c914a269267cebf369a4d2fce7f2debdc4a54d6ea9e41afa

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4dfbeda3218db5c54c57fe04abc040e3baa283718a8e8978ce27ec76171781f9
MD5 4607498f187720e5f81697e01ba45b40
BLAKE2b-256 a7bed371ab3921ac822e105057447094bc19d88cb5b6629af71a96414628bc83

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9d6262be902f42b7e2758710c36413c2a90868db33dfb32e9f697f7982a01fbf
MD5 8d6cfca2f34c256934c4e9fc6590f19b
BLAKE2b-256 25de5ddabb92e95431a4633bc304a7a5dd1bb24e4a543b9a30f410e3233963d5

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp33-cp33m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 814507d00a07652c028fc4f66fe2e7dfb2d2f0fa14edaeb0d95fdf14db96ac4a
MD5 4e2af827ce1cff68d799d90019d6548d
BLAKE2b-256 c925df86850bfd8510c72d2c26b4dc40322dba8e8d7246a2aedadce347729c0a

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5efa4ddf7b249488f454bf6ead8462679f2b47495a60672d9b684a926dc8408f
MD5 01078a9c362c03082b9a02dc583b7f2a
BLAKE2b-256 c8bc2f2bf0d774f81172865b0438f4d827914cdd69f9ad2d14f9680ab8887831

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post6-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for pyenet-1.3.13.post6-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 43356602f9b7ef1908969b6b9223cd44d0831bae08884e433c36d3db3223f3a6
MD5 0890b29db943bd3b2bd337a820a0dd51
BLAKE2b-256 4fa93f954b13d433deb744fdd9a9b2e8968a482fc9098621fb7bd128ea565518

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