https://github.com/aiogram/aiograph

Asynchronous Python Telegra.ph API wrapper.

https://github.com/aiogram/aiograph

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.4%) to scientific vocabulary

Keywords

asyncio python telegraph telegraph-api
Last synced: 5 months ago · JSON representation

Repository

Asynchronous Python Telegra.ph API wrapper.

Basic Info
Statistics
  • Stars: 65
  • Watchers: 9
  • Forks: 16
  • Open Issues: 10
  • Releases: 2
Topics
asyncio python telegraph telegraph-api
Created almost 8 years ago · Last pushed over 1 year ago
Metadata Files
Readme License

README.rst

AIOGraph
========

|shield-pypi| |shield-pypi-status| |shield-travis| |shield-codecov| |shield-license|

**aiograph** - asynchronous Python Telegra.ph API wrapper.

Annotations
-----------
The Telegraph class (``aiograph.Telegraph``) encapsulates all API calls in a single class.
It provides functions such as create_page, get_views and other's methods described at `Telegra.ph/api `_ page

All data types  stored In the package ``aiograph.types``.

All methods are named following the `PEP-8 `_ instructions
for example ``create_account`` for ``createAccount`` method and etc.
All API methods are awaitable and can be called only inside Event-loop.

Also if you want to upload the file to Telegra.ph service use ``upload`` method
from the instance of Telegraph class.

By the end of all actions you will need to close HTTP connections by calling the `close()` method (is awaitable).


Installation
------------

Using PIP
~~~~~~~~~
.. code-block:: bash

    $ pip install -U aiograph

From sources
~~~~~~~~~~~~
.. code-block:: bash

    $ git clone https://github.com/aiogram/aiograph.git
    $ cd aiograph
    $ python setup.py install


Usage examples
--------------

`Basics `_

.. code-block:: python3

   import asyncio

   from aiograph import Telegraph

   loop = asyncio.get_event_loop()
   telegraph = Telegraph()


   async def main():
       await telegraph.create_account('aiograph-demo')
       page = await telegraph.create_page('Demo', '

Hello, world!

') print('Created page:', page.url) if __name__ == '__main__': try: loop.run_until_complete(main()) except (KeyboardInterrupt, SystemExit): pass finally: loop.run_until_complete(telegraph.close()) # Close the aiohttp.ClientSession Links ----- - News: `@aiogram_live `_ - Community: `@aiogram `_ - Russian community: `@aiogram_ru `_ - Pip: `aiograph `_ - Source: `Github repo `_ - Issues/Bug tracker: `Github issues tracker `_ .. |shield-pypi| image:: https://img.shields.io/pypi/v/aiograph.svg?style=flat-square :target: https://pypi.org/project/aiograph/ :alt: PyPI .. |shield-pypi-status| image:: https://img.shields.io/pypi/status/aiograph.svg?style=flat-square :target: https://pypi.org/project/aiograph/ :alt: PyPi status .. |shield-travis| image:: https://img.shields.io/travis/aiogram/aiograph.svg?branch=master&style=flat-square :target: https://travis-ci.org/aiogram/aiograph :alt: Travis-CI .. |shield-codecov| image:: https://img.shields.io/codecov/c/github/aiogram/aiograph.svg?style=flat-square :target: https://codecov.io/gh/aiogram/aiograph :alt: Codecov .. |shield-license| image:: https://img.shields.io/pypi/l/aiogram.svg?style=flat-square :target: https://opensource.org/licenses/MIT :alt: MIT License

Owner

  • Name: aiogram
  • Login: aiogram
  • Kind: organization
  • Email: github@aiogram.dev

GitHub Events

Total
  • Watch event: 2
  • Fork event: 1
Last Year
  • Watch event: 2
  • Fork event: 1

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 41
  • Total Committers: 3
  • Avg Commits per committer: 13.667
  • Development Distribution Score (DDS): 0.195
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Alex Root Junior j****r@g****m 33
Nikita 4****k 5
Yyonging s****g@1****m 3
Committer Domains (Top 20 + Academic)
163.com: 1

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 9
  • Total pull requests: 6
  • Average time to close issues: 10 months
  • Average time to close pull requests: 10 months
  • Total issue authors: 9
  • Total pull request authors: 5
  • Average comments per issue: 1.33
  • Average comments per pull request: 0.67
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • derepetko (1)
  • frostnotfall (1)
  • JKearnsl (1)
  • aga-one (1)
  • ozzyst (1)
  • bomzheg (1)
  • xllwhoami (1)
  • tappress (1)
  • Orangepranik (1)
Pull Request Authors
  • gabbhack (2)
  • tappress (2)
  • akchonya (2)
  • bomzheg (1)
  • Yyonging (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 291 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 6
  • Total versions: 4
  • Total maintainers: 2
pypi.org: aiograph

asynchronous Python Telegra.ph API wrapper

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 6
  • Downloads: 291 Last month
Rankings
Dependent repos count: 6.0%
Stargazers count: 8.8%
Forks count: 9.6%
Average: 10.1%
Dependent packages count: 10.1%
Downloads: 15.8%
Maintainers (2)
Last synced: 6 months ago

Dependencies

dev_requirements.txt pypi
  • aiohttp-socks >=0.2.2 development
  • codecov >=2.0.15 development
  • pytest >=3.5.1 development
  • pytest-asyncio >=0.8.0 development
  • pytest-cov >=2.5.1 development
  • wheel >=0.31.0 development
requirements.txt pypi
  • aiohttp >=3.4.4
  • attrs >=19.3.0
  • certifi >=2018.11.29
setup.py pypi