Skip to content

a17sol/levers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levers

Levers is a Python package for visualizing lever mechanisms and animated geometry.
It lets you describe a moving mechanism or geometric construction in just a few lines of code and visualize it using pluggable renderers.

Chebyshev lambda linkage

Features

  • Concise and natural syntax for describing mechanical linkages and geometry
  • Optional rendering backends — choose what fits your use case
  • No dependencies required for the core functionality

Renderers and Installation

Requires Python 3.12+.

Although the project core has no external dependencies, vizualisation is performed via renderer plugins, each with its own requirements. You can choose optional dependencies at installation depending on the renderer you plan to use.

Currently, the package includes two renderer plugins:

  • PyGameRenderer — install with:
    pip install levers[pygame]
  • PyQtGraphRenderer — install with:
    pip install levers[pyqt]

To install both:

pip install levers[all]

Examples

Check the examples/ folder to quickly learn how to use Levers!

About

A Python package for visualizing lever mechanisms and animated geometry

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages