Skip to main content

A Python package for visualizing lever mechanisms and animated geometry

Project description

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

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

levers-0.2.0.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

levers-0.2.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file levers-0.2.0.tar.gz.

File metadata

  • Download URL: levers-0.2.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for levers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c9c299b82f92e5164ba3b00c052d113220557191c8de44cc47e98b17b25b2e27
MD5 9d3291ec2cd7af0a581148fda3d6e243
BLAKE2b-256 406568eefeefdc4494db5b66a7c49a237ffc8b03ac4752e5fe816c523bbd1b29

See more details on using hashes here.

File details

Details for the file levers-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: levers-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for levers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ddf0f5e8f5c9eca1ed06f3e97409ef5461c926a38afa0946afa1217930ae2f4
MD5 a50d775f5b6822f71827d7e9072cccd3
BLAKE2b-256 1a36e8480f5f81e8f7c63b1a183e558b8377c644abfa9e04b8fb9820a6daf57d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page