Skip to main content

Compiled Python Bindings for the CUVIS SDK.

Reason this release was yanked:

Invalid Files

Project description

image

cuvis.pyil (python interface layer; required for using the python wrapper)

cuvis.pyil is the python interface binding for the Cuvis SDK written in C (available here).

For other supported program languages, please have a look at the source code page.

Installation

Prerequisites

First, you need to install the Cuvis C SDK from here. The installation registers the installation path in the environment, which the python interface layer is linked to.

:warning: If the C SDK is reinstalled into another directory later on, the linkage breaks and the python wrapper might stop working.

Via pip

If you wish to use cuvis-il within another project, from within your project environment, run

pip install cuvis-il

or add cuvis-il to your project requirements.txt or setup.py. We currently provide pre-compiled binaries for Python 3.9, 3.10, 3.11, 3.12 and 3.13 for Windows, Ubuntu 20.04 and Ubuntu 22.04 (all 64-bit).

Build manually via repository

If you wish to download and use cuvis locally, clone the git repository

git clone git@github.com:cubert-hyperspectral/cuvis.pyil.git
cd cuvis.pyil

and then initialize the submodules.

git submodule update --init --recursive

For building the python stubs for wrapping between C libraries and python, you'll need SWIG (see https://www.swig.org/download.html).

Next make sure that your preferred version of NumPy is manually pre-installed in your go-to environment. See here. Also make sure that the additional build dependencies are installed.

python -m pip install wheel setuptools numpy==YOUR_NUMPY_VERSION -qq 

Then use CMake (see https://cmake.org/download/) to configure and generate your project. CMake will require you to locate the Cuvis C SDK (this should be found automatically, if the Cuvis C SDK is properly installed). Also, you need to point the variable SWIG_EXECUTABLE to the path of the swig.exe.

Build and install the CMake Project via

mkdir build
cd build
cmake  -DCMAKE_BUILD_TYPE=Release -DDOXYGEN_BUILD_DOCUMENTATION=OFF -DPython_ROOT_DIR=venv ..
cmake --build . --target cuvis_pyil --config Release
cp ./_cuvis_pyil.so ../cuvis_il
cp ./cuvis_il.py ../cuvis_il
cd ..
python -m pip install .

This project will then generate the _cuvis_pyil.pyd and cuvis_il.py files needed for running the Cuvis Python SDK wrapper. Those then can be used to install the cuvis_il package.

:warning: You might also use the cuvis_il.py directly, which provides all functionalities as single methods without organization into objects. Support for code without the additional wrapper is limited, though.

Dependency to NumPy

The python interface layer is dependent on NumPy. Specifically, this means that we need the C headers of the NumPy library. Notice that NumPy has backwards compatibility. To compile the python interface layer install your preferred version of NumPy. For example the newest stable release via

pip install numpy

CMake will try to find the NumPy path using the find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy). To support the usage of a virtual environment, set the Python_ROOT_DIR variable to the directory containing your virtual environment.

Our pre-compiled binaries are compiled with 1.22 (Python 3.9 and 3.10), 1.23 (Python 3.11) 1.26 (Python 3.12) and 2.0 (Python 3.13).

Getting involved

cuvis.hub welcomes your enthusiasm and expertise!

With providing our SDK wrappers on GitHub, we aim for a community-driven open source application development by a diverse group of contributors. Cubert GmbH aims for creating an open, inclusive, and positive community. Feel free to branch/fork this repository for later merge requests, open issues or point us to your application specific projects. Contact us, if you want your open source project to be included and shared on this hub; either if you search for direct support, collaborators or any other input or simply want your project being used by this community. We ourselves try to expand the code base with further more specific applications using our wrappers to provide starting points for research projects, embedders or other users.

Getting help

Directly code related issues can be posted here on the GitHub page, other, more general and application related issues should be directed to the aforementioned Cubert GmbH support page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

cuvis_il-3.3.2rc2-py313-none-win_amd64.whl (158.6 kB view details)

Uploaded Python 3.13Windows x86-64

cuvis_il-3.3.2rc2-py312-none-win_amd64.whl (158.6 kB view details)

Uploaded Python 3.12Windows x86-64

cuvis_il-3.3.2rc2-py312-none-manylinux_2_35_x86_64.whl (163.4 kB view details)

Uploaded Python 3.12manylinux: glibc 2.35+ x86-64

cuvis_il-3.3.2rc2-py311-none-win_amd64.whl (158.0 kB view details)

Uploaded Python 3.11Windows x86-64

cuvis_il-3.3.2rc2-py311-none-manylinux_2_35_x86_64.whl (163.4 kB view details)

Uploaded Python 3.11manylinux: glibc 2.35+ x86-64

cuvis_il-3.3.2rc2-py311-none-manylinux_2_31_x86_64.whl (161.2 kB view details)

Uploaded Python 3.11manylinux: glibc 2.31+ x86-64

cuvis_il-3.3.2rc2-py310-none-win_amd64.whl (157.8 kB view details)

Uploaded Python 3.10Windows x86-64

cuvis_il-3.3.2rc2-py310-none-manylinux_2_31_x86_64.whl (161.2 kB view details)

Uploaded Python 3.10manylinux: glibc 2.31+ x86-64

cuvis_il-3.3.2rc2-py39-none-win_amd64.whl (157.6 kB view details)

Uploaded Python 3.9Windows x86-64

cuvis_il-3.3.2rc2-py39-none-manylinux_2_35_x86_64.whl (163.4 kB view details)

Uploaded Python 3.9manylinux: glibc 2.35+ x86-64

cuvis_il-3.3.2rc2-py39-none-manylinux_2_31_x86_64.whl (161.2 kB view details)

Uploaded Python 3.9manylinux: glibc 2.31+ x86-64

File details

Details for the file cuvis_il-3.3.2rc2-py313-none-win_amd64.whl.

File metadata

  • Download URL: cuvis_il-3.3.2rc2-py313-none-win_amd64.whl
  • Upload date:
  • Size: 158.6 kB
  • Tags: Python 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for cuvis_il-3.3.2rc2-py313-none-win_amd64.whl
Algorithm Hash digest
SHA256 68816e50cec35bb2b93f4284de62e2e800382ca6b95c912a4534c1ac0430a77a
MD5 d12c14ee9aa329c32d2d49a929b6f987
BLAKE2b-256 0c7d3e669ecb192159c0b8631253d80c8ac94add90c695edc8158899032ec5c7

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py312-none-win_amd64.whl.

File metadata

  • Download URL: cuvis_il-3.3.2rc2-py312-none-win_amd64.whl
  • Upload date:
  • Size: 158.6 kB
  • Tags: Python 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for cuvis_il-3.3.2rc2-py312-none-win_amd64.whl
Algorithm Hash digest
SHA256 c943af0addad77aa3a595828531cf57879d20824776db96c5897d627b1b60400
MD5 14f5d06d89d5fed4435f93bdd02af860
BLAKE2b-256 9d5743713667f8da166df89f76d96a6240751c373b228669f2ea9c9b2b9e0ae0

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py312-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for cuvis_il-3.3.2rc2-py312-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 00b166e89e871fe7b4e177571e7c5e9ca20ba4e379281c1a6722af174ea6ba80
MD5 74344a337a8464aa210c56adb2ece581
BLAKE2b-256 96b6eb25a152e27523a943e4fa15da59034ddebe42d637cb8cc15da1e9b53c12

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py311-none-win_amd64.whl.

File metadata

  • Download URL: cuvis_il-3.3.2rc2-py311-none-win_amd64.whl
  • Upload date:
  • Size: 158.0 kB
  • Tags: Python 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for cuvis_il-3.3.2rc2-py311-none-win_amd64.whl
Algorithm Hash digest
SHA256 850cdc9131d3a01876f79661a4592970a8d7181cacc56250f923feaccb80bdfc
MD5 342f2b0308d065b03174f49d6b73cc0b
BLAKE2b-256 495a650beccf62ae3cdcf24b5fab3dcf600646d7071aff76c25b7af70cd96d98

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py311-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for cuvis_il-3.3.2rc2-py311-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 7471c10c2d9c134b21d560041601cfdf535d5922cb1b38fbc4049349c4a89801
MD5 e6716478869402207c8a11b0bb3ee7db
BLAKE2b-256 59d3aa97397c6a4ec41343eced4361fd52791c5ac35c7eefa627cfbe5e9c90fe

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py311-none-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for cuvis_il-3.3.2rc2-py311-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 93b05d5de419868d78553d930a67ef4ac1e967b351328252eea0b3d0384ab28d
MD5 8820ff2700c265eb99d3d8cd9a6bf8b9
BLAKE2b-256 4ad59883b85bb79c977f4aebccc014679368cd2b2a14c9fc938b3c0e21b50fa3

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py310-none-win_amd64.whl.

File metadata

  • Download URL: cuvis_il-3.3.2rc2-py310-none-win_amd64.whl
  • Upload date:
  • Size: 157.8 kB
  • Tags: Python 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cuvis_il-3.3.2rc2-py310-none-win_amd64.whl
Algorithm Hash digest
SHA256 487d3d10219863eeff2e0c1ed99cfe23762b45f2953873869144af0bf9fbc7d3
MD5 0b262ed6c32df58b3dabc2d02ad683dd
BLAKE2b-256 8bedcefaede28f9ae12a7964ce458ea29b8e8e11fc9f8e5528ffa1da4b9a71e7

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py310-none-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for cuvis_il-3.3.2rc2-py310-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 5156f3d4b9fa3f88067baf850b330f08243abbf872a9e0e8495b673dcbf562c8
MD5 a992c37ef432feae48a312ad27a327f8
BLAKE2b-256 0c2b0204c6cef5d7d1c0992bee90e034854e85a08d7fe1dd814055c1b9837392

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py39-none-win_amd64.whl.

File metadata

  • Download URL: cuvis_il-3.3.2rc2-py39-none-win_amd64.whl
  • Upload date:
  • Size: 157.6 kB
  • Tags: Python 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for cuvis_il-3.3.2rc2-py39-none-win_amd64.whl
Algorithm Hash digest
SHA256 efa50ef06f1b2c61a991ef940c2210c66e57e306b3c2d6550fc5c57ab4112986
MD5 d87489f4ce16c7c17e1333d0a196b069
BLAKE2b-256 b9cb1db5e00254f36adaef80f482f0961576ed73e989ae7de20599e2eff2fe80

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py39-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for cuvis_il-3.3.2rc2-py39-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 f245b7d7715ee53e79d3030611e53755396e78e573da8993f8f5626d66bc99f6
MD5 24b0d23638369a6944aa9e0824414ebf
BLAKE2b-256 3e9e499ef1821dbdb38e66a41473bc4dbae09ad98be9d2011477b32b82cf88ae

See more details on using hashes here.

File details

Details for the file cuvis_il-3.3.2rc2-py39-none-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for cuvis_il-3.3.2rc2-py39-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 61c9f4b9866de593100886ae8067058507fa462fa3e31ae108bdff7bf6ae88d4
MD5 e71ff61c707489e0f158531eb7e2b0aa
BLAKE2b-256 c0e1597d7f755849127c3a7b94a733b67c42a0e8c5ae2d2d451b96dcd6e104d9

See more details on using hashes here.

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