Skip to main content

Named Binary Tag (NBT) library

Project description

PythoNBT

PythoNBT is a simple Named Binary Tag (NBT) library for Python capable of reading in both little and big endian formats that are compressed or uncompressed.

Installation

pip install PythoNBT

Usage

Reading java nbt files:

from nbt import NBTReader

with open("myfile.dat", "rb") as f:
    NBTReader.read(f)

Reading bedrock nbt files:

from nbt import NBTReader

with open("myfile.dat", "rb") as f:
    NBTReader.read(f, little_endian=True, compressor=None)

Reading bedrock level file (slight variation on regular bedrock nbt files):

from nbt import BedrockLevel

with open("level.dat", "rb") as f:
    BedrockLevel.read(f)

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

pythonbt-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

PythoNBT-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pythonbt-0.1.0.tar.gz.

File metadata

  • Download URL: pythonbt-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for pythonbt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48bd49684d37db37daa9ac7e6e7ce228d6bf5907a68af6d3a3e2a505d3d317f0
MD5 f1fefd078e4474ebd3b8b9c1d37fbf6e
BLAKE2b-256 46093946b63f78e6f360f4b7efb57ce7a75cfa454d2a8106e82eadc69937124d

See more details on using hashes here.

File details

Details for the file PythoNBT-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: PythoNBT-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for PythoNBT-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bf3ae0407c9dd022de480e8338dfe598e825e31fe3b404275564e5882b6f591
MD5 e92eb47d75576f41664af42da6b451ac
BLAKE2b-256 ad1977b1a11e237c773e9c2bd62c6713df21978b1ef6a3b775478c3e658dec60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page