{"id":13639976,"url":"https://github.com/aiogram/aiograph","last_synced_at":"2025-09-08T14:35:34.362Z","repository":{"id":32319874,"uuid":"132245286","full_name":"aiogram/aiograph","owner":"aiogram","description":"Asynchronous Python Telegra.ph API wrapper.","archived":false,"fork":false,"pushed_at":"2024-06-21T13:00:23.000Z","size":219,"stargazers_count":66,"open_issues_count":10,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T21:26:51.751Z","etag":null,"topics":["asyncio","python","telegraph","telegraph-api"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/aiograph","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/aiogram.png","metadata":{"files":{"readme":"README.rst","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":"2018-05-05T12:20:01.000Z","updated_at":"2025-01-10T10:45:58.000Z","dependencies_parsed_at":"2024-11-08T15:39:22.501Z","dependency_job_id":null,"html_url":"https://github.com/aiogram/aiograph","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":"0.19512195121951215","last_synced_commit":"a00aacebb04c1e743055ba524b978a06027e31ed"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiogram%2Faiograph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiogram%2Faiograph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiogram%2Faiograph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aiogram%2Faiograph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aiogram","download_url":"https://codeload.github.com/aiogram/aiograph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248369188,"owners_count":21092526,"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","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":["asyncio","python","telegraph","telegraph-api"],"created_at":"2024-08-02T01:01:06.620Z","updated_at":"2025-04-11T09:41:23.765Z","avatar_url":"https://github.com/aiogram.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"AIOGraph\n========\n\n|shield-pypi| |shield-pypi-status| |shield-travis| |shield-codecov| |shield-license|\n\n**aiograph** - asynchronous Python Telegra.ph API wrapper.\n\nAnnotations\n-----------\nThe Telegraph class (``aiograph.Telegraph``) encapsulates all API calls in a single class.\nIt provides functions such as create_page, get_views and other's methods described at `Telegra.ph/api \u003chttp://telegra.ph/api\u003e`_ page\n\nAll data types  stored In the package ``aiograph.types``.\n\nAll methods are named following the `PEP-8 \u003chttps://www.python.org/dev/peps/pep-0008/\u003e`_ instructions\nfor example ``create_account`` for ``createAccount`` method and etc.\nAll API methods are awaitable and can be called only inside Event-loop.\n\nAlso if you want to upload the file to Telegra.ph service use ``upload`` method\nfrom the instance of Telegraph class.\n\nBy the end of all actions you will need to close HTTP connections by calling the `close()` method (is awaitable).\n\n\nInstallation\n------------\n\nUsing PIP\n~~~~~~~~~\n.. code-block:: bash\n\n    $ pip install -U aiograph\n\nFrom sources\n~~~~~~~~~~~~\n.. code-block:: bash\n\n    $ git clone https://github.com/aiogram/aiograph.git\n    $ cd aiograph\n    $ python setup.py install\n\n\nUsage examples\n--------------\n\n`Basics \u003chttps://github.com/aiogram/aiograph/blob/master/examples/basics.py\u003e`_\n\n.. code-block:: python3\n\n   import asyncio\n\n   from aiograph import Telegraph\n\n   loop = asyncio.get_event_loop()\n   telegraph = Telegraph()\n\n\n   async def main():\n       await telegraph.create_account('aiograph-demo')\n       page = await telegraph.create_page('Demo', '\u003cp\u003e\u003cstrong\u003eHello, world!\u003c/strong\u003e\u003c/p\u003e')\n       print('Created page:', page.url)\n\n\n   if __name__ == '__main__':\n       try:\n           loop.run_until_complete(main())\n       except (KeyboardInterrupt, SystemExit):\n           pass\n       finally:\n           loop.run_until_complete(telegraph.close())  # Close the aiohttp.ClientSession\n\n\nLinks\n-----\n\n- News: `@aiogram_live \u003chttps://t.me/aiogram_live\u003e`_\n- Community: `@aiogram \u003chttps://t.me/aiogram\u003e`_\n- Russian community: `@aiogram_ru \u003chttps://t.me/aiogram_ru\u003e`_\n- Pip: `aiograph \u003chttps://pypi.org/project/aiograph\u003e`_\n- Source: `Github repo \u003chttps://github.com/aiogram/aiograph\u003e`_\n- Issues/Bug tracker: `Github issues tracker \u003chttps://github.com/aiogram/aiograph/issues\u003e`_\n\n.. |shield-pypi| image:: https://img.shields.io/pypi/v/aiograph.svg?style=flat-square\n   :target: https://pypi.org/project/aiograph/\n   :alt: PyPI\n\n.. |shield-pypi-status| image:: https://img.shields.io/pypi/status/aiograph.svg?style=flat-square\n   :target: https://pypi.org/project/aiograph/\n   :alt: PyPi status\n\n.. |shield-travis| image:: https://img.shields.io/travis/aiogram/aiograph.svg?branch=master\u0026style=flat-square\n   :target: https://travis-ci.org/aiogram/aiograph\n   :alt: Travis-CI\n\n.. |shield-codecov| image:: https://img.shields.io/codecov/c/github/aiogram/aiograph.svg?style=flat-square\n   :target: https://codecov.io/gh/aiogram/aiograph\n   :alt: Codecov\n\n.. |shield-license| image:: https://img.shields.io/pypi/l/aiogram.svg?style=flat-square\n   :target: https://opensource.org/licenses/MIT\n   :alt: MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiogram%2Faiograph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faiogram%2Faiograph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faiogram%2Faiograph/lists"}