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
Metadata
Release files for pyrnp 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrnp-1.1.3.tar.gz | 17.1 kB | Without provenance | Details for pyrnp-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrnp-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for pyrnp-1.1.3-py3-none-any.whl |
Total release size: 34.1 kB
Release files / pyrnp-1.1.3.tar.gz
| Download URL | pyrnp-1.1.3.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
680b8a5694da1db4a87161ccdcd02d01f956470198619d678dc8d37db7427ae5
|
|
BLAKE2b-256 checksum How to use checksums |
4fa44738e5a6d0a4df08e818625189eccee311c79e50c08b8cabe323b2bdf02f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Release files / pyrnp-1.1.3-py3-none-any.whl
| Download URL | pyrnp-1.1.3-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4409c53892d18134c2c68a741def982a9a910de3858dd6edb5a1670cc3bab23
|
|
BLAKE2b-256 checksum How to use checksums |
7046cd7e1895a81133e0320fdbf06211e3232508c63812da5239ce48a410aa93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.12
|
Security for pyrnp 1.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.