Skip to main content

Native Python PTSL (Pro Tools Scripting Library) RPC interface

Project description

Lint and Test codecov Documentation Status GitHub last commit

Pro Tools Version - 2025.10.0 PTSL Version - 2025.10.0

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}

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

py_ptsl-601.0.0.tar.gz (92.7 kB view details)

Uploaded Source

Built Distribution

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

py_ptsl-601.0.0-py3-none-any.whl (121.7 kB view details)

Uploaded Python 3

File details

Details for the file py_ptsl-601.0.0.tar.gz.

File metadata

  • Download URL: py_ptsl-601.0.0.tar.gz
  • Upload date:
  • Size: 92.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_ptsl-601.0.0.tar.gz
Algorithm Hash digest
SHA256 cbef423b2aae46a9a7c2b17dabb211e54240b31b5e89389e487f76f90327a6f2
MD5 8999db3fbbd833510b1b76480f8040a0
BLAKE2b-256 a4bb7e5e171cb4d034210deb3f1e20cc3a40a1209c3544b1bdfd9d442766b3d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_ptsl-601.0.0.tar.gz:

Publisher: python-publish.yaml on iluvcapra/py-ptsl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_ptsl-601.0.0-py3-none-any.whl.

File metadata

  • Download URL: py_ptsl-601.0.0-py3-none-any.whl
  • Upload date:
  • Size: 121.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_ptsl-601.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aae06f4906ae7a890b37efcb49b8aefa61aa533df336310f6c71a4403c383e5a
MD5 b225d113472ac6cd64b34de7e34f38eb
BLAKE2b-256 6d15d16b47f65abe082d7f784622b40a9a1258ad6748be2352070bb1f7c126b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_ptsl-601.0.0-py3-none-any.whl:

Publisher: python-publish.yaml on iluvcapra/py-ptsl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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