oembedders
oembedders is a small wrapper around python-oembed and the oembed provider registry to set up an oembed consumer that is configured with all known providers.
Install
pip install oembedders
Usage
from oembedders import embed
e = embed('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
You can also use it from the command line:
oembedders https://www.youtube.com/watch?v=dQw4w9WgXcQ
{
"author_url": "https://www.youtube.com/user/RickAstleyVEVO",
"title": "Rick Astley - Never Gonna Give You Up (Video)",
"thumbnail_width": 480,
"html": "<iframe width=\"480\" height=\"270\" src=\"https://www.youtube.com/embed/dQw4w9WgXcQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
"type": "video",
"thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
"version": "1.0",
"author_name": "RickAstleyVEVO",
"provider_url": "https://www.youtube.com/",
"width": 480,
"provider_name": "YouTube",
"thumbnail_height": 360,
"height": 270
}
Providers
The provider registry data is maintained in iamcal/oembed. It can be updated at any time in oembedders with the supplied Makefile which will download the latest data and put it into place so it can be committed.
Metadata
Release files for oembedders 0.0.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 |
|---|---|---|---|---|
| oembedders-0.0.3.tar.gz | 26.4 kB | Without provenance | Details for oembedders-0.0.3.tar.gz |
Release files / oembedders-0.0.3.tar.gz
| Download URL | oembedders-0.0.3.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d153b74ce41cbe93b3f584a7c88be571b6d557985218ec5d1f0502a83a835e3
|
|
BLAKE2b-256 checksum How to use checksums |
4c51221332a86fa779a55266fc1fdfcfc8da230e703e45145f62dfdff0e9a19e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.0 CPython/3.7.3
|
Security for oembedders 0.0.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.