Skip to main content

A python wrapper for the ENet library

Project description

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

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

  • create a virtualenv (python3 -m venv venv && source venv/bin/activate)

  • install the requirements: pip install -r dev-requirements.txt

  • build the source dist: python setup.py sdist

  • make sure docker is installed and running and you re on a 64bit linux machine

  • build the binary dists: ./scripts/build_packages.sh

  • upload to pypi: twine upload dist/* wheelhouse/pyenet*

  • 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.14.tar.gz (786.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.14-cp38-cp38-manylinux2014_x86_64.whl (420.9 kB view details)

Uploaded CPython 3.8

pyenet-1.3.14-cp38-cp38-manylinux2010_x86_64.whl (464.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

pyenet-1.3.14-cp38-cp38-manylinux1_x86_64.whl (464.5 kB view details)

Uploaded CPython 3.8

pyenet-1.3.14-cp37-cp37m-win_amd64.whl (87.2 kB view details)

Uploaded CPython 3.7mWindows x86-64

pyenet-1.3.14-cp37-cp37m-win32.whl (69.3 kB view details)

Uploaded CPython 3.7mWindows x86

pyenet-1.3.14-cp37-cp37m-manylinux2014_x86_64.whl (389.3 kB view details)

Uploaded CPython 3.7m

pyenet-1.3.14-cp37-cp37m-manylinux2010_x86_64.whl (416.4 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

pyenet-1.3.14-cp37-cp37m-manylinux1_x86_64.whl (416.4 kB view details)

Uploaded CPython 3.7m

pyenet-1.3.14-cp36-cp36m-win_amd64.whl (87.4 kB view details)

Uploaded CPython 3.6mWindows x86-64

pyenet-1.3.14-cp36-cp36m-win32.whl (69.4 kB view details)

Uploaded CPython 3.6mWindows x86

pyenet-1.3.14-cp36-cp36m-manylinux2014_x86_64.whl (389.1 kB view details)

Uploaded CPython 3.6m

pyenet-1.3.14-cp36-cp36m-manylinux2010_x86_64.whl (416.3 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

pyenet-1.3.14-cp36-cp36m-manylinux1_x86_64.whl (416.3 kB view details)

Uploaded CPython 3.6m

pyenet-1.3.14-cp35-cp35m-win_amd64.whl (82.7 kB view details)

Uploaded CPython 3.5mWindows x86-64

pyenet-1.3.14-cp35-cp35m-win32.whl (64.1 kB view details)

Uploaded CPython 3.5mWindows x86

pyenet-1.3.14-cp35-cp35m-manylinux2014_x86_64.whl (387.3 kB view details)

Uploaded CPython 3.5m

pyenet-1.3.14-cp35-cp35m-manylinux2010_x86_64.whl (414.6 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

pyenet-1.3.14-cp35-cp35m-manylinux1_x86_64.whl (414.6 kB view details)

Uploaded CPython 3.5m

File details

Details for the file pyenet-1.3.14.tar.gz.

File metadata

  • Download URL: pyenet-1.3.14.tar.gz
  • Upload date:
  • Size: 786.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14.tar.gz
Algorithm Hash digest
SHA256 9d0f73db413fef67a18d5fda2f8d135ac4d126e46fe0929dca897b2a08a293e7
MD5 b620b5a1a0a51216785b784ab8cf0a53
BLAKE2b-256 05a4e3caf5812aa088d1f32f4c58088b489d6e29be8010b8ae7f9972f06d7668

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp38-cp38-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 420.9 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7ec069663ddb17d38cf98b26776a103fe06ae022f47c50c2caeeefdd5ae2fe44
MD5 b3d264a3886a14f403c85a2d9123c1fa
BLAKE2b-256 65d6ddc2dfac7d83ccd524795e58d3a5ac74d4f3aeac976565bc2c01b2c7c421

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 464.5 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ec94e16619dafd8d13c479d64c71e659f0fe2d23feda25190dc4cd7795bdde81
MD5 9ca36571f72274e67ebba0fa37404daf
BLAKE2b-256 ab922bcd24b53813e1e64cc049ac9a84b4ff733ec63768ea2b42f92550e2c660

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 464.5 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0866a37d6350a2cd62187bbaab373113cfcffea543b8cf24a56deba4810891cc
MD5 138b4ef2da9503dd44ee44d0074452be
BLAKE2b-256 e530bec854badf43b1ab98b2b15aaacb0ef95d77a9dffedad6971c9166b1a0f9

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 87.2 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 79dd59f0b094a8a17d11a9aadc5d5f73e41f496f33edc80c00892b29b3cce1d7
MD5 f341f545e71adfae87437ad2f3a136f8
BLAKE2b-256 570fd3356ae6becdc131a9a57576654f766b5def60bc55f61aeb6131c57a3259

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp37-cp37m-win32.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 69.3 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 59413af94717a07ff00ae433cd611a62d44034d388393c31f05761611e145dbc
MD5 ba4050b947e40c1e6204a9d8d2d401bd
BLAKE2b-256 b8c3645388247091731bb287b232c394006466b1921337548f8e1b70c74f2375

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp37-cp37m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 389.3 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 185de10d18fb4a5ad77188561caa1e1f75df42c13d7ca61cb8f313a4e38ebb46
MD5 feb854671d9e9ba555f4fedf30001161
BLAKE2b-256 ace3022a18eb0f601125fcfcb17faa6c6bdc2a457a05bed7d8aaca1a32fa11ec

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 416.4 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d13ddaa870c4c3e1a95431833cd93b67f6bcb92f42038fa870be9d62241ccbf1
MD5 fc4a96019c1e19b3a2cf67c673e2dea1
BLAKE2b-256 a25f6a3dd3a19d99e1bb6abbdc4669c87cf157d9acb5c653d4933964b8b274b6

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 416.4 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 67a9b07af5f854ef5706124d823f8ef5942c932b2c9b0b4cd9e597cd4b22564c
MD5 05e64a249c0301b9dfbf769b380c4ccd
BLAKE2b-256 f8d36731a09c820d43b3698d59d4c9443ee06ffcf5079f9045a37ba8d2a65a6d

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 87.4 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 fd2994b635fecfe50ed02ced82e390b4e5519e44b0fbf5d9256f518531d9c757
MD5 d3908229f4af13ac3dd5fcbc80fbe19c
BLAKE2b-256 6f8324836b4cc8fac59f068824602067824a152eed30ba429daae1a4d3393919

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp36-cp36m-win32.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 69.4 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 290dbf565da53ee675adb21ecd3211219a0642dd9aba16e1c59410c2dddf56be
MD5 5e70fe89f3d2a4485ec4ec9b057a3b4b
BLAKE2b-256 ed347c14f7b43e3086479e0c072203602d7cef132062ccf0b38b6a0e9af845c6

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp36-cp36m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 389.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4c88201cbe3553adf2a6675efb09eaedd4e9f63b835e4be78aaa56a78ee09901
MD5 00cd948ddfccfa4777c933c7c16329b2
BLAKE2b-256 cc3bd2cadde8b2b21727fd3b8027f0a58f655a14a4b90cd970e7df8e0d88bf27

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 416.3 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 375cd85f67b357432e9ebb17bd7e6e5e7715edebc2fe32e97cd85cb44cf0425d
MD5 bf14e0605bb7bc3a5530d1fb90d5fae5
BLAKE2b-256 9d6e6f42550dcd148adeadbd316a3ad436212c9efd58b50d9b4e078a159cf534

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 416.3 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4d3df70ec7828a296e6e1ffb76c1016520d7f24779f458bd70e527d4121ca4ef
MD5 c0aae7d13025e7b99d2458313394d032
BLAKE2b-256 5fec84d17e119d15c5e71ea25a1cdbd95c4c26d672b8deafea516f364778ede9

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 82.7 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 902395658e6ec77c75240582107e895f2d0e5fe6cdff2a490938cdaf738ef702
MD5 198e9d83cbb15ef1497d66b0e3394ac2
BLAKE2b-256 eb4e91c29b9bef6d8c7e0004b240e7b3e2afa05a6498ca41321a933d7e470e1e

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp35-cp35m-win32.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 64.1 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 a38803fbabce4f6136b8f53e3a1eee238a59575bb5c9da18a0232473095c22d3
MD5 a007a6ac504e9cce596cdb0e1e53418a
BLAKE2b-256 1c22be3ee4dd3902114baa8dd1ab3b84f3608c6d8fdda15766537e8749c4a9cb

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp35-cp35m-manylinux2014_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp35-cp35m-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 387.3 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9f9af67beaa2a0074148ae52e385ffcd5ea4d0b99ab7313bebd7bfdcc73cf3a9
MD5 352ba4aa1f1cfc413cd9a78aaf1c264f
BLAKE2b-256 7bd6b70a6bab92fa3260bfa37de55f4bfcb27f53ad6c6a33b4e78b6ba9f4c983

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 414.6 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4d4136a3353dd66312714388805a01f60d072475acf473566c81a121cfb10fa8
MD5 6b84cc8c9ada315a479b95389fc99ca1
BLAKE2b-256 2b88ea9eeb6afb6244380bd976c56a254988354d22ab22eaa7f4f116793dd6c8

See more details on using hashes here.

File details

Details for the file pyenet-1.3.14-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.14-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 414.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3

File hashes

Hashes for pyenet-1.3.14-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e26b6146a3b49c4b8d8f7053aed81421c0dccd3293fc12dc28ce5e4a88cbd75b
MD5 0b7e56298ae26d2b02f5e0c2bbc07cc7
BLAKE2b-256 30512ac16e67810a8d5c4df3640c37cb3fbc85894aacb758ee64b7379bc3e3a0

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