Skip to main content

High-performance Gaussian Splatting format conversion library

Project description

GaussForge Python Binding

High-performance Gaussian Splatting format conversion library for Python.

Installation

pip install gaussforge

Quick Start

import gaussforge

# Create instance
gf = gaussforge.GaussForge()

# Read a PLY file
with open("model.ply", "rb") as f:
    data = f.read()

result = gf.read(data, "ply")
if "error" not in result:
    print(f"Loaded {result['data']['numPoints']} points")

# Convert to another format
converted = gf.convert(data, "ply", "splat")
if "error" not in converted:
    with open("output.splat", "wb") as f:
        f.write(converted["data"])

Supported Formats

  • ply - Standard PLY format
  • compressed.ply - Compressed PLY format
  • splat - Splat format
  • ksplat - K-Splat format
  • spz - SPZ compressed format
  • sog - SOG format

API Reference

GaussForge()

Create a new GaussForge instance.

read(data: bytes, format: str, strict: bool = False) -> dict

Read Gaussian data from bytes.

  • data: Raw file data as bytes
  • format: Input format name
  • strict: Enable strict validation (default: False)

Returns a dict with data key containing the parsed Gaussian data, or error key on failure.

write(ir: dict, format: str, strict: bool = False) -> dict

Write Gaussian IR to bytes.

  • ir: Gaussian intermediate representation dict
  • format: Output format name
  • strict: Enable strict validation (default: False)

Returns a dict with data key containing the encoded bytes, or error key on failure.

convert(data: bytes, in_format: str, out_format: str, strict: bool = False) -> dict

Convert between formats directly.

  • data: Input file data as bytes
  • in_format: Input format name
  • out_format: Output format name
  • strict: Enable strict validation (default: False)

Returns a dict with data key containing the converted bytes, or error key on failure.

get_model_info(data: bytes, format: str, file_size: int = 0) -> dict

Get detailed model information.

  • data: Raw file data as bytes
  • format: Input format name
  • file_size: Optional file size for reporting

Returns a dict with data key containing model info, or error key on failure.

get_supported_formats() -> list[str]

Get list of supported format names.

get_version() -> str

Get library version string.

Building from Source

cd python
pip install -e .

License

Apache-2.0

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

gaussforge-0.5.0.tar.gz (60.6 kB view details)

Uploaded Source

Built Distributions

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

gaussforge-0.5.0-cp312-abi3-win_amd64.whl (395.0 kB view details)

Uploaded CPython 3.12+Windows x86-64

gaussforge-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

gaussforge-0.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.12+manylinux: glibc 2.27+ ARM64manylinux: glibc 2.28+ ARM64

gaussforge-0.5.0-cp312-abi3-macosx_11_0_arm64.whl (427.0 kB view details)

Uploaded CPython 3.12+macOS 11.0+ ARM64

File details

Details for the file gaussforge-0.5.0.tar.gz.

File metadata

  • Download URL: gaussforge-0.5.0.tar.gz
  • Upload date:
  • Size: 60.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gaussforge-0.5.0.tar.gz
Algorithm Hash digest
SHA256 422616a6428f587eb2418435ad9996c2fe44316b9b3fb29e1cc780d644cdda31
MD5 9629c4273be786df95002a2920f78449
BLAKE2b-256 98de4f69498214308cc876a26a6395fc86ecbcf24ace53f60d309bb8273fbcee

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaussforge-0.5.0.tar.gz:

Publisher: pip.yml on 3dgscloud/GaussForge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gaussforge-0.5.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: gaussforge-0.5.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 395.0 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gaussforge-0.5.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4191ead4fbce4b3e137b5ecb63afbdf6d28ff06105c6b4bcdb3f38b6d1dc3a09
MD5 3bc01c0a9ca21450c23b8b686763b20f
BLAKE2b-256 6a3c1f04c64ee3fb1fc2cba89ab6db682141225628923074d420508c50151b43

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaussforge-0.5.0-cp312-abi3-win_amd64.whl:

Publisher: pip.yml on 3dgscloud/GaussForge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gaussforge-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gaussforge-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2b01010e495bb604671917c600e4795e4381351ee8dab5daffccb39f4fc5ebc8
MD5 26147e685ae74956693772d6d98086bb
BLAKE2b-256 71f3db75fcdf0228a28e4961645f1db4d389960c3498c457ec91e69d1f8f48cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaussforge-0.5.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: pip.yml on 3dgscloud/GaussForge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gaussforge-0.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for gaussforge-0.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 85845fcd70b4ca59b6abc86d78532d35e381809de58f6e79ea0d33213ba009f4
MD5 efdaab54f19c4ccc70dae67fa95b5651
BLAKE2b-256 9320eef6b1e2a1e39b4cf4b11531e4c49a84a458c77d20026afa5e0c7d360569

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaussforge-0.5.0-cp312-abi3-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl:

Publisher: pip.yml on 3dgscloud/GaussForge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gaussforge-0.5.0-cp312-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gaussforge-0.5.0-cp312-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7348d4b512b9688b341c7a53763ebc2cde7444e3baf29930a4c305480941ad26
MD5 145188895a3fd617eb7d15be58e3523d
BLAKE2b-256 a0a7422faa068e631fcfd1a4b327c9d997e18d11cf1dc0084bd46ef189f80bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for gaussforge-0.5.0-cp312-abi3-macosx_11_0_arm64.whl:

Publisher: pip.yml on 3dgscloud/GaussForge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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