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_API_KEY 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
    • Missing docstrings in EntityHub -> especially entity arguments are missing
    • Better order of arguments for entity classes
      • Move entity hub to first place
      • Skip those which are invalid for the entity and fake it for base or remove it from base
    • Entity hub should use operations session to do changes
    • Entity hub could also handle 'product', 'version' and 'representation' entities
    • Missing 'status' on folders
    • Missing assignees on tasks
    • Pass docstrings and arguments definitions from ServerAPI methods to global functions
  • Split ServerAPI into smaller chunks (somehow), the class has 4k+ lines of code
  • Add .pyi stub for ServerAPI
  • 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-1.0.2.tar.gz (105.5 kB view details)

Uploaded Source

Built Distribution

ayon_python_api-1.0.2-py3-none-any.whl (107.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ayon-python-api-1.0.2.tar.gz
  • Upload date:
  • Size: 105.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ayon-python-api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bb42ee6ff71704f3033257683045e6a23d0436d8712ecd603a66001f51c5d63f
MD5 a759cf35944d09e2200a8273e14b044b
BLAKE2b-256 e94e5d1c2a9269e025854bb6a29ba2536bdae8c27444ec3098a2e275ea4610b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ayon_python_api-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f07dd085564472569c8353baec166bd96e139959e2ce270e9bd992c9306d3165
MD5 4f226c97493caff4ca29684a400d1b74
BLAKE2b-256 0829e689d329954e6a8a2c1aab5c7783d38cb04a321e0ba1eb483f988e810efd

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