Skip to main content

PyPI PyPi status Travis-CI Codecov MIT 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 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 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

$ pip install -U aiographfix

From sources

$ git clone https://github.com/Yyonging/aiograph.git
$ cd aiograph
$ python setup.py 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__':
    try:
        loop.run_until_complete(main())
    except (KeyboardInterrupt, SystemExit):
        pass
    finally:
        loop.run_until_complete(telegraph.close())  # Close the aiohttp.ClientSession

Metadata

Release files for aiographfix 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiographfix 0.2.2
File Size Uploaded Provenance Actions
aiographfix-0.2.2.tar.gz 14.1 kB Without provenance Details for aiographfix-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiographfix 0.2.2
File Interpreter ABI Platform Actions
aiographfix-0.2.2-py3-none-any.whl Python 3 none any Details for aiographfix-0.2.2-py3-none-any.whl

Total release size: 29.3 kB

Release files / aiographfix-0.2.2.tar.gz

Download URL aiographfix-0.2.2.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9904d3d8640d524cba04d1f3e4e57d2c721a5e3df0a3f2998f4ff6366ab27cb1
BLAKE2b-256 checksum
How to use checksums
796ad959e7e2ace8681c08c2c05a74c954ee0af9d6e1ae5332b3a5499c0fe73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Release files / aiographfix-0.2.2-py3-none-any.whl

Download URL aiographfix-0.2.2-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4891cbbae374efc4a1d4b26fa09e7ff887f8d86b96865920f7861e825462120a
BLAKE2b-256 checksum
How to use checksums
fdf788b8a479a2cf4473bc4b4c469f468d66f9393d81825c484fd6879018d36d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Security for aiographfix 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page