Skip to main content

PyAltiumRun

PyPI version PyPI version PyPI version

A Python interface that can run Delphiscript scripts in Altium Designer.

New features can be requested in the Github Issues.

Installation requirements

Altium designer must be installed before running this library.

Quick start

from PyAltiumRun.AltiumRun import AltiumRun

run = AltiumRun(use_internal_logger=True)                       #Create runner object
run.clear_log_file()                                            #Clear the logs of the previous run
run.set_project_to_open(r"Altium_project/Arduino_uno.PrjPcb")   #Define an Altium project to open
run.add_script(r"Altium_scripts/generate_docs.pas")             #Add a script to the runner
run.set_function("gen_docs", "Arduino_uno")                     #Set the function to run
run.run()                                                       #Run

Delphi addons

These are the delphi script addons created.

Logger

For this module to work the "use_internal_logger" parameter of the runner constructor should be True.

This module creates a log file in the data folder under the scripting project. It logs everything in the following format:

[DAY/MONTH/YEAR HOUR:MINUTE:SECOND:MILISECOND]: LOGGED_STRING

Resulting in a log that looks like this:

[09/01/22 10:53:30.573]: Starting script
[09/01/22 10:53:30.576]: Opening project: Altium_project/Arduino_uno.PrjPcb
[09/01/22 10:53:30.657]: Arduino_uno

Metadata

Release files for PyAltiumRun 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyAltiumRun 0.1.5
File Size Uploaded
PyAltiumRun-0.1.5.tar.gz 8.4 kB Details

Release files / PyAltiumRun-0.1.5.tar.gz

Download URL PyAltiumRun-0.1.5.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
65318d97b5ab291a32d0e0f3a378c0e66df2d25d246020c223e356e6fa331276
BLAKE2b-256 checksum
How to use checksums
5e2b7005a25c5c56c0a775a57ffe7a36fe8f195f5ee93aa75dd59d2fdf5f26c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.8

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page