frameioclient-2.0.1a4
توضیحات
Client library for the Frame.io API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | frameioclient-2.0.1a4 |
| نام | frameioclient |
| نسخه کتابخانه | 2.0.1a4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Frame.io, Inc. |
| ایمیل نویسنده | platform@frame.io |
| آدرس صفحه اصلی | https://github.com/frameio/python-frameio-client |
| آدرس اینترنتی | https://pypi.org/project/frameioclient/ |
| مجوز | MIT |
# python-frameio-client
[](https://badge.fury.io/py/frameioclient)
[](https://pypi.python.org/pypi/frameioclient/)
<img width="1644" alt="artboard_small" src="https://user-images.githubusercontent.com/19295862/66240171-ba8dd280-e6b0-11e9-9ccf-573a4fc5961f.png">
# Frame.io
Frame.io is a cloud-based collaboration hub that allows video professionals to share files, comment on clips real-time, and compare different versions and edits of a clip.
## Overview
### Installation
via Pip
```
$ pip install frameioclient
```
via Source
```
$ git clone https://github.com/frameio/python-frameio-client
$ pip install .
```
_Note: The Frame.io Python client may not work correctly in Python 3.8+_
## Documentation
[Frame.io API Documentation](https://developer.frame.io/docs)
## Usage
_Note: A valid token is required to make requests to Frame.io. Go to our [Developer Portal](https://developer.frame.io/) to get a token!_
In addition to the snippets below, examples are included in [/examples](/examples).
### Get User Info
Get basic info on the authenticated user.
```python
from frameioclient import FrameioClient
client = FrameioClient("TOKEN")
me = client.users.get_me()
print(me['id'])
```
### Create and Upload Asset
Create a new asset and upload a file. For `parent_asset_id` you must have the root asset ID for the project, or an ID for a folder in the project. For more information on how assets work, check out [our docs](https://developer.frame.io/docs/workflows-assets/uploading-assets).
```python
import os
from frameioclient import FrameioClient
client = FrameioClient("TOKEN")
# Create a new asset manually
asset = client.assets.create(
parent_asset_id="1234abcd",
name="MyVideo.mp4",
type="file",
filetype="video/mp4",
filesize=os.path.getsize("sample.mp4")
)
# Create a new folder
client.assets.create(
parent_asset_id="",
name="Folder name",
type="folder" # this kwarg is what makes it a folder
)
# Upload a file
client.assets.upload(destination_id, "video.mp4")
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7.16, <4 | Python |
نحوه نصب
نصب پکیج whl frameioclient-2.0.1a4:
pip install frameioclient-2.0.1a4.whl
نصب پکیج tar.gz frameioclient-2.0.1a4:
pip install frameioclient-2.0.1a4.tar.gz