LIBSkit
A software tool for the simulation and analysis of laser-induced breakdown spectroscopy (LIBS) spectra.
The simulation core is written in C++ with Python bindings via pybind11. Atomic databases (NIST ASD lines, ionization energies, energy levels) are bundled with the package and loaded automatically on import.
Quick Start
import libskit
import numpy as np
# Create an LTE plasma model
model = libskit.LTEModel(
{"Si": 0.72, "Na": 0.09, "Ca": 0.19}, # %
temperature=17300.0, # K
electron_density=2.53e23, # m^-3
length=2.4e-3 # m
)
# Define an instrument and calculate a spectrum
wavelengths = np.arange(250, 900, 0.05) # nm
instrument = libskit.GenericSpectrometer(0.05, 0.001) # nm
spectrum = instrument.calculate_spectrum(wavelengths, model)
Installation
Pre-built wheels are published on PyPI for Linux (x86_64) and macOS (x86_64 and Apple Silicon):
pip install libskit
Windows is not supported as a binary target: the official LLVM Windows
distribution does not ship the static Clang development libraries that Enzyme
needs to build against, so we cannot produce Windows wheels in CI. Windows
users must build from source (see below) with a full LLVM install that
includes the Clang static libs (e.g. a self-built LLVM or conda-forge's
llvmdev package).
Building from source
Source builds need a Clang toolchain with the Enzyme automatic-differentiation plugin.
- Linux:
sudo apt install cmake ninja-build git clang llvm-dev - macOS:
brew install llvm cmake ninja - Windows: install a full LLVM toolchain (including static Clang dev libs) and Ninja; the CI-provided setup script is not sufficient on Windows
Then:
git clone <repository-url>
cd libskit
python -m venv .venv
source .venv/bin/activate # Linux/macOS
# .venv\Scripts\activate # Windows
pip install -r requirements.txt
./scripts/dev.sh
This builds the Enzyme plugin and installs the package in one step.
Prerequisites (for development)
To build the code from source you need:
- Clang-compatible C++20 compiler
- CMake 3.15+
- Python 3.8+
Tutorials
The notebooks/ directory in this repository contains a curated set of tutorials (tutorial_1_… through tutorial_7_…).
Citation
If you use LIBSkit in your research, please cite it:
@software{libskit,
author = {Egerland, Christoph H.},
title = {LIBSkit: A software tool for the simulation and analysis of
laser-induced breakdown spectroscopy (LIBS) spectra},
year = {2026},
version = {0.1},
doi = {10.5281/zenodo.21788186},
url = {https://doi.org/10.5281/zenodo.21788186},
}
Metadata
Release files for libskit 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| libskit-0.3.tar.gz | 8.7 MB | With provenance | Details for libskit-0.3.tar.gz |
Built distributions (wheels)
Total release size: 41.2 MB
Release files / libskit-0.3.tar.gz
| Download URL | libskit-0.3.tar.gz |
|---|---|
| Size | 8.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
182a8c79ba65d62aa450e603c6727373c62a3baa1c0832f428f75bde539d5850
|
|
BLAKE2b-256 checksum How to use checksums |
76250671f8853692a985b9276443451549dcb3f1eaae5ec006bf9d80c323f392
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logRelease files / libskit-0.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | libskit-0.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.7 MB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d0333b243af7b2389928385d06a3b9f321b5adfff5206a8d6f550a7e0cb0be6b
|
|
BLAKE2b-256 checksum How to use checksums |
e1a693c82bfff1e99fe082df2186d3b375ea5e83ba4ddfb659538e9d109d5b52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logRelease files / libskit-0.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | libskit-0.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.7 MB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
eccc38c6bd77e83cb00f308531dcc7161ac8e9ee2a38e6a9cdfac70a370fd440
|
|
BLAKE2b-256 checksum How to use checksums |
8b8adede283fe261b4975a79467383c5b43a168a854ab5016eb74d679c856d1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logRelease files / libskit-0.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | libskit-0.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.7 MB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
7f85ee7b6b9cf61e2cc2744dc6d4bb5e6c41cb43fdd717f8ea59c4c1b309780e
|
|
BLAKE2b-256 checksum How to use checksums |
2f874650b184246c7b2c8f516b442601fd515bde73bc3d49dbeaafbc65dab756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logRelease files / libskit-0.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | libskit-0.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 9.5 MB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
8480323e50d292e2de686577116b26dc5f2c043efef06d9d36b97f2cfdbdc0df
|
|
BLAKE2b-256 checksum How to use checksums |
5fb1640f6e2a072221eb7034d2ea98953e5b3036eae3be5a3f22d70b5c9a8334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 6, 2026.
Transparency logSecurity for libskit 0.3
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
All 5 files in this release have been uploaded with provenance metadata.
Attestation for libskit-0.3.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 Nov 6, 2026.
Transparency logA 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.