Registry / data / springable

springable

JSON →
library1.0.1pypypi✓ verified 80d ago

Nonlinear spring assembly solver and visualization library. Version 1.0.1 supports Python >=3.10. Uses flexel formulation for modeling complex spring networks. Active development, monthly releases.

pip install springable
INSTALL
IMPORT
SIG · SPRINGABLE
S
springable
datapythonv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Flexel
import springable
from springable import Flexel

Basic usage: create nodes and springs, solve, and visualize.

from springable import Node, Spring, Assembly # Create nodes n1 = Node(0, 0) n2 = Node(1, 0) n3 = Node(0.5, 0.866) # Create springs spring1 = Spring(n1, n2, stiffness=10.0, rest_length=1.0) spring2 = Spring(n2, n3, stiffness=10.0, rest_length=1.0) spring3 = Spring(n3, n1, stiffness=10.0, rest_length=1.0) # Assemble and solve assembly = Assembly([n1, n2, n3], [spring1, spring2, spring3]) solution = assembly.solve() print(solution.node_positions) # Plot assembly.plot()
Debug
Known issues
gotchaRest lengths must be positive floats; zero or negative values cause solver errors.
fix
Ensure rest_length > 0 for all springs.
affects: all
breakingImport paths changed between v0.x and v1.0.0; submodule imports no longer work.
fix
Use from springable import Flexel, Spring, Node, Assembly instead of from springable.x import y.
affects: 0.x
deprecatedThe old syntax using ast.Num is deprecated and will be removed in Python 3.14. Version 1.0.1 fixes this bug.
fix
Upgrade to 1.0.1.
affects: <=1.0.0
gotchaAssembly.solve() may return List[float] or generator; check return type.
fix
Wrap with list() if you need all results immediately.
affects: all
Upgrade
Version history
1.0.1latest on PyPI · released Oct 13, 2025
Audit
Dependencies
numpyrequiredCore numerical operations
matplotlibrequiredVisualization
Agent activity
9 hits · last 30 days
node
8
OpenAI (training)
1
Resources
springable — pip install springable · libregistry