AYON Manager Plugin for OpenAssetIO hosts.
Project description
AYON OpenAssetIO Manager Plugin
This is implementing manager interface for OpenAssetIO. With it, any OpenAssetIO enabled host (DCC) can be used to load data from AYON. This is a work in progress, and it depends on OpenAssetIO Traits to be supported by the host. Once up adn running, OpenAssetIO host should understand AYON URIs in a form of
ayon+entity://{project}/{asset}?product={product}&version={version}&representation={representation}
like
ayon+entity://TestProject/assets/Alice?product=modelMain&version=v002&representation=abc
Installation
To manage your installation, use ./tools/manage.ps1 on Windows and ./tools/manage.sh on Linux and macOS. It accepts
commands as arguments, run it without arguments to see the list of available commands.
create-env- creates virtual environment for development using Poetrygenerate-traits- generates Python traits using openassetio-tratsgen fromtraits.ymlfile and puts them intoayon_traitsmodule.run-tests- runs test
Building
You can build the plugin as Python wheel using Poetry. Run poetry build to build the wheel.
It will be located in dist directory.
Usage
To use this plugin, make sure you point OPENASSETIO_PLUGIN_PATH environment variable to the directory where this plugin is located.
You can use OPENASSETIO_DEFAULT_CONFIG pointing to pyproject.toml file to set default configuration for the plugin.
Also make sure plugin Python environment is available inside the host. So far it needs only requests, openassetio and openassetio_mediacreation.
To tell manager how to connect to AYON, set AYON_SERVER_URL environment variable to the server address and AYON_API_KEY to the API key.
To get the correct formatted paths, you need to have AYON site id - unique identifier of your local site that can be determined from hostname and platform. Server can determine your site id from that and use it for all subsequent requests. Site id is stored on server once you first run AYON launcher and connect it to the server. In other words, you need to run AYON launcher at least once to get correct results. This needs to be handled later on more gracefully.
Development
To run tests, you need to configure your AYON server in tests/conftest.py file. Set AYON_SERVER_URL and AYON_API_KEY at the top of the file.
TODO:
- Handle site id determination more gracefully
- Better error handling
- Better logging
- More tests
- Implement missing methods
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ayon_openassetio_manager_plugin-0.1.2.tar.gz.
File metadata
- Download URL: ayon_openassetio_manager_plugin-0.1.2.tar.gz
- Upload date:
- Size: 34.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
607a47e2b540107328b16da95bb0e6daba75c7bbe4bf0debb456df62dd9478c4
|
|
| MD5 |
27e8981da82a492589b616aeeb876b3b
|
|
| BLAKE2b-256 |
7588d8f2f42f61975851e0d5cd45edf31c9bf048d116284213db76e77f12d642
|
File details
Details for the file ayon_openassetio_manager_plugin-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ayon_openassetio_manager_plugin-0.1.2-py3-none-any.whl
- Upload date:
- Size: 47.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.13 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c69fdc4acea92bac3460b1178bcb1da551240f8df4178381c971f31a854b544
|
|
| MD5 |
808a7df10895c21e3549eb9e9f987910
|
|
| BLAKE2b-256 |
d2a48358fb8e5c9a180ac1e5002478904337d5d173127008e332e1e5f34a972b
|