- Author:
Ken Kundert
- Version:
1.3
- Released:
2025-07-04
This package allows you to create simple SVG schematics and block diagrams without a mouse. Instead, you build the schematic using Python to instantiate and place the symbols and wires.
Simple Example
Here is a simple example that demonstrates the package. It generates the schematic of a shunt RLC circuit:
from svg_schematic import Schematic, Resistor, Capacitor, Inductor, Wire
from inform import Error, error, os_error
try:
with Schematic(filename='rlc.svg'):
r = Resistor(name='R', orient='v')
c = Capacitor(W=r.E, name='C', orient='v')
l = Inductor(W=c.E, name='L', orient='v|')
Wire([r.p, l.p])
Wire([r.n, l.n])
except Error as e:
e.report()
except OSError as e:
error(os_error(e))
When run, it produces the following schematic:
Installation
Requires Python3. Works best with Python3.6 or newer.
You can download and install the latest stable version of the code from PyPI using:
pip3 install --user svg_schematic
You can find the latest development version of the source code on Github.
Documentation
You can find documentation at ReadTheDocs.
Issues
Please ask questions or report problems on Github Issues.
Contributions
Contributions in the form of pull requests are welcome.
I tend to create symbols as I need them. If you create missing symbols, please consider contributing them back to the project.
Metadata
Release files for svg-schematic 1.3
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 | |
|---|---|---|---|---|
| svg_schematic-1.3.tar.gz | 26.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| svg_schematic-1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 53.1 kB
Release files / svg_schematic-1.3.tar.gz
| Download URL | svg_schematic-1.3.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1f8e0a61179ee6e55cab3e665729d9d1b1c5daac18ea8cfc8c20be359f7ba0e
|
|
BLAKE2b-256 checksum How to use checksums |
8a0c8c299ceae75a55956690ce48f3832e01672128c2e98aa61b5df9140cd820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / svg_schematic-1.3-py3-none-any.whl
| Download URL | svg_schematic-1.3-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52a320c4fc72344dff176e32e9ca06882a42d92ddb2fb32d391dba48f82328ad
|
|
BLAKE2b-256 checksum How to use checksums |
5da76005891d8b18c419e59c0cfc6246e8dfd7067d014807e48a810d43467d4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for svg-schematic 1.3
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.