yatbaf


Nameyatbaf JSON
Version 0.9.1 PyPI version JSON
download
home_pageNone
SummaryTelegram Bot framework
upload_time2024-04-26 15:30:42
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseThe MIT License (MIT) Copyright (c) 2023 Maraudeur 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-bot telegram-bot-api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## yatbaf

Asynchronous [Telegram Bot API](https://core.telegram.org/bots/api) framework.

## Requirements

Python 3.11+

## Installation

```shell
$ pip install yatbaf
```

## Simple echo bot

```python
import yatbaf.filters as f
from yatbaf import Bot, on_message
from yatbaf.types import Message


@on_message(filters=[f.text])
async def echo(message: Message) -> None:
    await message.answer(message.text)


Bot("<REPLACE-WITH-YOUR-TOKEN>", [echo]).run()
```

## License
[MIT](./LICENSE)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "yatbaf",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "telegram-bot, telegram-bot-api",
    "author": null,
    "author_email": "Maraudeur <maraudeur1@protonmail.ch>",
    "download_url": "https://files.pythonhosted.org/packages/52/06/6b6e99b630cf99858f98adfe75b0963f97edb6e0a3c22ce69ebd990437d1/yatbaf-0.9.1.tar.gz",
    "platform": null,
    "description": "## yatbaf\n\nAsynchronous [Telegram Bot API](https://core.telegram.org/bots/api) framework.\n\n## Requirements\n\nPython 3.11+\n\n## Installation\n\n```shell\n$ pip install yatbaf\n```\n\n## Simple echo bot\n\n```python\nimport yatbaf.filters as f\nfrom yatbaf import Bot, on_message\nfrom yatbaf.types import Message\n\n\n@on_message(filters=[f.text])\nasync def echo(message: Message) -> None:\n    await message.answer(message.text)\n\n\nBot(\"<REPLACE-WITH-YOUR-TOKEN>\", [echo]).run()\n```\n\n## License\n[MIT](./LICENSE)\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2023 Maraudeur  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 Bot framework",
    "version": "0.9.1",
    "project_urls": {
        "Source": "https://codeberg.org/maraudeur/yatbaf"
    },
    "split_keywords": [
        "telegram-bot",
        " telegram-bot-api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0bc3116cebd5afc3956ba2d4496238e1ba9db7e316f5fe0f8ad1e9afe8dc8a8d",
                "md5": "b36b3f7854d478d1e287c72072071eb4",
                "sha256": "8cf4bf73cdf6d0ddfd0e1018d6d4303a99f8d084318a12d23c643fca7f98b551"
            },
            "downloads": -1,
            "filename": "yatbaf-0.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b36b3f7854d478d1e287c72072071eb4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 221833,
            "upload_time": "2024-04-26T15:30:37",
            "upload_time_iso_8601": "2024-04-26T15:30:37.296083Z",
            "url": "https://files.pythonhosted.org/packages/0b/c3/116cebd5afc3956ba2d4496238e1ba9db7e316f5fe0f8ad1e9afe8dc8a8d/yatbaf-0.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "52066b6e99b630cf99858f98adfe75b0963f97edb6e0a3c22ce69ebd990437d1",
                "md5": "e5c1ecc9ce478bc8ea7a9ed2a7d27870",
                "sha256": "e1906b48cd37e18317b8a4544310b57879397dd23da0e999d33a394fc1a92fc2"
            },
            "downloads": -1,
            "filename": "yatbaf-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e5c1ecc9ce478bc8ea7a9ed2a7d27870",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 191321,
            "upload_time": "2024-04-26T15:30:42",
            "upload_time_iso_8601": "2024-04-26T15:30:42.315247Z",
            "url": "https://files.pythonhosted.org/packages/52/06/6b6e99b630cf99858f98adfe75b0963f97edb6e0a3c22ce69ebd990437d1/yatbaf-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-26 15:30:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": true,
    "codeberg_user": "maraudeur",
    "codeberg_project": "yatbaf",
    "lcname": "yatbaf"
}
        
Elapsed time: 0.24410s