ElevenOne: your perfect lab assistant
ElevenOne is a Python library for seamless scientific unit management, rigorous laboratory data processing, signal analysis, and automated publication-ready plotting.
Some of the things ElevenOne can do include:
- Handling of physical units
- Automatic data loading with unit detection
- High-level scientific plotting and visualizations
- Automated publication-grade scientific reports
- Numerous models of data fitting
- Advanced signal processing and peak detection
Handling of physical units
ElevenOne features a complete internal system for handling physical units. Among the things it can do are the use and management of physical units, operations with them, and conversion between them.
from elevenone import *
speed = 90 * km/h
print(speed.convert_to(m/s))
>>> 25 m/s
ElevenOne has more than 60 different units to use in your project!
Automatic Data Loading with Unit Detection
ElevenOne can load data directly from CSV or Excel files (.csv, .xls, .xlsx), automatically detecting physical units in column headers (e.g., Time (s), Pressure [kPa]) or within data cells.
from elevenone import load_data
# Load data automatically parsing units into Quantity objects
df = load_data("experiment_results.csv")
# Access columns directly; units are preserved and active
print(df["Time"])
print(df["Speed"].mean())
High-Level Scientific Plotting
With Data objects, you can generate modern, publication-ready plots with built-in unit handling and automatic labeling:
from elevenone import Data, s, m
# Create dataset with units
t = [1, 2, 3, 4, 5] * s
d = [2.1, 4.3, 5.9, 8.1, 10.2] * m
data = Data({"Time": t, "Distance": d})
# Generate line plot with automatic labels
fig, ax = data.plot(x="Time", y="Distance", title="Kinematic Trajectory")
# Scatter plot with linear fit
fig, ax = data.scatter(x="Time", y="Distance", fit=True, title="Linear Fit Analysis")
ElevenOne supports multiple visualization modes out of the box:
data.plot(): Line plots with area fills.data.scatter(): Scatter plots with optional linear fit (fit=True).data.errorbar(): Uncertainty visualization (xerr,yerr).data.hist(): Distribution histograms.data.boxplot()&data.violin(): Outlier and density distribution plots.data.residual_plot(): Residual error analysis for fits.data.pairplot(): Pairwise correlation grid.data.corr_heatmap(): Pearson correlation heatmaps.
Automated Scientific Reports
Generate full statistical and visual analytical reports with a single function call in HTML or PDF format.
from elevenone import load_data, generate_report
# Load laboratory dataset
data = load_data("lab_measurements.xlsx")
# Generate complete HTML report
generate_report(data, output_path="report.html", title="Laboratory Experiment Analysis")
# Export as PDF (requires weasyprint or pdfkit)
generate_report(data, output_path="report.pdf", format_type="pdf")
The report automatically compiles dataset overview metrics, descriptive statistics, advanced indicators (skewness, kurtosis, IQR), correlation matrices, and distribution graphs without exposing raw data lines.
Curve Fitting & Model Optimization
ElevenOne provides a flexible curve fitting module designed for scientific data analysis, featuring built-in standard models (linear, polynomial, exponential, power law and logarithmic) as well as support for custom user-defined functions. Fits preserve physical units and compute fitted parameters alongside standard errors and goodness-of-fit metrics ($R^2$, $\chi^2$).
data = Data({
"Time": [0.0, 1.0, 2.0, 3.0, 4.0] * s,
"Position": [0.2, 2.1, 4.3, 5.9, 8.2] * m
})
# Add measurement errors
data.set_error("Time", 0.05) # 0.05 s error on time
data.set_error("Position", 0.2) # 0.2 m error on position
# Perform linear fit
result = fit_linear(data, x="Time", y="Position")
# Print complete fit summary
print(result)
# Plot data, fit line, and residuals
fig, axes = result.plot(title="Position vs. Time Fit")
Signal Processing & Analysis
The Signal class provides a comprehensive suite for 1D time-series and experimental signal analysis. It seamlessly tracks physical units across all transformations (Fourier domain, digital filtering, calculus, and peak detection).
import numpy as np
from elevenone import Signal, s, V, Hz
# Create a noisy sinusoidal signal with physical units
t = np.linspace(0, 10, 1000) * s
v = (np.sin(2 * np.pi * 5 * t.value) + 0.3 * np.random.randn(1000)) * V
sig = Signal(x=t, y=v, x_name="Time", y_name="Voltage")
# 1. Digital Filtering (Low-pass Butterworth filter)
filtered_sig = sig.lowpass_filter(cutoff=10 * Hz, order=4)
# 2. Peak Detection & Visualization
fig, ax = filtered_sig.plot_peaks(distance=50, prominence=0.5, title="Filtered Signal Peak Detection")
# 3. Fourier Analysis (FFT & IFFT)
spectrum = filtered_sig.fft() # Returns a Signal in Frequency domain (Hz vs V)
reconstructed = spectrum.ifft() # Reconstructs time-series Signal
# 4. Numerical Calculus (Preserving dimensional units)
velocity_sig = sig.differentiate() # Returns d(Voltage)/d(Time) [V/s]
integrated_sig = sig.integrate() # Returns ∫(Voltage)d(Time) [V·s]
Key features of Signal include:
- Peak & Valley Detection:
find_peaks(),find_valleys(), andplot_peaks()with customizable visual markers and annotations. - Digital Filtering:
lowpass_filter(),highpass_filter(),bandpass_filter(),bandstop_filter(),savgol_filter(), andmoving_average(). - Fourier & Time-Frequency Analysis:
fft(),ifft(),stft(),istft(),psd(), andenvelope(). - Calculus & Resampling:
differentiate(),integrate(),resample(),detrend(), andremove_offset().
Documentation
The complete documentation, including installation instructions, getting-started guides, usage examples, and feature references, is available at:
License
ElevenOne is open-source software released under the MIT License. You are free to use, modify, and distribute it, including for commercial purposes, provided that the copyright and permission notices are retained.
See the LICENSE file for the complete license text.
Metadata
Release files for ElevenOne 0.7.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 | Provenance | Actions |
|---|---|---|---|---|
| elevenone-0.7.0.tar.gz | 95.5 kB | With provenance | Details for elevenone-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elevenone-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for elevenone-0.7.0-py3-none-any.whl |
Total release size: 194.9 kB
Release files / elevenone-0.7.0.tar.gz
| Download URL | elevenone-0.7.0.tar.gz |
|---|---|
| Size | 95.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe15c56cdb17bc0841414bcbfe8f7cb0b278ded922e3819a32902b07747e0bb0
|
|
BLAKE2b-256 checksum How to use checksums |
69c77556c817bcaf8e2c519821ab29f89f71d2c23c9a6c651927397e50ed26f6
|
| 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 20, 2026.
Transparency logRelease files / elevenone-0.7.0-py3-none-any.whl
| Download URL | elevenone-0.7.0-py3-none-any.whl |
|---|---|
| Size | 99.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9110925b667a64ea96a405c72f22c55b62482e4c23de47a6b1687218b436dbe0
|
|
BLAKE2b-256 checksum How to use checksums |
a33958e0b87bcc6c0edd8b1e034e699bed29f6224784e5c67542b3cf313d046e
|
| 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 20, 2026.
Transparency logSecurity for ElevenOne 0.7.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
Both files in this release have been uploaded with provenance metadata.
Attestation for elevenone-0.7.0.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 20, 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.