Skip to main content

oEmbed client for Python.

Project description

Overview

This is oEmbed client for Python.

Features

  • Simple usage

  • Python 3.x native

  • Multiple endpoint discovery

Installation

This is uploaded on PyPI.

pip install oEmbedPy

Usage

Library

>>> from oembedpy.application import Oembed

>>> oembed = Oembed()
>>> oembed.init()
>>> content = oembed.fetch("https://twitter.com/attakei")
>>> print(content.type)
rich

Commandline

Simple usage for author’s video (omitted some output).

$ oEmbed.py 'https://www.youtube.com/watch?v=Oyh8nuaLASA'
title:            Yoshi ( ...
author_name:      attakei
thumbnail_height: 360
thumbnail_width:  400

If you want JSON, use --format option.

$ oEmbed.py --format=json 'https://www.youtube.com/watch?v=Oyh8nuaLASA'
{"title":"Yoshi (NES - Nint ..."}

Others

This has extension for easy-using. Please see documentation.

License

Apache License 2.0

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

oembedpy-0.8.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oembedpy-0.8.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file oembedpy-0.8.2.tar.gz.

File metadata

  • Download URL: oembedpy-0.8.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oembedpy-0.8.2.tar.gz
Algorithm Hash digest
SHA256 18dd7dc8a7d1d172f66e0a0e6928024b20805741c0b5c46522b4a3596fa398af
MD5 560faef5ab78c204c5cf2824c04db84c
BLAKE2b-256 e6c3f99fb4eb49718e63c71892fde5300f89047dd602cc409da3e591b1bc54f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for oembedpy-0.8.2.tar.gz:

Publisher: release.yml on attakei/oEmbedPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oembedpy-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: oembedpy-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oembedpy-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5662de4b2f01ec07a9abf0136027b123ab5712bc1e2ceb8dd3e76024b4105a10
MD5 5807ac1fe2dc501595d04424a35a7138
BLAKE2b-256 01910407cc8e4a460840b7a2b9363bcec20516d31f1399272be1518bb4f7f4e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for oembedpy-0.8.2-py3-none-any.whl:

Publisher: release.yml on attakei/oEmbedPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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