Skip to main content

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.

Release files for p3bamboo 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for p3bamboo 1.0.9
File Size Uploaded
p3bamboo-1.0.9.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for p3bamboo 1.0.9
File Interpreter ABI Platform
p3bamboo-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / p3bamboo-1.0.9.tar.gz

Download URL p3bamboo-1.0.9.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dbbc3d036c151ea455c139deb0a48d00d566a4e8b482942e7613ab226dd76a8a
BLAKE2b-256 checksum
How to use checksums
ebe332e1b4fef282927100a08300b238db222554ae30ef7e72251a1da8c63252
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / p3bamboo-1.0.9-py3-none-any.whl

Download URL p3bamboo-1.0.9-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
657407c8421574924bb6069127dd90c73a081d63fbc1625c0b2f651409a037ce
BLAKE2b-256 checksum
How to use checksums
09fa2f9cd9328ea5d8b9b711effea9daa4d0afb3560c4422555cde7686edffa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.4

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page