Skip to main content

pointcloudkit

Lightweight point cloud I/O and processing library. Pure numpy — no open3d dependency.

Requirements

numpy
laspy   # LAS format only

Python ≥ 3.9.

Supported Formats

Extension Read Write
.pcd ✓ ✓
.ply ✓ ✓
.las ✓ ✓
.bin ✓ —

PCD and PLY support both ASCII and binary modes. Binary writes are chunked and memory-efficient regardless of cloud size.


Operations

Reading and writing

from pointcloudkit import PointCloud

pc = PointCloud.read("scan.pcd")
pc.write("scan.ply")                  # binary by default
pc.write("scan_ascii.pcd", binary=False)

Format conversion

from pointcloudkit import convert

convert("scan.las", "scan.pcd")
convert("scan.bin", "scan.ply")
convert("scan.pcd", "scan_ascii.ply", binary=False)

Center

Subtracts the centroid from all positions in-place.

pc = PointCloud.read("scan.pcd")
pc.center()
pc.write("centered.pcd")

Make upright

Rotates the cloud so its dominant plane is parallel to XY (Z axis points up). Uses PCA: the eigenvector with the smallest eigenvalue is the plane normal, which is then aligned to [0, 0, 1] via the Rodrigues formula.

pc = PointCloud.read("scan.pcd")
pc.make_upright()
pc.write("upright.pcd")

Operations return self and can be chained:

PointCloud.read("scan.las").center().make_upright().write("processed.pcd")

PointCloud data model

pc.position   # (N, 3) float64  — always present
pc.intensity  # (N,)   float32  — empty array if absent
pc.rgb        # (N, 3) uint8    — empty array if absent
pc.extra      # dict: name → (N,) ndarray for any additional fields

Constructing manually:

import numpy as np
from pointcloudkit import PointCloud

pc = PointCloud(
    position=np.random.rand(1000, 3),
    intensity=np.random.rand(1000).astype(np.float32),
    rgb=np.random.randint(0, 255, (1000, 3), dtype=np.uint8),
)
print(len(pc))  # 1000

Reading BIN files

Velodyne BIN files default to KITTI layout (x, y, z, intensity). Pass num_attrs to override the number of float32 values per point.

from pointcloudkit.io.bin import BINFile

pc = BINFile.read("velodyne.bin")              # 4 attrs (default)
pc = BINFile.read("custom.bin", num_attrs=6)   # 6 attrs; first 3 → position

Accessing format-specific classes directly

from pointcloudkit.io.pcd import PCDFile
from pointcloudkit.io.ply import PLYFile
from pointcloudkit.io.las import LASFile

pc = PCDFile.read("scan.pcd")
PLYFile.write(pc, "scan.ply", binary=True)

Metadata

Release files for pointcloudkit 0.1.0

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

Source distribution (sdist)

Source distribution for pointcloudkit 0.1.0
File Size Uploaded Provenance Actions
pointcloudkit-0.1.0.tar.gz 10.9 kB Without provenance Details for pointcloudkit-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 25.2 kB

Release files / pointcloudkit-0.1.0.tar.gz

Download URL pointcloudkit-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c25e49d76e6181e60171e48d731b25075ff647be21ded4eb52b01060bbf2d179
BLAKE2b-256 checksum
How to use checksums
4b61aaaa00a4fb8d83716a8fa23adf7160c762d89defe7ee3e0bf35653917091
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / pointcloudkit-0.1.0-py3-none-any.whl

Download URL pointcloudkit-0.1.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
317064ecce06e0814f1f077c7c5907c3b1d0a9559a343b4d38cdc1a8614912a2
BLAKE2b-256 checksum
How to use checksums
b3df597a0385f7db4ba69ee9e9083cdb9c89400a4cb9e835655c2f6d4dd45701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for pointcloudkit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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