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.5
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.5.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| p3bamboo-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / p3bamboo-1.0.5.tar.gz
| Download URL | p3bamboo-1.0.5.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3900f282d18a59d3f8dacf242c2a4d256cc0ebd4d770cd26b343ed89a46f5340
|
|
BLAKE2b-256 checksum How to use checksums |
e85976c73c59ecb7f130c214d5a999b2fc52234eb42a76f5aad093e4b62e62d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
|
Release files / p3bamboo-1.0.5-py3-none-any.whl
| Download URL | p3bamboo-1.0.5-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d7103f544ddffa05dced3960a6294ab65f6e5c43094929613e8363ba8fe2e6b
|
|
BLAKE2b-256 checksum How to use checksums |
098d8800738992905e96789db81f65de578d0f873f1285e543e87c6330993d56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
|