p3bamboo
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)
| File | Size | Uploaded | |
|---|---|---|---|
| p3bamboo-1.0.9.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|