Skip to main content

benanalysis

Bentham Instruments spectral analysis library.

Compatibility

Wheels are built for python versions 3.12 - 3.14, for these systems:

  • Windows: win32, amd64
  • Linux: x86, x86_64
  • MacOS >10.9, universal2 (combined x86_64, arm64, requires pip version > 20.6 on intel, >21.0.1 on Apple Silicon)

Note: Apple silicon build has not been tested.

Installation

pip install benanalysis

Building from source

For local development (building the C++ core + the Python extension + docs), see:

  • BenAnalysis/src/benanalysis-python/README.md in the repository.

Usage

import benanalysis as ba

# Create scans from (wavelength, value) data
scan1 = ba.Scan([400, 410, 420], [1.0, 2.0, 3.0])
scan2 = ba.Scan([405, 415], [10.0, 20.0])

# Arithmetic operators are supported (scan-scan and scan-scalar)
scaled = 2.0 * scan1 + 1.0

# The wavelength grid of Scan/Scan operations depends on interpolation:
# - If interpolation is disabled on both scans, results use only shared wavelengths.
# - If either scan is interpolated, results are evaluated on wavelengths in the overlap
#   region where both scans can be evaluated without extrapolation.
scan1.interpolation = ba.Interpolation.LINEAR
scan2.interpolation = ba.Interpolation.LINEAR
combined = scan1 + scan2

print(combined.wavelengths())

Metadata

Release files for benanalysis 4.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for benanalysis 4.2.0
File Actions
benanalysis-4.2.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details for benanalysis-4.2.0-cp314-cp314t-win_amd64.whl
benanalysis-4.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for benanalysis-4.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
benanalysis-4.2.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for benanalysis-4.2.0-cp314-cp314t-macosx_11_0_arm64.whl
benanalysis-4.2.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for benanalysis-4.2.0-cp314-cp314-win_amd64.whl
benanalysis-4.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for benanalysis-4.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
benanalysis-4.2.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for benanalysis-4.2.0-cp314-cp314-macosx_11_0_arm64.whl
benanalysis-4.2.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for benanalysis-4.2.0-cp313-cp313-win_amd64.whl
benanalysis-4.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for benanalysis-4.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
benanalysis-4.2.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for benanalysis-4.2.0-cp313-cp313-macosx_11_0_arm64.whl
benanalysis-4.2.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for benanalysis-4.2.0-cp312-cp312-win_amd64.whl
benanalysis-4.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for benanalysis-4.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
benanalysis-4.2.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for benanalysis-4.2.0-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 7.1 MB

Release files / benanalysis-4.2.0-cp314-cp314t-win_amd64.whl

Download URL benanalysis-4.2.0-cp314-cp314t-win_amd64.whl
Size 638.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
9a67465e367d74e11a36e9389ec0b0075aa95919e725a684c1f00d7945cfe2a1
BLAKE2b-256 checksum
How to use checksums
43e02530272db3fd95f6a27ac04552c7194a1b714960ae6238dd5028c474ecad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL benanalysis-4.2.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 648.1 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1102e66d63f773f0de9ce5b2b13ef70c4d4d4313e7a9a1f1e5576fb87a55f7dd
BLAKE2b-256 checksum
How to use checksums
d30041e899aa0cfed34745092b15132021a92e85a42dea70ddc7a0f4cbdbf9be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL benanalysis-4.2.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 510.9 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1fb657f1e60801b0fa13eb6169e2d1b2e68f5bc88b6f3a033f03044320280f35
BLAKE2b-256 checksum
How to use checksums
11755c34b03c4ec6e1ce497cc959a73db9c2081669d89d1745af3f2510d295d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp314-cp314-win_amd64.whl

Download URL benanalysis-4.2.0-cp314-cp314-win_amd64.whl
Size 627.7 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
75496b6a13c6227f102d3b74d62190296a55cb5593d4c22adc34246a52164942
BLAKE2b-256 checksum
How to use checksums
773bf3c71748ba3b35d292746b36aa7de0a347f14f9bc270bfb0de516443cc3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL benanalysis-4.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 664.3 kB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
fc13778efe0b6f14927f0cba96a7ad5d8a7314d2a152cb3305a5039fb5cf68c9
BLAKE2b-256 checksum
How to use checksums
e05616d12a02b372b9426ce797f59a13f18dbb7f8fcad8b87e81f34eebf2e545
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL benanalysis-4.2.0-cp314-cp314-macosx_11_0_arm64.whl
Size 479.3 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a43631be7d6ec8bc2a9e6979f9b73e614963a47388a0e01c023b01c8119d43e5
BLAKE2b-256 checksum
How to use checksums
988cac2246fb02ecf27ac911074b938b3a3da0f1d4a1de6d136f5b4a267ab785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp313-cp313-win_amd64.whl

Download URL benanalysis-4.2.0-cp313-cp313-win_amd64.whl
Size 612.0 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
3da80b975038972b031747fca0646f48335006d96cbadab37eb99b244f5f7556
BLAKE2b-256 checksum
How to use checksums
074a2ed21d6008fc1766cba3b1d23f70eed03bae60ae02fa5ab56c2962d02008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL benanalysis-4.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 663.7 kB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
18de632678055f7c613e2944f01e1ea698524fcc647d54243f83b5847e5b6dbb
BLAKE2b-256 checksum
How to use checksums
79240516399e91ed2d9c1cd1777eaa8a17fd5ee0797e54b7ac4c89bb245b1ebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL benanalysis-4.2.0-cp313-cp313-macosx_11_0_arm64.whl
Size 481.8 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
19278572b7be80a3d464c927fdfff038432e38e6b1fe787610000202cf6d93eb
BLAKE2b-256 checksum
How to use checksums
45185b87eb04a6cb4ad3e961aa347531e932932736f6e1aeefdf98f91f0924d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp312-cp312-win_amd64.whl

Download URL benanalysis-4.2.0-cp312-cp312-win_amd64.whl
Size 612.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
98d68c5ae46b5d5b8538bb6c8ce67be013a3a44bdc332066c67138fe620a23e8
BLAKE2b-256 checksum
How to use checksums
188c4b499b7fbdb5aaddd4bc66ad0695842c677e5d6ef176c2493f07054dbc9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL benanalysis-4.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 663.5 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9be85bbd5362f5d4c7936c5af92f7ba4930132d27879a8397d21934c19932ed4
BLAKE2b-256 checksum
How to use checksums
088c5fcea5fe16f79d2f0627d6e6d948e6ae75a4bc739a1003a268725264c438
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Release files / benanalysis-4.2.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL benanalysis-4.2.0-cp312-cp312-macosx_11_0_arm64.whl
Size 481.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
cfa8c59b49957593bc904d956ba1114305ad0fa42cdd7a8c19b448b21fdde93a
BLAKE2b-256 checksum
How to use checksums
f691659dbd9a2c8d826b7d8b47fedcd3b763c83651699aba095387f134318c36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 5, 2026.

Transparency log

Security for benanalysis 4.2.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

All 12 files in this release have been uploaded with provenance metadata.

Select from 12 files

Attestation for benanalysis-4.2.0-cp314-cp314t-win_amd64.whl

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 5, 2026.

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.

Release history Release notifications | RSS feed

This release

4.2.0 This release

12 release files Full provenance

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