Skip to main content

Geometric Solver and Visualizer for 2D Generic Belt Systems

This module provides the Belt and Circle classes to define, validate, and solve the geometry of a closed-loop belt-like system with no restrictions on the number of pulleys. It also supports custom routing topologies (front/back) via the BeltFace class, and dynamic length optimization via SciPy. Visualization is provided through Matplotlib. Axes and Figures are returned.

Examples

Standard 2-Pulley System

c1 = Circle(40.0, (0, 0), name="Drive Motor")
c2 = Circle(40.0, (250, 0), name="Driven Wheel")

pulleys = [c1, c2]
routing = [BeltFace.FRONT, BeltFace.FRONT]

belt = Belt(circles=pulleys, topology=routing, allow_crossing=False)
print(f"Total Belt Length: {belt.total_length:.2f}")
belt.plot()

Three-Pulley System with Mixed Routing and Optimization

import numpy as np

c1 = Circle(52 * 2 / np.pi / 2, (0, 0), name="c1")
c2 = Circle(23 * 2 / np.pi / 2, (10, 50), name="c2")
c3 = Circle(20 * 2 / np.pi / 2, (0, 78.87), name="c3")

pulleys = [c1, c2, c3]
routing = [BeltFace.FRONT, BeltFace.BACK, BeltFace.FRONT]

belt = Belt(circles=pulleys, topology=routing, allow_crossing=True)
print(f"Original Length: {belt.total_length:.2f}")

# Slide the tensioner (c2) along the X-axis to reach exactly 240 units
belt.find_movable_circle_position(
    target_length=240, movable_circle_idx=1, slide_vector=np.array([1, 0])
)
print(f"New Length: {belt.total_length:.2f}")
belt.plot()

4-Pulley System (Default Topology)

c1 = Circle(40.0, (0, 0), name="c1")
c2 = Circle(40.0, (250, 0), name="c2")
c3 = Circle(20.0, (240, -75), name="c3")
c4 = Circle(40.0, (100, -160), name="c4")

pulleys = [c1, c2, c3, c4]

# Topology defaults to all BeltFace.FRONT if not specified
belt = Belt(circles=pulleys, allow_crossing=False)
print(f"Total Belt Length: {belt.total_length:.2f}")
belt.plot()

Author: Vincent Wallsten
Date: 2026-06-23

Metadata

Release files for pybeltsolver 0.1.1

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

Source distribution (sdist)

Source distribution for pybeltsolver 0.1.1
File Size Uploaded Provenance Actions
pybeltsolver-0.1.1.tar.gz 9.4 kB Without provenance Details for pybeltsolver-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pybeltsolver 0.1.1
File Interpreter ABI Platform Actions
pybeltsolver-0.1.1-py3-none-any.whl Python 3 none any Details for pybeltsolver-0.1.1-py3-none-any.whl

Total release size: 19.0 kB

Release files / pybeltsolver-0.1.1.tar.gz

Download URL pybeltsolver-0.1.1.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c4124a7e63150227b3ced2ba7c0356fe7349914830dea255770951b468db411
BLAKE2b-256 checksum
How to use checksums
6437eec72bbee63944631cdfd446c8c57ec7e34875a69b00151096257a795e73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pybeltsolver-0.1.1-py3-none-any.whl

Download URL pybeltsolver-0.1.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c2c35402913dd0e3094d7c24c1b7d0546a531f700ebb9ea35a5b84c7bf64a52
BLAKE2b-256 checksum
How to use checksums
debf145e846d76a0403f9f05a1451c0162ec6b5ed18c967cdd3b8827651b936a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for pybeltsolver 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

0.1.1 This release

2 release files No 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