TgEntity-Updated


NameTgEntity-Updated JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/KumaTea/tgentity
SummaryTelegram entity parser
upload_time2024-08-30 12:48:24
maintainerNone
docs_urlNone
authorKumaTea
requires_python>=3.6
licenseMIT License Copyright (c) 2023 KumaTea Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords telegram entity entities parser html markdown v2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TgEntity

Convert Telegram entities to HTML or Markdown.

This project is a rewrite of
[@telegraf/entity](https://github.com/telegraf/entity)
in Python.

`pip install tgentity`

### Usage

```python
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`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/KumaTea/tgentity",
    "name": "TgEntity-Updated",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "KumaTea <mail@kmtea.eu>",
    "keywords": "telegram, entity, entities, parser, html, markdown, v2",
    "author": "KumaTea",
    "author_email": "KumaTea <mail@kmtea.eu>",
    "download_url": "https://files.pythonhosted.org/packages/1b/0e/ab0ea6fb5d79ff7b720b75a874a51e24473fa652ff296feff05bcd101e9c/tgentity_updated-0.4.0.tar.gz",
    "platform": null,
    "description": "# TgEntity\n\nConvert Telegram entities to HTML or Markdown.\n\nThis project is a rewrite of\n[@telegraf/entity](https://github.com/telegraf/entity)\nin Python.\n\n`pip install tgentity`\n\n### Usage\n\n```python\nfrom tgentity import to_markdown_v2, to_html\n\nhtml = to_html(message)\nmarkdown = to_markdown_v2(message)\n```\n\n* Aliases\n  * `to_md` = `to_markdown_v2`\n  * `to_markdown` = `to_markdown_v2`\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 KumaTea  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Telegram entity parser",
    "version": "0.4.0",
    "project_urls": {
        "Download": "https://github.com/KumaTea/tgentity/releases/latest",
        "Homepage": "https://github.com/KumaTea",
        "Repository": "https://github.com/KumaTea/tgentity"
    },
    "split_keywords": [
        "telegram",
        " entity",
        " entities",
        " parser",
        " html",
        " markdown",
        " v2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0df135bcf63e5c3a47f4c7b08fd750e74b1bacb1b1b3f238ae8ab4514849db7c",
                "md5": "d9e444e1f99b1c0398b0b405db5f5fdf",
                "sha256": "4fe71b43d610a29c8e15f6956d752ec53e7f8c054c4f996715cb8a4ac4e72520"
            },
            "downloads": -1,
            "filename": "TgEntity_Updated-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d9e444e1f99b1c0398b0b405db5f5fdf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8459,
            "upload_time": "2024-08-30T12:48:22",
            "upload_time_iso_8601": "2024-08-30T12:48:22.448191Z",
            "url": "https://files.pythonhosted.org/packages/0d/f1/35bcf63e5c3a47f4c7b08fd750e74b1bacb1b1b3f238ae8ab4514849db7c/TgEntity_Updated-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1b0eab0ea6fb5d79ff7b720b75a874a51e24473fa652ff296feff05bcd101e9c",
                "md5": "02d919ccffb1b1af04b83a4f93f568cb",
                "sha256": "7fe33cab94f1062e7b50c801b41da5f610bd5231ee9357398f66c67032fc80ce"
            },
            "downloads": -1,
            "filename": "tgentity_updated-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "02d919ccffb1b1af04b83a4f93f568cb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 6589,
            "upload_time": "2024-08-30T12:48:24",
            "upload_time_iso_8601": "2024-08-30T12:48:24.126867Z",
            "url": "https://files.pythonhosted.org/packages/1b/0e/ab0ea6fb5d79ff7b720b75a874a51e24473fa652ff296feff05bcd101e9c/tgentity_updated-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-30 12:48:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "KumaTea",
    "github_project": "tgentity",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tgentity-updated"
}
        
Elapsed time: 1.06028s