Last updated:
0 purchases
pyrnp 1.1.3
PyRNP
Python wrapper for the Eduplay API (maintained by RNP). Made to be as lightweight as possible, only requires Requests!
Contributors
Patricia Nallin
Guilherme Francisco de Freitas
Installation
git clone https://github.com/cnpem-sei/pyrnp
cd PyRNP
pip3 install .
Utilization
Create a client
from pyrnp import RNP
client = RNP(
client_key="KEY",
client_id="ID",
username="[email protected]",
)
Perform actions
client.upload("video.mp4", "video_unique_id")
client.publish("video.mp4", "video_unique_id", "title", "test upload", thumbnail="thumb.png")
Other utilization examples can be found in Examples.
Obtaining credentials
In order to obtain your client key and ID, you must contact RNP directly.
Token quirks
Depending on your permissions (if they're not clear, contact RNP support), you might not need tokens in order to publish/upload/change/delete videos. This is why I've made OAuth2 disabled by default. In order to get a token, you can follow the RNP documentation here.
TODO:
Add other API functions
License
This program is licensed under the GNU Affero license
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.