Skip to main content

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))



Project details

Download files

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

Files for bzflag-networking, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size bzflag_networking-1.0.2-py3-none-any.whl (29.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size bzflag-networking-1.0.2.tar.gz (11.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page