A Python library for reading and unpacking BZFlag network packets
Project description
BZFlag Networking
A Python 3 package for reading and handling BZFlag network packets.
BZFlag Replay files are simply the raw packets stored in a file together, so this library will let you read replay files and unpack them into Python objects that can be serialized into JSON.
import json
from bzflag.utilities.json_encoder import RRLogEncoder
from bzflag.replay import Replay
replay = Replay('my-bz-replay.rec')
with open('my-bz-replay.json', 'w') as json_file:
json_file.write(json.dumps(replay, cls=RRLogEncoder, indent=2))
License
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
bzflag-networking-1.0.1.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for bzflag_networking-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98d5b0d9de1c2a12f1f5ba31513ca84d92218ec5f5aeaabfffda45c005c2f4a5 |
|
MD5 | 75cf6e06428a4454c2ae845f298ad9f3 |
|
BLAKE2b-256 | fee05f81fde36c4546333612d32317194c643cb684d01dba651e4423806dd5af |