Releases: sandialabs/SpecUtils
20241217 Python package alpha-2
The Python bindings have been re-written using nanobind, and a CI added to build packages for Windows/Linux/macOS, that can be retrieved from https://pypi.org/project/SandiaSpecUtils/, e.g. by
pip install SandiaSpecUtils
Or you can build from source, with something like:
git clone https://github.com/sandialabs/SpecUtils.git SpecUtils
# Optionally make/use a virtual environment
mkdir my_venv
python -m venv my_venv
source my_venv/bin/activate # Windows PowerShell: .\my_venv\Scripts\Activate.ps1
# Compile and install the bindings
pip install SpecUtils/bindings/python
# Use the package
python
>>> import SpecUtils
Example usages of the library from Python can be found in https://github.com/sandialabs/SpecUtils/tree/master/bindings/python/examples
For support, please open an issue, or email [email protected]
Bleeding Edge Build
An automated, and untested build of the latest code pushed to the repository.
20240705 Android Java
This is SpecUtils compiled for Android {arm64-v8a, armeabi-v7a, x86, x86_64}, with SWIG generated Java wrapper to use from your Android application code.
This code has only been superficially tested!
Please see the README.md file included in the zip, as well as the bindings/swig directory in the repository.
Please email [email protected] with any comments or requests.
20240628 Python Module
This is SpecUtils
compiled for use from 64-bit Python 3.12 on Windows, or 64-bit Python 3.9 on Raspberry Pi OS 11 (Debian bullseye).
After downloading the attached, you can install the module, and run the example Python script with something like the following:
python.exe -m pip install --user --force SpecUtils-0.0.2-cp312-cp312-win_amd64.whl
python.exe .\test_python.py
The test_python.py
demonstrates basic use of the module.
You can see the full list of commands available using:
python.exe
>>> import SpecUtils
>>> help(SpecUtils.SpecUtils)
Or it may be a little easier to just directly reference SpecFile_py.cpp.
You can email [email protected] with comments, requests, or questions.
(updated 20240701 for slight improvement to addMeasurement(...)
function)