draw2Svg
This is fork to drawSvg, in which we try to readjust its coordinate system to follow SVG standard
A Python 3 library for programmatically generating SVG images (vector drawings) and rendering them or displaying them in a Jupyter notebook.
Most common SVG tags are supported and others can easily be added by writing a small subclass of DrawableBasicElement or DrawableParentElement.
An interactive Jupyter notebook widget, drawSvg.widgets.DrawingWidget, is included that can update drawings based on mouse events.
Install
draw2Svg is (not available yet) available on PyPI, but on test PyPI:
$ pip install -i https://test.pypi.org/simple/ draw2Svg
Prerequisites
Cairo needs to be installed separately. When Cairo is installed, drawSvg can output PNG or other image formats in addition to SVG. See platform-specific instructions for Linux, Windows, and macOS from Cairo. Below are some examples for installing Cairo on Linux distributions and macOS.
Ubuntu
$ sudo apt-get install libcairo2
macOS
Using homebrew:
$ brew install cairo
For more detailed manuals, go to our website: https://draw2svg.netlify.app/
Metadata
Release files for draw2Svg 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| draw2Svg-2.0.0.tar.gz | 457.6 kB | Without provenance | Details for draw2Svg-2.0.0.tar.gz |
Release files / draw2Svg-2.0.0.tar.gz
| Download URL | draw2Svg-2.0.0.tar.gz |
|---|---|
| Size | 457.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3582b2b7a83bad60ac4b0e51ef0389b207f4a39b498e548324e65f4ec30f3a9b
|
|
BLAKE2b-256 checksum How to use checksums |
b2ab7e65943b9165fe55210e4eb45b1817585b35b9d130b9deffd30d0a3eeffd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for draw2Svg 2.0.0
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.