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()
>>> 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.1.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.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for oembedpy-0.8.1.tar.gz
Algorithm Hash digest
SHA256 f96ef8bcc7b1f738dd80d5423bde8538458152aa5487118c443c1cdfb15019ee
MD5 17c467f727dadce6a4672274485f5602
BLAKE2b-256 254a4f8fc3a81dab25fd4230d86a571e37a525c5dcf2cab05c25e89cd2f1b08d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: oembedpy-0.8.1-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.12.9

File hashes

Hashes for oembedpy-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63d708e738a0c6e157a2db4f09ecb616c479b6247f44805c38b26f75e023f808
MD5 587b7a623fa5306b80c9e64989c984db
BLAKE2b-256 d0c6844fc11d2971364389a1998eaa282557b73479a1c83540ff0808901c9dbe

See more details on using hashes here.

Provenance

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