Skip to main content

lektor-twitter-embed

Run tests codecov PyPI Version License Python Compatibility Code style: black

Lektor template filter to convert twitter links to embeds

Installation

pip install lektor-twitter-embed

Usage

{{ "https://twitter.com/MaiaFranklyn/status/1277100235928621058" | tweet }}

It is possible to pass an optional 'params' object to configure the embed. Any of the params documented at https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-oembed may be supplied

{{
  "https://twitter.com/MaiaFranklyn/status/1277100235928621058" | tweet(
    params={'align': 'center', 'hide_thread': 'true'}
  )
}}

By default if the request to publish.twitter.com fails, your page will not build. This behaviour can be changed so that a failed request to publish.twitter.com will fall back to rendering a link to the tweet.

{{ "https://twitter.com/lucaviftw/status/1347311486012686336" | tweet(fallback=True) }}

Metadata

Release files for lektor-twitter-embed 0.3.0

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

Source distribution (sdist)

Source distribution for lektor-twitter-embed 0.3.0
File Size Uploaded
lektor_twitter_embed-0.3.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lektor-twitter-embed 0.3.0
File Interpreter ABI Platform
lektor_twitter_embed-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / lektor_twitter_embed-0.3.0.tar.gz

Download URL lektor_twitter_embed-0.3.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
24e75cc509b733c9e9a2b3222c475f18b02c9f4687292a3d95d4569fd6c93cf3
BLAKE2b-256 checksum
How to use checksums
0f439feb2217163964b6a849389db7cdbaeb52ab1269847d2ea0d2c9010f1f0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / lektor_twitter_embed-0.3.0-py3-none-any.whl

Download URL lektor_twitter_embed-0.3.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b45d477d83d961710d8ee737b55fa8cdc3c064d2ca095fbd11527e36908a1bc
BLAKE2b-256 checksum
How to use checksums
6917b2da2f194e83084fe0ada292ae9d0416b425878bd6ecfd2e0588fbdd9f63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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