Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aiographfix

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiographfix

asynchronous Python Telegra.ph API wrapper

  • 0.2.2
  • PyPI
  • Socket score

Maintainers
1

aiographfix

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

aiographfix - asynchronous Python Telegra.ph API wrapper, that fix aiograph

Annotations

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 Telegra.ph/api <http://telegra.ph/api>_ page

All data types stored In the package aiographfix.types.

All methods are named following the PEP-8 <https://www.python.org/dev/peps/pep-0008/>_ 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 aiographfix

From sources

.. code-block:: bash

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

Usage examples

.. code-block:: python3

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', '

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

  • News: @aiogram_live <https://t.me/aiogram_live>_
  • Community: @aiogram <https://t.me/aiogram>_
  • Russian community: @aiogram_ru <https://t.me/aiogram_ru>_
  • Pip: aiographfix <https://pypi.org/project/aiographfix>_
  • Source: Github repo <https://github.com/Yyonging/aiograph>_
  • Issues/Bug tracker: Github issues tracker <https://github.com/Yyonging/aiograph/issues>_

.. |shield-pypi| image:: https://img.shields.io/pypi/v/aiograph.svg?style=flat-square :target: https://pypi.org/project/aiographfix/ :alt: PyPI

.. |shield-pypi-status| image:: https://img.shields.io/pypi/status/aiograph.svg?style=flat-square :target: https://pypi.org/project/aiographfix/ :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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc