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.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

p3bamboo-1.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: p3bamboo-1.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for p3bamboo-1.0.3.tar.gz
Algorithm Hash digest
SHA256 aa4c0b9bd20ce125f562c8641810cc2fd7dcc4a36ed4b679cdb636781c9941dd
MD5 8eb794cd09f314bb82e2da8982f69250
BLAKE2b-256 f4c186289d80296e079cca129b5a5108192efa329ffcda2032b72aca73a90f17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: p3bamboo-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2

File hashes

Hashes for p3bamboo-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ceb6dee3f1bb1f3cb453ca7143822d29d40b21740f5abceff22839b791a3ff3b
MD5 26d1a1b03ab2d15e39760df51dc4be60
BLAKE2b-256 cef3e59d8c4505b77e4cd3186ddd4fa29bd14f1447687d95b9e3fbc70e59f5e4

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