Skip to main content

Geometric Sketching Utility for Python

Project description

https://github.com/rvodden/pysketcher/workflows/Tests/badge.svg https://badgen.net/pypi/v/pysketcher?icon=pypi https://api.codeclimate.com/v1/badges/eae2c2aa97080fbfed7e/maintainability https://codecov.io/gh/rvodden/pysketcher/branch/master/graph/badge.svg?token=AHCKOL75VY https://readthedocs.org/projects/pysketcher/badge/?version=latest&style=flat https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white https://img.shields.io/badge/hypothesis-tested-brightgreen.svg https://img.shields.io/badge/code%20style-black-000000.svg https://badgen.net/github/dependabot/rvodden/pysketcher?icon=github

This is alpha software - the interface is likely to change with every release prior to 0.1.0.

PySketcher is a modern Python library designed to make creating geometric, mathematical and physical diagrams very easy.

This library is continues the legacy of Hans Petter Langtangen. Work done since he sadly passed in 2016 includes:

  1. The MatlibplotDraw object is no longer global and is no longer tightly coupled to the shape object. There is now a DrawingTool interface which this class implements.

  2. Code is organised into multiple files and published on pypi.

  3. Shapes are immutable. This means functions such as rotate return modified copies of the original shape, rather than altering the shape on which they are called.

  4. Angles are in radians not degrees.

  5. The Composition object is used more consistently. Previously objects such as Beam were direct children of Shape which led to code repetition.

Please see the documentation for more information.

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

pysketcher-0.0.13.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

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

pysketcher-0.0.13-py3-none-any.whl (95.6 kB view details)

Uploaded Python 3

File details

Details for the file pysketcher-0.0.13.tar.gz.

File metadata

  • Download URL: pysketcher-0.0.13.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pysketcher-0.0.13.tar.gz
Algorithm Hash digest
SHA256 7d48cefd22eb573a549e8c89fb233c6a58b8e2e5ac52fb7c7662ae31b8fe937d
MD5 eb8b186c46d182407db92879f849652e
BLAKE2b-256 e5ded22a366ec0d523d283521c39804bc2d02d89888e0d5dd1075cbc41b0c8c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysketcher-0.0.13.tar.gz:

Publisher: release.yml on rvodden/pysketcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pysketcher-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: pysketcher-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 95.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pysketcher-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ab7c419f63587269ce94e3302147e5c0a3ec292ce75cd4b0ce04c149cc130f0a
MD5 74dc3639b0971ff0d24d86a745d6abef
BLAKE2b-256 4630f01a78ddf7803f0c2dc03ec4e3d5d53ba43c58a725531ccac31ae6943fb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pysketcher-0.0.13-py3-none-any.whl:

Publisher: release.yml on rvodden/pysketcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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