Skip to main content

Python client library for Eduplay (video platform from RNP)

Project description

PyRNP

PyRNP codecov PyPi

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

pyrnp-1.1.3.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

pyrnp-1.1.3-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page