validate-telegram-markdown


Namevalidate-telegram-markdown JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/skarrok/validate-telegram-markdown
SummaryValidate Telegram flavored markdown
upload_time2024-08-10 18:26:53
maintainerNone
docs_urlNone
authorskarrok
requires_python<4.0,>=3.10
licenseMIT
keywords telegram markdown validate
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Validate Telegram Markdown

[![Lint and Test](https://github.com/skarrok/validate-telegram-markdown/actions/workflows/test.yml/badge.svg)](https://github.com/skarrok/validate-telegram-markdown/actions/workflows/test.yml)
[![pypi package](https://img.shields.io/pypi/v/validate-telegram-markdown)](https://pypi.org/project/validate-telegram-markdown)
[![python](https://img.shields.io/pypi/pyversions/validate-telegram-markdown)](https://pypi.org/project/validate-telegram-markdown)

This package tries to validate that telegram-flavored markdown is correct and
safe to use in [sendMessage](https://core.telegram.org/bots/api#sendmessage).

Simple and naive implementation, probably has bugs but good enough for my
personal use case.

Supports all features of [MarkdownV2 Style](https://core.telegram.org/bots/api#markdownv2-style).

Contributions are welcome!

## Installation

```bash
pip install validate-telegram-markdown
```

## Usage

```python
from validate_telegram_markdown import validate_markdown

message = "*bold*"
try:
    validate_markdown(message)
except ValueError:
    # something isn't right
    raise

# or here you can safely use message in telegram sendMessage method
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/skarrok/validate-telegram-markdown",
    "name": "validate-telegram-markdown",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "telegram, markdown, validate",
    "author": "skarrok",
    "author_email": "skarrork.h@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/97/fc/7cc5f4cfdc5a17ba6127e65e11433223de38112b730036d0d21c66b54986/validate_telegram_markdown-0.1.0.tar.gz",
    "platform": null,
    "description": "# Validate Telegram Markdown\n\n[![Lint and Test](https://github.com/skarrok/validate-telegram-markdown/actions/workflows/test.yml/badge.svg)](https://github.com/skarrok/validate-telegram-markdown/actions/workflows/test.yml)\n[![pypi package](https://img.shields.io/pypi/v/validate-telegram-markdown)](https://pypi.org/project/validate-telegram-markdown)\n[![python](https://img.shields.io/pypi/pyversions/validate-telegram-markdown)](https://pypi.org/project/validate-telegram-markdown)\n\nThis package tries to validate that telegram-flavored markdown is correct and\nsafe to use in [sendMessage](https://core.telegram.org/bots/api#sendmessage).\n\nSimple and naive implementation, probably has bugs but good enough for my\npersonal use case.\n\nSupports all features of [MarkdownV2 Style](https://core.telegram.org/bots/api#markdownv2-style).\n\nContributions are welcome!\n\n## Installation\n\n```bash\npip install validate-telegram-markdown\n```\n\n## Usage\n\n```python\nfrom validate_telegram_markdown import validate_markdown\n\nmessage = \"*bold*\"\ntry:\n    validate_markdown(message)\nexcept ValueError:\n    # something isn't right\n    raise\n\n# or here you can safely use message in telegram sendMessage method\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Validate Telegram flavored markdown",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/skarrok/validate-telegram-markdown",
        "Repository": "https://github.com/skarrok/validate-telegram-markdown"
    },
    "split_keywords": [
        "telegram",
        " markdown",
        " validate"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30bd6f90cc3a8e4446022e4f92fe543ae1d362efcbc392592996082b56ef6ef6",
                "md5": "336b0cde864a6af5e9307eaebd06106b",
                "sha256": "babc7f66207625c77650acb32fe4854112fe23d7feebea5960f9d849373cfdf8"
            },
            "downloads": -1,
            "filename": "validate_telegram_markdown-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "336b0cde864a6af5e9307eaebd06106b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 5501,
            "upload_time": "2024-08-10T18:26:51",
            "upload_time_iso_8601": "2024-08-10T18:26:51.633752Z",
            "url": "https://files.pythonhosted.org/packages/30/bd/6f90cc3a8e4446022e4f92fe543ae1d362efcbc392592996082b56ef6ef6/validate_telegram_markdown-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97fc7cc5f4cfdc5a17ba6127e65e11433223de38112b730036d0d21c66b54986",
                "md5": "e56eae28956de5df2c6840708307629c",
                "sha256": "2e13b9ccb92cac05bf5da33fef64b260c6678d6d2fdce8fdac8e2715959a43b8"
            },
            "downloads": -1,
            "filename": "validate_telegram_markdown-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e56eae28956de5df2c6840708307629c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 5192,
            "upload_time": "2024-08-10T18:26:53",
            "upload_time_iso_8601": "2024-08-10T18:26:53.101949Z",
            "url": "https://files.pythonhosted.org/packages/97/fc/7cc5f4cfdc5a17ba6127e65e11433223de38112b730036d0d21c66b54986/validate_telegram_markdown-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-10 18:26:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "skarrok",
    "github_project": "validate-telegram-markdown",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "validate-telegram-markdown"
}
        
Elapsed time: 0.26761s