Skip to main content

UFFUtils

A Python-based command-line tool for manipulating UFF datasets.

PyPI version PyPi status Release date Python Package CI Monthly downloads License Python versions

Introduction

UFFUtils lets you inspect and manipulate UFF files. Let's look at an example.

Say you have some dataset - my_data.uff - that you want to reduce in size (e.g., by only taking every 1000th node), scale from mm to m, rotate around the y-axis by 90 degrees. With UFFUtils, you would do this in the following way:

uffutils subset my_data.uff --step 1000 `
uffutils scale --length 0.001 `
uffutils rotate - rotated.uff --angles 0 90 0

Congratulations! You now have a reduced, scaled and rotated version of your dataset!

For more functionality, see the description of each command below.

Installing

A good way to run UFF utils is through uv. Once you have installed uv, you can run uffutils like so:

uvx uffutils

No need for any additional software (e.g., Python); uv handles it for you.

Usage

The inspect command

The inspect command allows you to view the contents of a UFF file. Example usage:

uffutils inspect my_file.uff  # Print nice overview 
uffutils inspect my_file.uff --nodes # Print full list of nodes

The subset command

Allows you to create file with a subset of nodes, which is particularly useful if you want to downsize a UFF file. Usage:

uffutils subset input.uff output.uff --ids "1,2,3"  # Only takes nodes 1, 2 and 3
uffutils subset input.uff output.uff --step 1000  # Takes every 1000th node, starting at 1 
uffutils subset input.uff output.uff --max 100 # Takes the first 100 nodes 

Operations can be combined. The following operation yields a file with nodes 10 and 30.

uffutils subset input.uff output.uff --selection "10,20,30,40,50" --step 2 --max 2

The scale command

You can scale length:

uffutils scale input.uff output.uff --length 1000 

The translate command

You can translate the data:

uffutils translate input.uff output.uff --xyz 10.0 20.0 30.0 

The rotate command

You can rotate the data:

uffutils rotate input.uff output.uff --angles 90 90 90

Combining commands

You can combine commands through piping, like so:

uffutils subset input.uff --step 100 | `
    uffutils scale --length 1000 | `
    uffutils move --xyz 10 20 30 | `
    uffutils rotate - output.uff --xyz 90 0 0 

Metadata

Release files for uffutils 0.6.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 uffutils 0.6.0
File Size Uploaded Provenance Actions
uffutils-0.6.0.tar.gz 57.7 kB With provenance Details for uffutils-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 66.1 kB

Release files / uffutils-0.6.0.tar.gz

Download URL uffutils-0.6.0.tar.gz
Size 57.7 kB
Tags Source
SHA-256 checksum
How to use checksums
318178439c9f556a92f882889cadc1383bd347cf07f9b5b74ce496762125d491
BLAKE2b-256 checksum
How to use checksums
349a966cd62269964de5afa40aca179b4a6e8f442642334f83f72baeb81e4828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2025.

Transparency log

Release files / uffutils-0.6.0-py3-none-any.whl

Download URL uffutils-0.6.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3dc1507e0c8cb7891d1360def902d58f66c03c0516cd71216e77bca57f571a7a
BLAKE2b-256 checksum
How to use checksums
f543176c8cdffb7ecb2d157c608662f7519daeeab55f691b5d1bd5986595b63f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2025.

Transparency log

Security for uffutils 0.6.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for uffutils-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 22, 2025.

Transparency log

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.

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