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

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

  • 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.13.post7.tar.gz (745.1 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.post7-cp37-cp37m-win_amd64.whl (86.7 kB view details)

Uploaded CPython 3.7mWindows x86-64

pyenet-1.3.13.post7-cp37-cp37m-win32.whl (69.0 kB view details)

Uploaded CPython 3.7mWindows x86

pyenet-1.3.13.post7-cp37-cp37m-manylinux1_x86_64.whl (364.0 kB view details)

Uploaded CPython 3.7m

pyenet-1.3.13.post7-cp36-cp36m-win_amd64.whl (86.9 kB view details)

Uploaded CPython 3.6mWindows x86-64

pyenet-1.3.13.post7-cp36-cp36m-win32.whl (69.0 kB view details)

Uploaded CPython 3.6mWindows x86

pyenet-1.3.13.post7-cp36-cp36m-manylinux1_x86_64.whl (366.6 kB view details)

Uploaded CPython 3.6m

pyenet-1.3.13.post7-cp35-cp35m-win_amd64.whl (82.6 kB view details)

Uploaded CPython 3.5mWindows x86-64

pyenet-1.3.13.post7-cp35-cp35m-win32.whl (63.9 kB view details)

Uploaded CPython 3.5mWindows x86

pyenet-1.3.13.post7-cp35-cp35m-manylinux1_x86_64.whl (360.9 kB view details)

Uploaded CPython 3.5m

pyenet-1.3.13.post7-cp34-cp34m-manylinux1_x86_64.whl (363.2 kB view details)

Uploaded CPython 3.4m

pyenet-1.3.13.post7-cp27-cp27mu-manylinux1_x86_64.whl (331.4 kB view details)

Uploaded CPython 2.7mu

pyenet-1.3.13.post7-cp27-cp27m-manylinux1_x86_64.whl (331.4 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7.tar.gz
  • Upload date:
  • Size: 745.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7.tar.gz
Algorithm Hash digest
SHA256 a36ed3ab9ddad25dc5416fa5223830f7f0ae628af986a4045def103057921ebf
MD5 53bb234276ff806d4c93a4116ff9d072
BLAKE2b-256 53b4b4edaf23cab1a065cfa2b5020f0352a9f0e1067eb9eb1219a8dd2516b53f

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post7-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyenet-1.3.13.post7-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 86.7 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f2009f79ddbad08c835a4a70295341740b0a43c8c4c368c772c34cfa5e5c1c69
MD5 fed1ae2f119b880797e39b501d0ee668
BLAKE2b-256 7513946ac8439991d1d423bd64db93ceb74e5c709d210b01d8b5ae860d810f23

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post7-cp37-cp37m-win32.whl.

File metadata

  • Download URL: pyenet-1.3.13.post7-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 69.0 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 7b762593dcc2f3545f1ee4b87dc10928a94754d959fdb604f3b556931301a95d
MD5 8cc033dce8f5a44e0851301cc75b7c92
BLAKE2b-256 14d3354c423fe6895c21592a79f87e584be7536e62a7821041c8a284ed06e5a1

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post7-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pyenet-1.3.13.post7-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 364.0 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9b7be1cb48ccb40fc68a95b4fd6feaaea1cbdc9e431689516dc99ce8d8ba9c42
MD5 7018dce909dabc06e3a47dec61ab72fd
BLAKE2b-256 030241c9dd5134057f5de4494ff8fde8dbb174a76d23958b8993ce6af0a52b73

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 86.9 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 94748e471f3da960d6cb6a077ba8d262f001da9fb86e95cff56cd7312b457183
MD5 c4d14f46ab98ecc50c4861d289889238
BLAKE2b-256 6ceab31f31b4925b7eda1afa8b317b94a225a11ae19da0551c39de15f2681c67

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post7-cp36-cp36m-win32.whl.

File metadata

  • Download URL: pyenet-1.3.13.post7-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 69.0 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 65a3e21234ead54e75c26c3fb4849205004c45d3eea41310efda4d38c50cd95d
MD5 5f6446e7a07fa86f7bb2c27110d9fcf6
BLAKE2b-256 ac3febb98ab1feb49612a282ff507bac381268e25b8c32205c2b5c19863a79ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 366.6 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e01dc4f8083f814e295ec94c4ae2ef20f079b7c991a7b032dd3dbf1faddff479
MD5 e79adef358291a1f0069331e43eea5f5
BLAKE2b-256 b60448d24abe4ea99eee73581dc30800d985d0c8ad35fa04f8e7b90774d0d959

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post7-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyenet-1.3.13.post7-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 82.6 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 ef15cc758004cc81eb149df58fcfbfd45382102ddd98cfc7b5403f27cbe96b91
MD5 081f98b4e741f24ef83982e287b342ea
BLAKE2b-256 5ecc61998c4ce1a020991429ccaae008c69736971a776a5b1214bd1dd459836d

See more details on using hashes here.

File details

Details for the file pyenet-1.3.13.post7-cp35-cp35m-win32.whl.

File metadata

  • Download URL: pyenet-1.3.13.post7-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 3b64132c42ca77998ccde11c694e6f58fd76da7d0ebee3d4e9adbe864e33742f
MD5 d10dc6551ef881c2234431af59e814cd
BLAKE2b-256 abdc4514bc8e3e5f01da8b45f21b6f2d7edbe6ee3ddf5fa3fd26fc55d226be47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 360.9 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 54789436cffc3b01d04eb031fefb63286cf69970768ec0ed9a74f434d9e52046
MD5 ed1d9d7e74bd963f54fd807303c51eec
BLAKE2b-256 521423aa802c36869fc261fbc1fbef786979dbcfb1417b8fc0584f4965a6850a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 363.2 kB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a2b5efd29abe3cf6023c8a62db8509c48b9a432d8313a3c1871a26b63a690b96
MD5 ac88de557ba23745daa5765c2e2f5da3
BLAKE2b-256 20353f169fbaab490d8262966d6d2ae471cdaf7ac5fb3e34e7e0976aa1981921

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 331.4 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 519b485ae48a37153bdf28fb5d24744fe3a2dc14e0317592c6feb43616dc2fe5
MD5 52dbbc1cb992421b0a5192cc58a94c2f
BLAKE2b-256 9ca5c01fec3c0ddfd4758204d4c222109c160985dd28f39f4a504bab3e3fdfc3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyenet-1.3.13.post7-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 331.4 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyenet-1.3.13.post7-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 432b60647ed30cec39f361ef496ddc25b50353719b48144346440ad6b0b44510
MD5 68382bdb11d37ba461485a48b3cbbd8f
BLAKE2b-256 4c1e2f5b745108ec9703de6f7d633e4529a0fca043ff9b83d67f2d00dc76d833

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