Skip to main content

svg schematics

Project description

Author:

Ken Kundert

Version:
1.1.0
Released:

2020-08-18

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:

doc/images/Golden/rlc.svg

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.

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

svg_schematic-1.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

svg_schematic-1.1.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file svg_schematic-1.1.0.tar.gz.

File metadata

  • Download URL: svg_schematic-1.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for svg_schematic-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2ebc6cc7ef0d73eac4d7ba5b9cb43cccbdd0ec070df06ff1ff7271fb6806abb9
MD5 bad29ace671dea90b5d2d819f2851c80
BLAKE2b-256 ecd52a11d2ac336ff4c8342bbdab5f177904ec02f5547b69dffefab588a7560e

See more details on using hashes here.

File details

Details for the file svg_schematic-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: svg_schematic-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.7

File hashes

Hashes for svg_schematic-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b689d474edc883fc2b6218bee47c386cfe8498938d93461612b0291cd91c567a
MD5 58dfe9940a860e0c254053fa760e44fe
BLAKE2b-256 a199d7814891a1f35a50221fa00567f640a8daabcb5d1079a590117a95721034

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