Skip to main content

Panda3D BAM file parser library

Project description

p3bamboo

PyPI version

p3bamboo is a Python library that gives you full access to a Panda3D BAM file's inner structure.

Getting Started

Simply install p3bamboo using pip:

python -m pip install p3bamboo

Loading a BAM file is very simple:

from p3bamboo.BamFile import BamFile

bam = BamFile()

with open('myModel.bam', 'rb') as f:
    bam.load(f)

Writing out a BAM file is also easy:

with open('newModel.bam', 'wb') as f:
    bam.write(f)

To automatically deserialize BAM objects, you must register your own custom BAM object types. For example, to register an object type named Texture:

from p3bamboo.BamFactory import BamFactory
from myproject.Texture import Texture

BamFactory.register_type('Texture', Texture)

If you register your object types properly and load a BAM file afterwards, you'll be able to access your objects using bam.object_map.

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

p3bamboo-1.0.9.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

p3bamboo-1.0.9-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file p3bamboo-1.0.9.tar.gz.

File metadata

  • Download URL: p3bamboo-1.0.9.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for p3bamboo-1.0.9.tar.gz
Algorithm Hash digest
SHA256 dbbc3d036c151ea455c139deb0a48d00d566a4e8b482942e7613ab226dd76a8a
MD5 e0aea15f14dca82fd866ff324f76675c
BLAKE2b-256 ebe332e1b4fef282927100a08300b238db222554ae30ef7e72251a1da8c63252

See more details on using hashes here.

File details

Details for the file p3bamboo-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: p3bamboo-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for p3bamboo-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 657407c8421574924bb6069127dd90c73a081d63fbc1625c0b2f651409a037ce
MD5 33c84e4d24dcd7237b2bc81bc4893927
BLAKE2b-256 09fa2f9cd9328ea5d8b9b711effea9daa4d0afb3560c4422555cde7686edffa2

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