Client library for the Frame.io API
Project description
python-frameio-client
Official Python client for the Frame.io API.
Overview
Installation
via Pip
$ pip install frameioclient
via Source
$ git clone https://github.com/frameio/python-frameio-client
$ pip install .
Documentation
Usage
Note: A valid token is required to make requests to Frame.io. Please contact platform@frame.io to get setup.
In addition to the snippets below, examples are included in /examples.
Get User Info
Get basic info on the authenticated user.
from frameioclient import FrameioClient
client = FrameioClient("TOKEN")
me = client.get_me()
print(me['id'])
Create and Upload Asset
Create a new asset and upload a file. For more information on how assets work, check out our docs.
from frameioclient import FrameioClient
import os
client = FrameioClient("TOKEN")
filesize = os.path.getsize("sample.mp4")
# Create a new asset.
asset = client.create_asset(
parent_asset_id="1234abcd",
name="MyVideo.mp4",
type="file",
filetype="video/mp4",
filesize=filesize
)
# Upload the file at the target asset.
file = open("sample.mp4", "rb")
client.upload(asset, file)
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
frameioclient-0.5.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for frameioclient-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcadf21f4184ca2177dfd16c8840d09a712e242ffd3871a52c7c62c632cd730e |
|
MD5 | dda7a4fe9949b80192fd9b8897976c43 |
|
BLAKE2b-256 | 1d0d31a386f66c08f76a125d0f332e6895ec6a64823ddf92c4681a0d82c61e4b |