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 Provenance Actions
lektor_twitter_embed-0.3.0.tar.gz 2.6 kB With provenance Details for lektor_twitter_embed-0.3.0.tar.gz

Built distribution (wheel)

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

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

Security for lektor-twitter-embed 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lektor_twitter_embed-0.3.0.tar.gz

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

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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