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.0.tar.gz (12.4 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.0-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oembedpy-0.8.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for oembedpy-0.8.0.tar.gz
Algorithm Hash digest
SHA256 4851b691a56fb63c7b93d138ef250f0c3d0bf09744afee02d496efc3d17cfcc4
MD5 8c04f1d0be9a2bf3aefd86cdf02f9474
BLAKE2b-256 db02558749219c914b6b34380ae2902461757a0a87e590efc26fabb20260eecc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oembedpy-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for oembedpy-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dd9fd7d2740a66eb515e727b3af15baa0c46b56e9589f37c079a46f8b434f07
MD5 88413c9e0402cee56049df60905c1d9f
BLAKE2b-256 2975e3a228769a041767409501a9b5e08a863d30519fa26dd638cdbe86d5a262

See more details on using hashes here.

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