Python client library for Eduplay (video platform from RNP)
Project description
PyRNP
Python wrapper for the Eduplay API (maintained by RNP). Made to be as lightweight as possible, only requires Requests!
Contributors
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="fulano.detal@org.br",
)
- 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
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
Built Distribution
File details
Details for the file pyrnp-1.1.3.tar.gz
.
File metadata
- Download URL: pyrnp-1.1.3.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 680b8a5694da1db4a87161ccdcd02d01f956470198619d678dc8d37db7427ae5 |
|
MD5 | 2bcd99199799c95a823054a411237f81 |
|
BLAKE2b-256 | 4fa44738e5a6d0a4df08e818625189eccee311c79e50c08b8cabe323b2bdf02f |
File details
Details for the file pyrnp-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: pyrnp-1.1.3-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4409c53892d18134c2c68a741def982a9a910de3858dd6edb5a1670cc3bab23 |
|
MD5 | 783c269639df0ac0c9a4de220f64ab56 |
|
BLAKE2b-256 | 7046cd7e1895a81133e0320fdbf06211e3232508c63812da5239ce48a410aa93 |