Streamable API Wrapper (SPAW)
SPAW is an Unoffical Streamable API wrapper for Python.
Streamable API Documentation
https://streamable.com/documentation
Requirments
Python 3.5+
The following modules are also used:
requests
json
Usage
Install through pip
pip3 install spaw
To initialize an instance:
import spaw
spaw.SPAW()
Authentication
Streamable uses Basic Auth for their API.
As such the Streamable API requires Authentication to Upload/Import a video or to Retrieve a video in raw mp4 embed format.
Only Retrieving a video in oEmbed format is allowed without Authentication.
To authenticate:
SPAW.auth(email, password)
Where the arguments are the email and password of your Streamable account.
Import a Video
Takes in given URL of a video and imports/uploads it onto Streamable.
SPAW.videoImport(url)
Returns JSON with Shortcode and Status
{'status': 1, 'shortcode': 'code'}
The link to the video will be https://streamable.com/code
Upload a Video
Takes in given filename for a video and uploads it onto Streamable.
SPAW.videoUpload(filename)
Returns JSON with Shortcode and Status just like importVideo()
Retrieve a Video
Retrieves a Streamable video as embed code given the shortcode of video URL.
The embed video can be retrieved as oEmbed or a raw mp4. by default set to 'raw'.
SPAW.retrieve(shortcode,format)
Returns JSON for the embed code for the video.
for e.g.
SPAW.retrieve('moo', 'oEmbed')
Returns
{"provider_url": "https://streamable.com", "html": "<iframe class=\"streamable-embed\" src=\"https://streamable.com/o/moo\" frameborder=\"0\" scrolling=\"no\" width=\"852\" height=\"480\" allowfullscreen></iframe>", "version": "1.0", "title": "\"Please don't eat me!\"", "type": "video", "provider_name": "Streamable", "thumbnail_url": "//images.streamable.com/west/image/f6441ae0c84311e4af010bc47400a0a4.jpg?height=100", "width": 852, "height": 480}
Metadata
Release files for spaw 0.2
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 |
|---|---|---|---|---|
| spaw-0.2.tar.gz | 3.0 kB | Without provenance | Details for spaw-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spaw-0.2-py3-none-any.whl | Python 3 | none | any | Details for spaw-0.2-py3-none-any.whl |
Total release size: 6.6 kB
Release files / spaw-0.2.tar.gz
| Download URL | spaw-0.2.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46533aecd210792011a630492b0ec640aac80585423175205f67079152a12333
|
|
BLAKE2b-256 checksum How to use checksums |
1caa238ae79dec330da6258681b15a299d086deaadb77525421e89c46e95f63c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / spaw-0.2-py3-none-any.whl
| Download URL | spaw-0.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1464a85cd3d076f93cd2614c0bf008f13efb8afce6eae31c21567fddeb5fb55e
|
|
BLAKE2b-256 checksum How to use checksums |
269f1e53dd544c78fb620e805a2c5a83192cd58c4897436ea00bf3f7c51d3e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for spaw 0.2
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.