Skip to main content

Async python wrapper for Telegraph

Project description

Telegraph

Async python wrapper for Telegraph

Install

pip install async-wrapper-telegraph

Usage

import asyncio
from telegraph import Telegraph
from telegraph.types import NodeElement


async def main():
    access_token = 'd3b25feccb89e508a9114afb82aa421fe2a9712b963b387cc5ad71e58722'
    async with Telegraph(access_token) as client:
        r = await client.create_page(
            title='Test telegra.ph',
            content=[
                NodeElement(
                    tag='p',
                    children=[
                        'Hello, ',
                        NodeElement(tag='b', children=['world!'])
                    ]
                )
            ]
        )
        print(r)

asyncio.run(main())

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

async_wrapper_telegraph-0.0.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_wrapper_telegraph-0.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file async_wrapper_telegraph-0.0.2.tar.gz.

File metadata

  • Download URL: async_wrapper_telegraph-0.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for async_wrapper_telegraph-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4a89c47e65feb244d236051d269f5abc6297ca08e52b0885abdf54599392faf3
MD5 49e3ae6d6930598b44e733896b98f8d5
BLAKE2b-256 ea6f1cbf9bb36617e8717af204d5bea26ddc9794065ac709cf1e3304d0ab7cf5

See more details on using hashes here.

File details

Details for the file async_wrapper_telegraph-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for async_wrapper_telegraph-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2651286e56c222174dc1d2a7f23db1b290882857ff768961b2514ce24749bdfc
MD5 3c8fab7624feb169a9b06de0b564d5ad
BLAKE2b-256 a42acdd6628658e3870bb2798894bf9345db38210d74fd9c89994d4b4fec6a04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page