Skip to main content

Classes for managing jack client connections.

Project description

conn_jack

Classes for managing jack client connections.

These differ from the JACK Client for Python (jack), in that it makes possible connecting and disconnecting ports which are not "owned" by a client created in your process.

There is also an (optionally installed) QtJackConnectionManager which emits signals when events of interest happen. In order to use the QtJackConnectionManager class, you must install with the "[Qt]" option, like so:

$ pip install conn_jack[Qt]

Using the plain (non-Qt) version

Import JackConnectionManager:

from conn_jack import JackConnectionManager

Create an instance using standard constructor syntax ...

self.conn_man = JackConnectionManager()

... or use it as a context manage:

with JackConnectionManager() as conn_man:

The non-Qt version uses callbacks to inform your program when events of interest happen. Register your functions as callbacks using the "on_" methods:

self.conn_man.on_client_registration(self.jack_client_reg)
self.conn_man.on_port_registration(self.jack_port_reg)
self.conn_man.on_shutdown(self.close)

Using the Qt version:

In order to use the Qt version, you must import "QtJackConnectionManager" from the conn_jack.qt module.

from conn_jack.qt import QtJackConnectionManager
self.conn_man = QtJackConnectionManager(client_name = "DescriptiveClientName")

The Qt version forsakes callbacks for the Qt signal/slot mechanism. To subscribe to signals which are generated on events of interest:

self.conn_man.sig_client_registration.connect(self.slot_client_registration)
self.conn_man.sig_port_registration.connect(self.slot_port_registration)
self.conn_man.sig_shutdown.connect(self.slot_shutdown)

Refer to the help text to determine the function arguments to use in the callbacks or slots.

Help

Refer to the help for conn_jack. From python:

>>> import conn_jack
>>> help(conn_jack)

>>> import conn_jack.qt
>>> help(conn_jack.qt)

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

conn_jack-1.3.2.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

conn_jack-1.3.2-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file conn_jack-1.3.2.tar.gz.

File metadata

  • Download URL: conn_jack-1.3.2.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for conn_jack-1.3.2.tar.gz
Algorithm Hash digest
SHA256 ef8a65b8145c3e10c817ea4584247cd7d886eaca56cb365132ad742d628b13d5
MD5 2126defff3b1a06c2ba3ba818559a245
BLAKE2b-256 2135f178185f8f28e2382f19a4c26b8c03002abeb3ad9fdef06bd80181370103

See more details on using hashes here.

File details

Details for the file conn_jack-1.3.2-py2.py3-none-any.whl.

File metadata

  • Download URL: conn_jack-1.3.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for conn_jack-1.3.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f688551bce9974cdf887aba8f82dddff472fba7eece7ccf85f952b85d52b9ec2
MD5 d0b79dfb16f06b433fe129d5e71ed0cb
BLAKE2b-256 3d95699d8817f33fe4eca4a2181f955aafd2c3508ab972ab7ee171f92c94fd8b

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