Skip to main content

Build and Release on GitHub GitHub Release Build and Release on PyPi PyPI Release Documentation Status

pyAltiumLib

PyAltiumLib is a tool to read Altium Designer library files. The included components are extracted. Metadata such as the description and the name of the component can be listed. It is also possible to visualize the component using the svgwrite package.

See full documentation here: ReadTheDocs

This tool is created based on the details given in several open-source repositories:

Example - Read the File and Retrieve Components

To install pyaltiumlib, use the following command:

pip install pyaltiumlib

Load the file and retrieve the list of components.

import pyaltiumlib

# Path to the .schlib or .pcblib file
filepath = "Libfile.schlib"

# Load File
LibFile = pyaltiumlib.read(filepath)

# Read Meta Data
json = LibFile.read_meta()

# Get a List of All Components
all_parts = LibFile.list_parts()

Example - Render Components as SVG

Render each component as an SVG file. The components are saved as individual SVG files in the img_sch directory.

import svgwrite

# Iterate over all components to draw them
for partname in all_parts:

    # Choose element
    Component = LibFile.get_part(partname)

    # Create a new image with a white background
    dwg = svgwrite.Drawing(f"img_sch/{partname}.svg", size=(400, 400))

    # Draw component on svg drawing with size 400px 400px
    Component.draw_svg(dwg, 400, 400)

    # Save the SVG
    dwg.save()

Footprint Symbol

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaltiumlib-0.7.tar.gz (40.1 kB view details)

Uploaded Source

Built Distribution

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

pyaltiumlib-0.7-py3-none-any.whl (67.8 kB view details)

Uploaded Python 3

File details

Details for the file pyaltiumlib-0.7.tar.gz.

File metadata

  • Download URL: pyaltiumlib-0.7.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for pyaltiumlib-0.7.tar.gz
Algorithm Hash digest
SHA256 8ab0a1e0ef5227a8173c3129d6745b1dfdf217d542107707cbd3761e6d51d978
MD5 60099ae540b267247fdddb13eee0dc34
BLAKE2b-256 27a1d71be7f6825c8d1d8b86f2a3d60901d6fd8273492c1761b18c6680ee1b25

See more details on using hashes here.

File details

Details for the file pyaltiumlib-0.7-py3-none-any.whl.

File metadata

  • Download URL: pyaltiumlib-0.7-py3-none-any.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for pyaltiumlib-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6057f9cd9f07d43b3f6699231097bb10a1788bf8784615b662749ec8d63f6501
MD5 5f625d94c2acee8bf90cd896e751a84e
BLAKE2b-256 e49cd57e415ab64641d3b6b7c40a4a448b428a849df059721331b76000396d98

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7 This release

2 files

0.6.2

2 files

0.6.1

2 files

0.6

2 files

0.5

2 files

0.4

2 files

0.2

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page