Panda3D BAM file parser library
Project description
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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file p3bamboo-1.0.5.tar.gz
.
File metadata
- Download URL: p3bamboo-1.0.5.tar.gz
- Upload date:
- Size: 5.8 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.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3900f282d18a59d3f8dacf242c2a4d256cc0ebd4d770cd26b343ed89a46f5340
|
|
MD5 |
be7d89db0b99b35caeab1b9b3a4cb78e
|
|
BLAKE2b-256 |
e85976c73c59ecb7f130c214d5a999b2fc52234eb42a76f5aad093e4b62e62d9
|
File details
Details for the file p3bamboo-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: p3bamboo-1.0.5-py3-none-any.whl
- Upload date:
- Size: 7.6 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.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0d7103f544ddffa05dced3960a6294ab65f6e5c43094929613e8363ba8fe2e6b
|
|
MD5 |
244764590fc7b2ed52548700607e5496
|
|
BLAKE2b-256 |
098d8800738992905e96789db81f65de578d0f873f1285e543e87c6330993d56
|