Skip to main content

asynchronous Python API wrapper

Project description

PyPI PyPi status Travis-CI Codecov MIT License

aiographfix - asynchronous Python API wrapper, that fix aiograph


The Telegraph class (aiographfix.Telegraph) encapsulates all API calls in a single class. It provides functions such as create_page, get_views and other’s methods described at page

All data types stored In the package aiographfix.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 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).


Using PIP

$ pip install -U aiographfix

From sources

$ git clone
$ cd aiograph
$ python install

Usage examples

import asyncio

from aiographfix import Telegraph

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

async def main():
    await telegraph.create_account('aiograph-demo')
    page = await telegraph.create_page('Demo', '<p><strong>Hello, world!</strong></p>')
    print('Created page:', page.url)

if __name__ == '__main__':
    except (KeyboardInterrupt, SystemExit):
        loop.run_until_complete(telegraph.close())  # Close the aiohttp.ClientSession

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiographfix-0.2.2.tar.gz (14.1 kB view hashes)

Uploaded source

Built Distribution

aiographfix-0.2.2-py3-none-any.whl (15.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page