FunPayNexusAPI


NameFunPayNexusAPI JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://github.com/Sema4ka0/FunPay-API
SummaryThis is a convenient tool for developing and working with the site funpay.com
upload_time2024-08-24 16:35:42
maintainerNone
docs_urlNone
authorSema4ka0
requires_python>=3.8
licenseNone
keywords funpay api funpayapi tool bot tg lib
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"> FunPay Nexus API </h1>
<h3 align="center">  библиотека для взаимодействия с сайтом funpay.com, предоставляющая удобные методы работы с аккаунтом. </h3>

<h1 align="center"> Важные ссылки</h1>
<h4 align="center">
    <a href="https://t.me/FunPayNexus">Telegram канал</a><br>
<h4 align="center">
    <a href="https://t.me/FunPayNexus_chat">Telegram чат</a><br>
<h4 align="center">
    <a href="https://github.com/Sema4ka0/FunPayNexusAPI">GitHub</a><br>
<h4 align="center">
    <a href="https://pypi.org/project/FunPayNexusAPI/">PyPi</a><br>

## Установка
Установка библиотеки:
```bash
pip install FunPayNexusAPI
```
Обновление библиотеки:
```bash
pip install --upgrade FunPayNexusAPI
```
## Пример использования
Ниже приведены несколько примеров с использованием FunPayNexusAPI
### Получение информации о профиле


```python
from FunPayNexusAPI import Bot, Dispatcher
import asyncio

bot = Bot(golden_key="GOLDEN_KEY") # заменяем "GOLDEN_KEY"
dispatcher = Dispatcher(bot)

async def main() -> None:
    account = dispatcher.account
    message = (
        f"username: {await account.username}\n"
        f"user_id: {await account.id}\n"
        f"balance: {await account.balance}\n"
        f"new_message: {len(await account.get_new_messages)}\n"
    )
    print(message)
    
if __name__ == "__main__":
    asyncio.run(main())
```
Заменяем "GOLDEN_KEY" на golden_key вашего аккаунта.
### Отправление сообщения в чат

```python
from FunPayNexusAPI import Bot, Dispatcher
import asyncio

bot = Bot(golden_key="GOLDEN_KEY") # заменяем "GOLDEN_KEY"
dispatcher = Dispatcher(bot)

async def main() -> None:
    await dispatcher.send_message("USER_ID", "Привет!") # заменяем "USER_ID"
    
if __name__ == "__main__":
    asyncio.run(main())
```
Заменяем "GOLDEN_KEY" на golden_key вашего аккаунта.  
Заменяем "USER_ID" на id собеседника.

## Заключение
Проект находится в самом начале своего развития, и активно разрабатывается, вскоре будет добавлен новый функционал, по надобности обновлен старый.

На данный момент нет документации, поэтому по вопросам пишите в чат, указан выше.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Sema4ka0/FunPay-API",
    "name": "FunPayNexusAPI",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "funpay api FunPayAPI tool bot tg lib",
    "author": "Sema4ka0",
    "author_email": "seem.git@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/30/17/deeb8c3db2af6809cf473be8d223452c0d0e34b1534cb788c95378b62037/FunPayNexusAPI-0.0.4.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"> FunPay Nexus API </h1>\r\n<h3 align=\"center\">  \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441 \u0441\u0430\u0439\u0442\u043e\u043c funpay.com, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u043c. </h3>\r\n\r\n<h1 align=\"center\"> \u0412\u0430\u0436\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438</h1>\r\n<h4 align=\"center\">\r\n    <a href=\"https://t.me/FunPayNexus\">Telegram \u043a\u0430\u043d\u0430\u043b</a><br>\r\n<h4 align=\"center\">\r\n    <a href=\"https://t.me/FunPayNexus_chat\">Telegram \u0447\u0430\u0442</a><br>\r\n<h4 align=\"center\">\r\n    <a href=\"https://github.com/Sema4ka0/FunPayNexusAPI\">GitHub</a><br>\r\n<h4 align=\"center\">\r\n    <a href=\"https://pypi.org/project/FunPayNexusAPI/\">PyPi</a><br>\r\n\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\r\n\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:\r\n```bash\r\npip install FunPayNexusAPI\r\n```\r\n\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:\r\n```bash\r\npip install --upgrade FunPayNexusAPI\r\n```\r\n## \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c FunPayNexusAPI\r\n### \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u0440\u043e\u0444\u0438\u043b\u0435\r\n\r\n\r\n```python\r\nfrom FunPayNexusAPI import Bot, Dispatcher\r\nimport asyncio\r\n\r\nbot = Bot(golden_key=\"GOLDEN_KEY\") # \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \"GOLDEN_KEY\"\r\ndispatcher = Dispatcher(bot)\r\n\r\nasync def main() -> None:\r\n    account = dispatcher.account\r\n    message = (\r\n        f\"username: {await account.username}\\n\"\r\n        f\"user_id: {await account.id}\\n\"\r\n        f\"balance: {await account.balance}\\n\"\r\n        f\"new_message: {len(await account.get_new_messages)}\\n\"\r\n    )\r\n    print(message)\r\n    \r\nif __name__ == \"__main__\":\r\n    asyncio.run(main())\r\n```\r\n\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \"GOLDEN_KEY\" \u043d\u0430 golden_key \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430.\r\n### \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432 \u0447\u0430\u0442\r\n\r\n```python\r\nfrom FunPayNexusAPI import Bot, Dispatcher\r\nimport asyncio\r\n\r\nbot = Bot(golden_key=\"GOLDEN_KEY\") # \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \"GOLDEN_KEY\"\r\ndispatcher = Dispatcher(bot)\r\n\r\nasync def main() -> None:\r\n    await dispatcher.send_message(\"USER_ID\", \"\u041f\u0440\u0438\u0432\u0435\u0442!\") # \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \"USER_ID\"\r\n    \r\nif __name__ == \"__main__\":\r\n    asyncio.run(main())\r\n```\r\n\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \"GOLDEN_KEY\" \u043d\u0430 golden_key \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430.  \r\n\u0417\u0430\u043c\u0435\u043d\u044f\u0435\u043c \"USER_ID\" \u043d\u0430 id \u0441\u043e\u0431\u0435\u0441\u0435\u0434\u043d\u0438\u043a\u0430.\r\n\r\n## \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\r\n\u041f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0432\u043e\u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f, \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0432\u0441\u043a\u043e\u0440\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u043d\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u043f\u043e \u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d \u0441\u0442\u0430\u0440\u044b\u0439.\r\n\r\n\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u0447\u0430\u0442, \u0443\u043a\u0430\u0437\u0430\u043d \u0432\u044b\u0448\u0435.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This is a convenient tool for developing and working with the site funpay.com",
    "version": "0.0.4",
    "project_urls": {
        "Chanel": "https://t.me/FunPayNexus",
        "GitHub": "https://github.com/Sema4ka0/FunPay-API",
        "Homepage": "https://github.com/Sema4ka0/FunPay-API"
    },
    "split_keywords": [
        "funpay",
        "api",
        "funpayapi",
        "tool",
        "bot",
        "tg",
        "lib"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3017deeb8c3db2af6809cf473be8d223452c0d0e34b1534cb788c95378b62037",
                "md5": "ca36994f3ea2f98cdab0dda0cd6d61f4",
                "sha256": "14539707652610b284fb0a8ddc8a52e033806d82bd8d5a6ccccc25ecaa9ae40a"
            },
            "downloads": -1,
            "filename": "FunPayNexusAPI-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "ca36994f3ea2f98cdab0dda0cd6d61f4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12619,
            "upload_time": "2024-08-24T16:35:42",
            "upload_time_iso_8601": "2024-08-24T16:35:42.603156Z",
            "url": "https://files.pythonhosted.org/packages/30/17/deeb8c3db2af6809cf473be8d223452c0d0e34b1534cb788c95378b62037/FunPayNexusAPI-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-24 16:35:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Sema4ka0",
    "github_project": "FunPay-API",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "funpaynexusapi"
}
        
Elapsed time: 0.35045s