Name | TgEntity JSON |
Version |
0.2.0
JSON |
| download |
home_page | https://github.com/KumaTea/tgentity |
Summary | Telegram entity parser |
upload_time | 2024-02-12 18:33:04 |
maintainer | |
docs_url | None |
author | KumaTea |
requires_python | >=3.6 |
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. |
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",
"maintainer": "",
"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/be/c1/c90240149b50287ae27ab091ce25cffc9fb91050c0624945e2524d25106c/TgEntity-0.2.0.tar.gz",
"platform": null,
"description": "# TgEntity\r\n\r\nConvert Telegram entities to HTML or Markdown.\r\n\r\nThis project is a rewrite of\r\n[@telegraf/entity](https://github.com/telegraf/entity)\r\nin Python.\r\n\r\n`pip install tgentity`\r\n\r\n### Usage\r\n\r\n```python\r\nfrom tgentity import to_markdown_v2, to_html\r\n\r\nhtml = to_html(message)\r\nmarkdown = to_markdown_v2(message)\r\n```\r\n\r\n* Aliases\r\n * `to_md` = `to_markdown_v2`\r\n * `to_markdown` = `to_markdown_v2`\r\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.2.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": "05486eb0d5c22119797951a00751ccb12b99de2d2d6a168d7a47ccb1f150519e",
"md5": "70194f7f5e142c28d6c661d06b68e1b9",
"sha256": "173122acc5131e568a742028d77251e7f7d89fb5c1c5f97f43a86684118a6d6d"
},
"downloads": -1,
"filename": "TgEntity-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "70194f7f5e142c28d6c661d06b68e1b9",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 8075,
"upload_time": "2024-02-12T18:33:03",
"upload_time_iso_8601": "2024-02-12T18:33:03.156570Z",
"url": "https://files.pythonhosted.org/packages/05/48/6eb0d5c22119797951a00751ccb12b99de2d2d6a168d7a47ccb1f150519e/TgEntity-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bec1c90240149b50287ae27ab091ce25cffc9fb91050c0624945e2524d25106c",
"md5": "9c7335683157a308f54545ddb51f7963",
"sha256": "90f6bda2146af475a6b43bbc8f62bcd1e08f8682b1cfc547e2959469567a92c0"
},
"downloads": -1,
"filename": "TgEntity-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "9c7335683157a308f54545ddb51f7963",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6359,
"upload_time": "2024-02-12T18:33:04",
"upload_time_iso_8601": "2024-02-12T18:33:04.730924Z",
"url": "https://files.pythonhosted.org/packages/be/c1/c90240149b50287ae27ab091ce25cffc9fb91050c0624945e2524d25106c/TgEntity-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-12 18:33:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KumaTea",
"github_project": "tgentity",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "tgentity"
}