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

License

MIT

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

bzflag-networking-1.0.2.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

bzflag_networking-1.0.2-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file bzflag-networking-1.0.2.tar.gz.

File metadata

  • Download URL: bzflag-networking-1.0.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for bzflag-networking-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3fc65ce9254011fa584720ff293f88993a7d1995d32988d45ec194a2ebcb356a
MD5 f6b2c5df91d80263080c81728c724b2f
BLAKE2b-256 5fdf12477f78737ef39bb463240b5192457c43640382d75323eb2bd5f43d0ca1

See more details on using hashes here.

File details

Details for the file bzflag_networking-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: bzflag_networking-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1

File hashes

Hashes for bzflag_networking-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 272d72d2f9c81002b5100a82bcc6bee75847aa4f38e1f85b60b38616349c5302
MD5 86545127cf3ce2b207cb66f910d6e7ca
BLAKE2b-256 52bb3c10f5616f271c4d27d074e6c8260272982ce677067413e4ad730abbf599

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