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.9.0.tar.gz (13.1 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.9.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for oembedpy-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e2c51f03494bce0b18f32388581a01b6768b76283ff378749cb737ed17c0ffff
MD5 463eeeaab5f774284f4e69c973dc8a1c
BLAKE2b-256 a6e4884f14f925c2efc0a02d44a0c0a35398a26697b1f16c99adc34d4625b77e

See more details on using hashes here.

Provenance

The following attestation bundles were made for oembedpy-0.9.0.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.9.0-py3-none-any.whl.

File metadata

  • Download URL: oembedpy-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 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.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f79a634582cdce32cde9b34ad05ecdd3a26b17347c64a966b0f501d129eef40b
MD5 911dfa0d4cdb895aa79eea54b0cb5bb3
BLAKE2b-256 79cd7349e0ca212d801d3433ac0a66ea048049c5a201058cb72dda1ae6921878

See more details on using hashes here.

Provenance

The following attestation bundles were made for oembedpy-0.9.0-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