The accsyn Python API facilitates programmable file transfers with Python (v3).
To create a new API key, open https://accsyn.io/developer in your browser. This page is available from the user menu in top right corner, "Developer" menu entry:
Click Create API Key button.
Choose the lifetime of key.
The API key will be presented once, copy and store it in a safe place - treat it like a sensitive password!
At https://accsyn.io/developer, your API key for each accsyn workspace are listed. Delete an API key by clicking the trashcan icon on the right hand side of each entry.
API keys for each user can be managed from https://accsyn.io/admin/users (Workspace button > Users):
Click on the user you want to manage.
Go to API keys tab.
Here you will see all active API keys for that particular user.
Delete an API key by clicking the trashcan icon on the right hand side of each entry.
We recommend setting up and activating a virtual environment for development, pyenv is a fluid tool for creating and managing Python envs.
This is the default and recommended way to install the accsyn Python API with dependencies:
Install Python 3.8 or higher
Make sure pip is installed.
Install using pip:
pip install accsyn-python-api
Download the source code from Github (see link below).
Install with Poetru:
poetry install
Download the source code from Github (see link below).
Copy the "accsyn_api" from within the "source" folder to your PYTHONPATH.
Install dependencies: requests
session = accsyn_api.Session(workspace='acmefilm',username='john@user.com', api_key='BlrPCfxLIRZEdhL6LXotwXRmDWbPRsPgLYcpa7ubyu97gxpqSC4130Adfh968Low')
job = session.create("job",{"source":"volume=projects/A001_C064_09224Y_001.mp4","destination":"client=664f53b16aa9149860da9d9c:/tmp/A001_C064_09224Y_001.mp4"})
Note: the accsyn API does not run any file transfers itself, it can only queue file transfers that then gets resolved and dispatched to the involved server and client p2p endpoints.
Find full Python API documentation here:
Access source code on GitHub:
Specification of accsyn job JSON format
Tutorial walking through how to automise sync of file assets between offices.