Skip to main content

python python python python python main

videoembed

Videoembed is a tool to create embed codes from video URLs by using oembed. You are also able to get thumbnail data.

Supported platforms:

  • YouTube
  • Vimeo

Installation

Use the package manager pip to install videoembed.

pip install videoembed

Usage

Basic usage:

from videoembed import Embedder

embedder = Embedder()
video = embedder('https://www.youtube.com/watch?v=VIDEOID')

# get embed code
embed_code = video.embed_code

# get thumbnail data
thumbnail = video.thumbnail

You can also pass some configuration data to the embedder:

from videoembed import Embedder

config = {
    'width': 600,
    'height': 360,
    'autoplay': True
}
embedder = Embedder(**config)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Metadata

Release files for videoembed 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for videoembed 1.0.3
File Size Uploaded Provenance Actions
videoembed-1.0.3.tar.gz 43.0 kB Without provenance Details for videoembed-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for videoembed 1.0.3
File Interpreter ABI Platform Actions
videoembed-1.0.3-py3-none-any.whl Python 3 none any Details for videoembed-1.0.3-py3-none-any.whl

Total release size: 76.3 kB

Release files / videoembed-1.0.3.tar.gz

Download URL videoembed-1.0.3.tar.gz
Size 43.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9109ec4d7b168a6a658db8c4c9b422294e8c3578fdb347e9902bac9b4f4f9690
BLAKE2b-256 checksum
How to use checksums
f28173a7c003128fe08571d64ba8d8646f127c7eacd0d1a6ac3ed5642dee6a47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / videoembed-1.0.3-py3-none-any.whl

Download URL videoembed-1.0.3-py3-none-any.whl
Size 33.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f39eace89cee900c7cf987cc8a52d47ce66773eaae7bf1e019a7af2a63b1b5d
BLAKE2b-256 checksum
How to use checksums
1eb08482a7b051a8b256d843218621f9283b223f8621e9e4036ff30f02b47bb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for videoembed 1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page