Registry / data / splines

splines

JSON →
library0.3.3pypypi✓ verified 79d ago

A Python library for creating and evaluating splines in Euclidean space and beyond, including B-splines and Bézier curves. Current version is 0.3.3, released in 2021. The library is under active development with irregular release cadence.

pip install splines
INSTALL
IMPORT
SIG · SPLINES
S
splines
datapythonv0.3.3
Install
3.5s avg
Import
Disk
89MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 89.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.5s · import 0.000s · 86MB
89MB installed
● package 89MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bernstein
from splines import Bernstein
from splines import UnitBSpline
CatmullRom
from splines import CatmullRom
CubicHermite
from splines import CubicHermite

Create a uniform B-spline and evaluate at a parameter value.

from splines import UnitBSpline import numpy as np knots = [0, 0, 0, 1, 2, 3, 4, 4, 4] controls = [0, 1, 0, 1, 0] spline = UnitBSpline(knots, controls) print(spline.evaluate(0.5))
Debug
Known issues
gotchaThe `UnitBSpline` class expects a specific knot vector format with repeated knots at the ends for clamped splines. Using a non-clamped knot vector may produce unexpected results.
fix
Ensure knot vector has multiplicity equal to degree+1 at start and end.
affects: all
deprecatedOlder versions used an `evaluate` method that returned a single point; newer versions may return an array. Check documentation for your version.
fix
Update code to handle array output or upgrade to latest version.
affects: <0.3.0
gotchaThe library does not support non-uniform rational B-splines (NURBS) out of the box. Attempting to use weights will cause errors.
fix
Use a different library like `numpy` or `scipy.interpolate` for NURBS.
affects: all
Upgrade
Version history
0.3.3latest on PyPI · released Jun 25, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
splines — pip install splines · libregistry