Skip to main content

Generate graphical pinout references for electronic hardware.

Project description

pinout

GitHub GitHub last commit Read the Docs

SVG diagram creation from Python code - pinout provides an easy method of creating pinout diagrams for electronic hardware.

Example diagram created from pinout.

Please visit pinout.readthedocs.io for the full quick start tutorial and detailed documentation on all options provided by the pinout package.

Quick start

pinout can be easily installed with pip and provides some sample files that demonstrate key features.

Install

Using a virtual environment is recommended; Start by installing the pinout package. Either clone this repo and pip install it or install from PyPi:

pip install pinout

# Or upgrade to the latest version
pip install --upgrade pinout

Duplicate sample files

A normal pinout diagram will include a hardware image, stylesheet, data file, and a Python script. Sample files are included with the package and can be duplicated for your use. Open a command line (with enabled virtual environment if you are using one) in the location you plan to work and enter the following:

py -m pinout.manager --duplicate quick_start

# expected output:
# >>> data.py duplicated.
# >>> hardware.png duplicated.
# >>> pinout_diagram.py duplicated.
# >>> styles.css duplicated.

Once you have these file a finished diagram can be generated from a command line py -m pinout.manager --export pinout_diagram.py diagram.svg. An SVG file is created and can be conveniently view in a browser.

SVG diagram

For a detailed walk through pinout_diagram.py and more information on pinout please visit pinout.readthedocs.io.

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

pinout-0.1.1.tar.gz (64.3 kB view details)

Uploaded Source

Built Distribution

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

pinout-0.1.1-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file pinout-0.1.1.tar.gz.

File metadata

  • Download URL: pinout-0.1.1.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pinout-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4cbe84932e6b83879c5b1a0bc1fd490a883c71a7db5d364e1f47f032dd3afad0
MD5 8a143e3e2cf8fdaa65608a3501e04a51
BLAKE2b-256 8b025a6d5194670e6e12e10d720ef6eff115f31baf27bd1354ada7953ce91c4c

See more details on using hashes here.

File details

Details for the file pinout-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pinout-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pinout-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c227b49a35d9695fd7e0637e1e2920de1a54cbbcd52077a1583e6223e970175
MD5 97ee0fcbf51ebbe83a28e63208add813
BLAKE2b-256 0e748d77cf5f1c1ac58f8178f215cd2b5bc8ee4e480faf853be4a700434fa544

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