GSEGUtils
GSEGUtils provides some tools and functionality that are used across other development or research projects. These are particularly focussed in the direction of research within the group.
The main goal if this repo is to help software development efforts and allow more focus on algorithm development, data processing and research rather than code debugging and maintenance.
Currently this module includes:
| Package | Description |
|---|---|
| BaseArrays | Sub-classable array objects with automated validation on type, shape and attributes |
| Lazy Disk Cache | Automated data offloading for memory management |
| Util | Includes utility functions such as angle unit conversions |
| Validators | Helper functions for performing validation and normalisation |
Installation
This can be done directly from the repository directory:
pip install git+ssh://git@github.com/gseg-ethz/GSEGUtils.git
or by cloning it
git clone https://github.com/gseg-ethz/GSEGUtils.git
cd GSEGUtils
pip intstall .
Usage
Accessing the different classes can then be easily done by importing from GSEGUtils:
>>> from GSEGUtils.base_arrays import BaseArray, ArrayNx3, BaseVector
>>> import numpy as np
>>> data = np.random.rand(10,20,3)
>>> array = BaseArray(data)
>>> array.shape
(10, 20, 3)
>>> np.all(array == data)
np.True_
>>> a = ArrayNx3(np.random.rand(10, 3))
>>> b = a + 10
>>> np.all(b == a + 10)
np.True_
coords3D = Array_Nx3(np.random.rand(20, 3))
coords3d.arr = np.random.rand(100)
# RAISES ERROR -> invalid shape not of (N, 3), expected (N,)
coords3d.arr = np.random.rand(100, 3)
# Valid as the array is of shape Nx3
Verifying Releases
Download a wheel from a release and verify its Sigstore provenance attestation:
gh attestation verify gsegutils-0.5.2-py3-none-any.whl --repo gseg-ethz/GSEGUtils
See RELEASE.md for claim fields, rollback procedure, and environment details.
Metadata
Release files for GSEGUtils 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gsegutils-0.6.0.tar.gz | 444.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gsegutils-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 570.8 kB
Release files / gsegutils-0.6.0.tar.gz
| Download URL | gsegutils-0.6.0.tar.gz |
|---|---|
| Size | 444.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb09975608b1881e99acda542d1764f27a96183af572b909accbc7f8fa8a9eed
|
|
BLAKE2b-256 checksum How to use checksums |
3f51866f264643107641739817709998c03e322f837d504c1b23c13dcb5b070e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 17, 2026.
Transparency logRelease files / gsegutils-0.6.0-py3-none-any.whl
| Download URL | gsegutils-0.6.0-py3-none-any.whl |
|---|---|
| Size | 126.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a6deae37fce929f0b503123251b132c8c3dd0caa47c9266432c1bfb0d7a0f82
|
|
BLAKE2b-256 checksum How to use checksums |
b42441b17aabf5ee1e9183be18b23597a935c123940d761f0667166d74463107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 17, 2026.
Transparency log