{"id":15442872,"url":"https://github.com/hampta/donatello-py","last_synced_at":"2025-11-17T03:41:48.163Z","repository":{"id":198771970,"uuid":"701015635","full_name":"hampta/donatello-py","owner":"hampta","description":"Simple python wrapper for the Donatello API.","archived":false,"fork":false,"pushed_at":"2025-08-23T18:15:44.000Z","size":811,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T20:59:58.773Z","etag":null,"topics":["api","asynchronous","asyncio","asyncio-api-wrapper","donatello","python","python3","ukraine","wrapper-api"],"latest_commit_sha":null,"homepage":"https://donatello-py.hampta.pp.ua","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hampta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-05T18:30:35.000Z","updated_at":"2025-09-06T11:00:30.000Z","dependencies_parsed_at":"2023-10-11T04:15:16.950Z","dependency_job_id":null,"html_url":"https://github.com/hampta/donatello-py","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":0.06060606060606055,"last_synced_commit":"66ff759a72ddd2e3e0d08bd71951df86b67300a7"},"previous_names":["hampta/donatello-py"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/hampta/donatello-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampta%2Fdonatello-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampta%2Fdonatello-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampta%2Fdonatello-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampta%2Fdonatello-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hampta","download_url":"https://codeload.github.com/hampta/donatello-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hampta%2Fdonatello-py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284818572,"owners_count":27068110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-17T02:00:06.431Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","asynchronous","asyncio","asyncio-api-wrapper","donatello","python","python3","ukraine","wrapper-api"],"created_at":"2024-10-01T19:31:02.495Z","updated_at":"2025-11-17T03:41:48.121Z","avatar_url":"https://github.com/hampta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=https://raw.githubusercontent.com/hampta/donatello-py/main/assets/logo.png alt=\"Donatello-py logo\" /\u003e\n\u003cbr\u003e\n\u003ca href=\"https://donatello.to/hampta\"\u003e\u003cimg  src=\"https://img.shields.io/badge/donatello.to-donate-blue?style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/donatello-py/\"\u003e \u003cimg   src=\"https://img.shields.io/pypi/v/donatello-py?style=for-the-badge\" alt=\"PyPi Version\" /\u003e \u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/donatello-py/\"\u003e \u003cimg src=\"https://img.shields.io/pypi/pyversions/donatello-py?style=for-the-badge\" alt=\"PyPi Python versions\" /\u003e \u003c/a\u003e\n\u003cbr\u003e\n\u003ca href=\"https://donatello-py.readthedocs.io/en/latest/\"\u003e \u003cimg   src=\"https://img.shields.io/readthedocs/donatello-py?style=for-the-badge\" alt=\"Read the Docs\" /\u003e \u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/donatello-py/\"\u003e \u003cimg   src=\"https://img.shields.io/pypi/dm/donatello-py?style=for-the-badge\" alt=\"PyPi Downloads\" /\u003e \u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/donatello-py/\"\u003e \u003cimg   src=\"https://img.shields.io/pypi/l/donatello-py?style=for-the-badge\" alt=\"PyPi License\" /\u003e \u003c/a\u003e\n\u003ch3\u003e🐍 Python wrapper for the Donatello API.\u003c/h3\u003e\n\u003c/div\u003e\n\n## ✨ Features\n\n- Full type hints\n- Client info\n- Get donates\n- Get clients\n- Long polling\n- Async support\n\n## 🔗 Installation\n\n```bash \npip install donatello-py\n```\n\nFor speedup: \n```bash\npip install donatello-py[speed]\n```\n\n## 🧑‍🏭 Basic Usage\n\nGet and activate your API key [here](https://donatello.to/panel/doc-api).\n\n#### ⛓️ Sync \n\n```python\nfrom donatello import Donatello\n\nclient = Donatello(\"YOUR_API_KEY\")\n\n# Get client info\nprint(client.get_me())\n\n# Get donates\nprint(client.get_donates(page=0, per_page=00))\n\n# Get clients\nprint(client.get_clients())\n```\n\n#### ⛓️ Async\n\n```python\nfrom donatello import AsyncDonatello\n\nclient = AsyncDonatello(\"YOUR_API_KEY\")\n\nasync def main():\n    print(await client.get_me())\n    print(await client.get_donates(page=0, per_page=00))\n    print(await client.get_clients())\n\nasyncio.run(main())\n```\n\n## 🥏 Long polling\n\nFor use long polling you need to create widget [here](https://donatello.to/panel/alert-widget) and get widget id from url.\n\n### Example url:\n\n```\nhttps://donatello.to/widget/\u003cWIDGET_ID\u003e/token/\u003cYOUR_API_KEY\u003e\n```\n\n### Code example\n\n#### ⛓️ Sync\n\n```python\nfrom donatello import Donatello\nfrom donatello.models import Donate, User\n\nclient = Donatello(\"YOUR_API_KEY\", \"WIDGET_ID\")\n\n@client.on_ready\ndef start(user: User):\n    print(f\"Started with user {user.nickname}\")\n    print(f\"Donates Amount: {user.donates.total_amount}\")\n    print(f\"Donates count: {user.donates.total_count}\")\n\n@client.on_donate\ndef donate(donate: Donate):\n    print(donate)\n\nclient.start()\n```\n\n#### ⛓️ Async\n\n```python\nfrom donatello import AsyncDonatello\nfrom donatello.models import Donate, User\n\nclient = AsyncDonatello(\"YOUR_API_KEY\", \"WIDGET_ID\")\n\n@client.on_donate\nasync def donate(donate):\n    print(f\"Donator: {donate.nickname}\")\n    print(f\"Amount: {donate.amount} {donate.currency} / {donate.goal_amount} {donate.goal_currency}\")\n    print(f\"Message: {donate.message}\")\n\n@client.on_ready\nasync def ready(user):\n    print(user)\n    \nclient.start()\n```\n## 📚 Docs\n\nYou can find docs [here](https://donatello-py.readthedocs.io/en/latest/).\n\n## 📝 Examples\n\nYou can find more examples [here](https://github.com/hampta/donatello-py/tree/main/examples).\n\n\n## 📄 License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n## 📋 TODO\n\n- [x] Add more examples\n- [x] Add docs\n- [ ] Add tests\n- [ ] Websocket based long polling\n\n- [ ] ~~Goal, Top, interactive widgets?~~ Never\n\n\n## 🤝 Contributing\n\nPull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhampta%2Fdonatello-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhampta%2Fdonatello-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhampta%2Fdonatello-py/lists"}