Skip to main content

No project description provided

Project description

raknet-python

Build Status ChatOnDiscord

Python bindings to rust-raknet native library.

Install

pip install raknet-python

Prebuilds are provided for 64-bit Windows 10, Linux. If a prebuild does not work, please create an issue.

Build

The RaknetClient and RaknetServer classes are JS wrappers for the internal RaknetSocket and RaknetListener classes implemented in Rust in src/. All methods use asynchronous wrappers.

from raknet_python import RaknetServer,RaknetClient

server = RaknetServer("127.0.0.1:19132")
client1 = RaknetClient("127.0.0.1:19132")

client2 = server.accept()
client1.send([0xfe , 0x01 , 0x01 , 0x01])
buf = client2.recv()
assert buf == [0xfe , 0x01 , 0x01 , 0x01]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

raknet_python-0.1.0-cp39-none-win_amd64.whl (497.3 kB view details)

Uploaded CPython 3.9Windows x86-64

raknet_python-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl (596.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.24+ x86-64

File details

Details for the file raknet_python-0.1.0-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for raknet_python-0.1.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 a182ed567fd7bdae6838612b076dfc3c8f9e99490b7c324b39291f717914cf19
MD5 5728663a82fdb8268cd262944d6c0176
BLAKE2b-256 bb9129e39da0df076498efb963d82791d2993986383bf6d4f9bdef0a95fd2cac

See more details on using hashes here.

File details

Details for the file raknet_python-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for raknet_python-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 f170f9c797f2d00bd485f3492f0f40c2304f674e41df97dc02dde78c40c89a47
MD5 85e64f1f70e3b86ec82441c62f055161
BLAKE2b-256 1952939cc6004acca2438d07b95a2c3e4dbe3015c8514aa444fb54e90c11f4c1

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