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
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
Built Distributions
Hashes for pyenet-1.3.17-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72f426f0d67191fb599b7f334a51455f69940eb92655c2722523f6ff5e4aea4b |
|
MD5 | a13c1b53f8bb0ce7b469032c51ffc6dd |
|
BLAKE2b-256 | c6567a69099fc31afb1f8c95c8515419b6d5a87f831b71a58bdd5a3f060d91ec |
Hashes for pyenet-1.3.17-cp312-cp312-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0dbfae1b9f45da88a252afe4a620c3a118534904bd7cdb7b7bbd26fd497129 |
|
MD5 | 4121838c4dc21234d98e8071b98c9ce9 |
|
BLAKE2b-256 | 3333d88dbaed5c28a82e1ed0db01821d5a4a0ffc352d93868a4e59c21b28292f |
Hashes for pyenet-1.3.17-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f899b46ebe39b5272647367bc7a8d67561bb2c41490243ff964c18a1a9784e6 |
|
MD5 | 2507d034ce2b8e631543538180e32b0a |
|
BLAKE2b-256 | 6cb7e2a6cdb31e64321b06224689111ae1197321d94d2d40e44e7212cda5c028 |
Hashes for pyenet-1.3.17-cp312-cp312-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c0194f67e52983f1f44b53d6cb70417172c45e9137c2d8312f34f6206ed943c |
|
MD5 | a41d59362523b7bb4783ddfcc5389c3a |
|
BLAKE2b-256 | 8f53bded58a853bf32f8c9d72a1fab3a6e634b92f45cdaec3295b84730e5c459 |
Hashes for pyenet-1.3.17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e170c56d9c223c7ea23f56a237298ad4691cc6bdf6f0149728eb4989dec0fff |
|
MD5 | 7cf2248c3ec585db0230a4658166bcbb |
|
BLAKE2b-256 | 9296e83d044c070e386abbd07f445dde42b03c34e9e1c6fb6c2dcf17d22c7d4f |
Hashes for pyenet-1.3.17-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da7759482c6bac8dd63d80f14ed545fe2a31fe71eb9e6311015d5aee5adcba5 |
|
MD5 | 0c0f0b053bbf707e02f1307ff04f9747 |
|
BLAKE2b-256 | 07fac1b622352dbdcff7de6627396f3ad636cb26d53285c26486436bc11cf4a1 |
Hashes for pyenet-1.3.17-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37916f33e9cb107337b11aaf1b62b86acfedb45d2d766393edd93000824057df |
|
MD5 | 4e413a34405b1069bf189a4afef88dc6 |
|
BLAKE2b-256 | b66f1450819ea4929663dd14ea208069877f615dbbd6c197ba3ca9c57d803da5 |
Hashes for pyenet-1.3.17-cp311-cp311-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 388926e42975327f359d40765337b53a91ae1d8f1a98ad0220ff24c4b404ef17 |
|
MD5 | 7f197a268738dcdcd0b1900d4dff05d9 |
|
BLAKE2b-256 | 45dcce2d764573bd79bcd09b628bcf306c16f9ef580ec616052213b35cb9b78b |
Hashes for pyenet-1.3.17-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b21e4e3e0223f625e26b6286962a1ed153c8081c6ea4f82641fe9f285a34f86 |
|
MD5 | cdf4406c751c89f41cd2c218a16cf37e |
|
BLAKE2b-256 | 60757fd1cd36fcad984494c3ad88a053e533af02a675243f2ce4bc4881f13ddc |
Hashes for pyenet-1.3.17-cp311-cp311-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90605e7e30afe33089974463c906d04068c93c0eb6a21143baf9b23e086c6d39 |
|
MD5 | 9556cb85d14547855ff3619bdd984482 |
|
BLAKE2b-256 | 924304b611532dbbe10f5dce12c34a9e3971a4a99322644e41acc1810292a75d |
Hashes for pyenet-1.3.17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74e72182c7406c8f1790445c43140fab2924a54f86965cf4bc03975e3be73ccf |
|
MD5 | ee1613aa7df160c0698b34b45d777644 |
|
BLAKE2b-256 | 7f5d28173b6a913a8782feaa95aac46b7981230b6b63c31a6ef1e238cd3a6693 |
Hashes for pyenet-1.3.17-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b80c6b864582adac44cd5162852c38a20976177732c5998fb6c804d7a575982 |
|
MD5 | f6ac55a1df7436c36892f9d0096072d9 |
|
BLAKE2b-256 | a92038810d568b53589aafbcd6a2d289ba753c3e12d7be84f76e8acad7d7ab71 |
Hashes for pyenet-1.3.17-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ff74c6938c5664b055e16278831d55a1e21385084cd289adee3b66ce3fe4a65 |
|
MD5 | 34ae5998edf1f6b126e61b12b7df3588 |
|
BLAKE2b-256 | 1382dccec19bd8c7599cf9d1396a440884742628a5a6f3ab253a0251c85448f6 |
Hashes for pyenet-1.3.17-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2c94fd75d9408a752c719d83aee2a3d3536ab4b82cb53e81bbbe8cc3b4b29b |
|
MD5 | 0b9ea453fca9f4011a318370ae1a8337 |
|
BLAKE2b-256 | 2f538c2b9afe4804cfea5efd953b215abadf8580e60bca66fdababce7f4aa3cf |
Hashes for pyenet-1.3.17-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f7d98fc758056fb3e99690ea48c7bb304106bbbb251f1c8ef9eef3b490c6a4a |
|
MD5 | 8f7e59555177bdd6679d5eae66f1bf40 |
|
BLAKE2b-256 | c9da0d59685792aea739cb1e361e74fddf6769caf8726528c66cddd273497a06 |
Hashes for pyenet-1.3.17-cp310-cp310-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3924a0f3e70585cc216c3497bc86295ef6d4a9b5da1478b88777d8188999e8 |
|
MD5 | 92abfca69fcdbb22b727cec641878782 |
|
BLAKE2b-256 | f16a95eafdaf0620dba0c1c0d34a76955988262ce8c7ee0b71e83d5c127838a9 |
Hashes for pyenet-1.3.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9190bee9b2b8a6269a33976d229bb97a41e17d5d227b39c29c6d935263c48ac8 |
|
MD5 | 78728709b74bc53d6512384428cf20b1 |
|
BLAKE2b-256 | edbd4e0353f7aa376e4655d4b5849321c0c24212baaf365618cf0ce75d75a384 |
Hashes for pyenet-1.3.17-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 157280ce3e813e73e9bea5266670cb19871eb14d39be83d46e4419323375ed15 |
|
MD5 | f353f82eed29d5964bf96b481b290f7f |
|
BLAKE2b-256 | e4deb3c00cb147b6f0e78b1abaad2e6c221e668ad3e09d7d7ed8b9ea809beeba |
Hashes for pyenet-1.3.17-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c07f38a6bebbdcab28be1610c414369978ca8cd6b9b5a4a944bacabfebc37d5 |
|
MD5 | 8c50f33f9b2edd761ef325ab7e611cd6 |
|
BLAKE2b-256 | e968b620944fb2e4082cbde90810eb7168b2981d541fc5f5b265f1caebcd3aaa |
Hashes for pyenet-1.3.17-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbb2a7f8f142a91b2b764817f50ff2aabec6c8bfd02bb26f767f75b82f795c6f |
|
MD5 | dae979b6531e5db3a60c3208f2dcb5f6 |
|
BLAKE2b-256 | e2714550bec643aa8e08a289b244d8c9e9af57c2b59da8eeeb23944a15d73163 |
Hashes for pyenet-1.3.17-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfbc26e94b53ba9b26f55510ae2b2dde9add2a855011e05189b483b04f2110cb |
|
MD5 | 2f367e11673cc9f0c4a398bc16e2c173 |
|
BLAKE2b-256 | 18acd5d98f2d5e7bcc8bb5026d92fe5352f5ddd942dfa40076c09781983b4a05 |
Hashes for pyenet-1.3.17-cp39-cp39-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e063dbe090f4070a2eb7a5f61674ffa2decdf17d065bb8e30c996bb539f9b3 |
|
MD5 | 7103cfb5ab068f7ad59a0863f19a6a51 |
|
BLAKE2b-256 | 0259791de975c33d6c136a001bab50a3c92443f61d179a44ce690a87e88bbad9 |
Hashes for pyenet-1.3.17-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb46b609404a685c2233f61a8fc96e026c77ba1b7ec737f99e55a984a995183 |
|
MD5 | 03675a23ba10b5f7d319f953cbc1d4b7 |
|
BLAKE2b-256 | e4306a2b90aadd9ee41ca51817421262b0b9f9e75e1d7f06954da6496ad1ea9c |
Hashes for pyenet-1.3.17-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ba92ab4f84bd0029ec0f08ed18d4037ae97de61b9bff47c987c281e5b0c3a0 |
|
MD5 | cfa1082b3bcba70b7d931310ee67c2d7 |
|
BLAKE2b-256 | 469efb4f18747b22411d6efd453941cc2019c8bd3449c3f7b32bf3cd955541a9 |
Hashes for pyenet-1.3.17-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b845846c09446a99578b892491c748877ee17ef3f5ee0ddfd2b1ef437684794 |
|
MD5 | bcf4ae2806a2854c714d4326bccadf5a |
|
BLAKE2b-256 | f028505a74978d3e9d74c4cd1a422760ee03298d7d1e582bcfffb0d1ab1e700b |
Hashes for pyenet-1.3.17-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e03db34b64f263126304ec748f1784a84bd280e309ee963171398d9dad2948fa |
|
MD5 | 24b30fc2a3f6dbbc9fa0e96bdfd29918 |
|
BLAKE2b-256 | b7503d94d1c53d1c8ee083c038a6d5db64b28708a23eeb77e20d2db15fc327f5 |
Hashes for pyenet-1.3.17-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a0e44ee00b6938947f5607def7950618e325f36afddcafb87bb28b42680647 |
|
MD5 | 68f751aab10e54328b00ebe3ef45fa0c |
|
BLAKE2b-256 | 4df6c52e4b13ff083211cd1f90484d938722af15d2c073eb68e877ef66ace41c |
Hashes for pyenet-1.3.17-cp38-cp38-musllinux_1_1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3309a48e0537b8c1c29fc46088ba426e43330a974f277c01a4d847cb31f28aa4 |
|
MD5 | 74f11d25f23f4c3ce1152b0714688e35 |
|
BLAKE2b-256 | 002db7e10c8c8c039eeba4c895337f9ae7fece3e5a394de68b15433e90f66e61 |
Hashes for pyenet-1.3.17-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5235f8f01419253effb8c16e9a6141f86d4adb4513ebe885509ec219828d2fb |
|
MD5 | 3c87e8f251b42f21b72bac7db7c19498 |
|
BLAKE2b-256 | 427c532600859a88299026754e95cc07d2d7e0498bdeaf33be828fce8d171d65 |
Hashes for pyenet-1.3.17-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e1d606b8dd25c98be03f29df3a89ea91bf0a70c88f442aaf510f04b26291931 |
|
MD5 | 2d41cf5c50369a46150d795fdd12ff05 |
|
BLAKE2b-256 | fa83de7293d93b3477eb270ed554a2c7625abfb8a9e46f0596ae7479adad8f07 |