Skip to main content

Wwise Authoring API (Waapi) Client for Python

Decoupled autobahn WAMP client with support for plain options and bindable subscription callbacks.

Requirements

  • Non-EOL Python 3.x version (see tox.ini for versions tested). Refer to the official Status of Python versions
  • Wwise instance with the Wwise Authoring API enabled (Project > User Preferences... > Enable Wwise Authoring API)

Setup

On Windows, it is recommended to use the Python Launcher for Windows which is installed with Python 3 from python.org.

  • Windows: py -3 -m pip install waapi-client
  • Other platforms: python3 -m pip install waapi-client

Usage

from waapi import WaapiClient

with WaapiClient() as client:
    result = client.call("ak.wwise.core.getInfo")

The with statement automatically closes the connection and unregisters subscribers. To keep the connection alive, instantiate WaapiClient and call disconnect when you are done.

from waapi import WaapiClient

# Connect (default URL)
client = WaapiClient()

# RPC
result = client.call("ak.wwise.core.getInfo")

# Subscribe
handler = client.subscribe(
    "ak.wwise.core.object.created",
    lambda object: print("Object created: " + str(object))
)

# Bind a different callback at any time
def my_callback(object):
    print("Different callback: " + str(object))

handler.bind(my_callback)

# Unsubscribe
handler.unsubscribe()

# Disconnect
client.disconnect()

Be aware that failing to call disconnect will result in the program to appear unresponsive, as the background thread running the connection will remain active.

Contribute

This repository accepts pull requests. You may open an issue for any bugs or improvement requests.

Local Install

You may install the package locally using either pip or pipenv.

Clone this repository, then from the repository root run:

  • Windows: py -3 -m pip install -e .
  • Other platforms: python3 -m pip install -e .

or

pipenv install --three

Running the Tests

Install the tox package:

  • Windows: py -3 -m pip install tox
  • Other platforms: python3 -m pip install tox

Open a blank project in Wwise, then you may execute tox in the terminal from the root of the repository

The test suite will run for all supported versions of Python. Use -e pyXX to run for a single version, e.g., tox -e py312 for Python 3.12).

Release files for waapi-client 0.8.1

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

Source distribution (sdist)

Source distribution for waapi-client 0.8.1
File Size Uploaded
waapi_client-0.8.1.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for waapi-client 0.8.1
File Interpreter ABI Platform
waapi_client-0.8.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.9 kB

Release files / waapi_client-0.8.1.tar.gz

Download URL waapi_client-0.8.1.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dbe52765cadd324f1a472e00f41c5a0d143f592549c69be143c961f09d6cbb45
BLAKE2b-256 checksum
How to use checksums
4cab6a3dce4bade5c988e83ecbdf059e4f0a73b692596764abc6f192ee4966c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / waapi_client-0.8.1-py3-none-any.whl

Download URL waapi_client-0.8.1-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55f2eca0f93467439e65d847b556e2dfafed9d9dfabbd63f4ec5c47b9764b7a7
BLAKE2b-256 checksum
How to use checksums
02d250df6777b3941dce20e188591f6419a9943fe9cfd6c753e253254c39432a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2
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