Skip to main content

AYON Python API

Project description

AYON server API

Python client for connection server. Client must be (at least for some time) Python 2 compatible because will be used in DCC that are "older".

AYON Python api should support connection to server with raw REST functions and prepared functionality for work with entities. Must not contain only functionality that can be used with core server functionality.

Module support singleton connection which is using AYON_SERVER_URL and AYON_TOKEN environment variables as source for connection. The singleton connection is using ServerAPI object. There can be created multiple connection to different server at one time, for that purpose use ServerAPIBase object.

Install

AYON python api is available on PyPi:

pip install ayon-python-api

For development purposes you may follow build guide to build and install custom wheels.

Cloning the repository

Repository does not have submodules or special cases. Clone is simple as:

git clone git@github.com:ynput/ayon-python-api.git

Build wheel

For wheel build is required a wheel module from PyPi:

pip install wheel

Open terminal and change directory to ayon-python-api repository and build wheel:

cd <REPOSITORY ROOT>/ayon-python-api
python setup.py sdist bdist_wheel   

Once finished a wheel should be created in ./dist/ayon_python_api-<VERSION>-py3-none-any.


Wheel installation

The wheel file can be used to install using pip:

pip install <REPOSITORY ROOT>/dist/ayon_python_api-<VERSION>-py3-none-any

If pip complain that ayon-python-api is already installed just uninstall existing one first:

pip uninstall ayon-python-api

TODOs

  • Find more suitable name of ServerAPI objects (right now is used con or connection)
  • Add all available CRUD operation on entities using REST
  • Add folder and task changes to operations
  • Enhance entity hub
    • Entity hub should use operations session to do changes
    • Entity hub could also handle 'subset', 'version' and 'representation' entities
    • Missing docstrings in EntityHub -> especially entity arguments are missing
  • Pass docstrings and arguments definitions from ServerAPI methods to global functions
  • Missing websockets connection

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

ayon-python-api-0.1.16.tar.gz (59.5 kB view details)

Uploaded Source

Built Distribution

ayon_python_api-0.1.16-py3-none-any.whl (62.9 kB view details)

Uploaded Python 3

File details

Details for the file ayon-python-api-0.1.16.tar.gz.

File metadata

  • Download URL: ayon-python-api-0.1.16.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for ayon-python-api-0.1.16.tar.gz
Algorithm Hash digest
SHA256 666110954dd75b2be1699a29b4732cfb0bcb09d01f64fba4449bfc8ac1fb43f1
MD5 362c51a3801788341f8877ab55b51403
BLAKE2b-256 07b433c77afee2d66d001bb4730860cd58be83cbc0c29afe928ef25b00a14f6f

See more details on using hashes here.

File details

Details for the file ayon_python_api-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for ayon_python_api-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 bbcd6df1f80ddf32e653a1bb31289cb5fd1a8bea36ab4c8e6aef08c41b6393de
MD5 0e766fcf2f320639f054f75c87431b06
BLAKE2b-256 85b2765907dea0ceb9459671906989e4d2937264fed3675d3fac5a1649e7c845

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page