Wwise Authoring API client.
Project description
Wwise Authoring API (Waapi) Client for Python
Decoupled autobahn WAMP client with support for plain options and bindable subscription callbacks.
Requirements
- Python 3.6+
- Wwise instance with the Wwise Authoring API enabled (
Project > User Preferences... > Enable Wwise Authoring API
)
For users
Setup
For compatibility with Python 2 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
# 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()
For developers
Setup
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
Open a blank project in Wwise, then you may execute the test on terminal from the root of the repository by running:
- Windows:
py -3 setup.py test
- Other platforms:
python3 setup.py test
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
waapi-client-0.1b8.tar.gz
(10.8 kB
view hashes)
Built Distribution
Close
Hashes for waapi_client-0.1b8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20bbc74f0e434c72a9d7c444d05406cb5fec83cc5bd365ae6447cd169fd3a000 |
|
MD5 | ab5abb20303b2b738adea2c06878a473 |
|
BLAKE2b-256 | f3c6e17670d3981366a7028d21e184d75719a9fec280506f0159642b069fead4 |