Skip to main content

TgEntity

Convert Telegram entities to HTML or Markdown.

This project is a rewrite of @telegraf/entity in Python.

pip install tgentity

Usage

from tgentity import to_markdown_v2, to_html

html = to_html(message)
markdown = to_markdown_v2(message)
  • Aliases
    • to_md = to_markdown_v2
    • to_markdown = to_markdown_v2

Metadata

Release files for TgEntity 0.2.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 TgEntity 0.2.0
File Size Uploaded Provenance Actions
TgEntity-0.2.0.tar.gz 6.4 kB Without provenance Details for TgEntity-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for TgEntity 0.2.0
File Interpreter ABI Platform Actions
TgEntity-0.2.0-py3-none-any.whl Python 3 none any Details for TgEntity-0.2.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / TgEntity-0.2.0.tar.gz

Download URL TgEntity-0.2.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
90f6bda2146af475a6b43bbc8f62bcd1e08f8682b1cfc547e2959469567a92c0
BLAKE2b-256 checksum
How to use checksums
bec1c90240149b50287ae27ab091ce25cffc9fb91050c0624945e2524d25106c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Release files / TgEntity-0.2.0-py3-none-any.whl

Download URL TgEntity-0.2.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
173122acc5131e568a742028d77251e7f7d89fb5c1c5f97f43a86684118a6d6d
BLAKE2b-256 checksum
How to use checksums
05486eb0d5c22119797951a00751ccb12b99de2d2d6a168d7a47ccb1f150519e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Security for TgEntity 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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