py-ptsl
Native Python PTSL (Pro Tools Scripting Library) RPC interface
Important Notice!
This software is developed by enthusiasts and is not a work of or supported by Avid. Developers who wish to contribute to this project should obtain the PTSL SDK from Avid's Developer site for the most current documentation and protobuf source files.
Example
See the examples directory for scripts demonstrating how to use the client.
- session_info.py - This example prints a list of gettable properties from the currently-open session.
- print_tracks.py - This example prints a list of every track in the currently-open session, including state information like selection, mute and solo state, track color and track ID.
- make_session.py - Creates a new session interactively from the terminal.
- pt_set.py - Allows several session setup options to be set from the terminal.
- pt_pasteboard.py - Demonstrates triggering cut/copy/paste actions.
- toolshell.py - Implements a command line interface for Pro Tools.
Sending Commands To Pro Tools with the Engine class
The Engine class exposes ptsl commands with a method call interface.
from ptsl import open_engine
with open_engine(company_name="MY_COMPANY", application_name="MY_TOOL") as engine:
session_name = engine.session_name()
Sending Commands to Pro Tools from the Command Line
The module implements a main function that can be called from the shell. Pass request JSON to the standard input and any response will be passed to standard output.
bash-3.2$ poetry run python3 -m ptsl GetTrackList <<JSON
{"pagination_request": {
"limit": 100, "offset": 0
},
"track_filter_list": [
{"filter": 0, "is_inverted": false}
]
}
JSON
{'pagination_response': {'total': 4, 'offset': 0, 'limit': 100}, 'track_list':
[{'name': 'Au dio 1', 'type': 'TT_Audio', 'format': 'TF_Mono', ...
bash-3.2$ poetry run python3 -m ptsl -n GetPTSLVersion
{"version": 2025}
Metadata
Release files for py-ptsl 602.0.1
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 | Actions |
|---|---|---|---|---|
| py_ptsl-602.0.1.tar.gz | 94.8 kB | With provenance | Details for py_ptsl-602.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| py_ptsl-602.0.1-py3-none-any.whl | Python 3 | none | any | Details for py_ptsl-602.0.1-py3-none-any.whl |
Total release size: 217.1 kB
Release files / py_ptsl-602.0.1.tar.gz
| Download URL | py_ptsl-602.0.1.tar.gz |
|---|---|
| Size | 94.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc58d118e6cc817cc6f1d26ee984fa38c13c5085c3bd9028473913397f62d6c1
|
|
BLAKE2b-256 checksum How to use checksums |
6453457123809a29da08bd04b6ec292a0b0c5f950ee727cfc8d0eaef38421e97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / py_ptsl-602.0.1-py3-none-any.whl
| Download URL | py_ptsl-602.0.1-py3-none-any.whl |
|---|---|
| Size | 122.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4dac929731a24d6169f868d947526f23d0ddceaa24bae2090ee8b0a823d2de8d
|
|
BLAKE2b-256 checksum How to use checksums |
aa47b8cd5ed23f2a23fc0bc7265ea6359bafd54c38e356d6b94591fcbd4a9158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for py-ptsl 602.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for py_ptsl-602.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA 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.