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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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