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.1.0.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.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_wrapper_telegraph-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 045740193c21175b805b9605847b767db952784bd68e39d004467db9e3c156d0
MD5 c9945c5bf85d279b187c2c41096fc800
BLAKE2b-256 4464f7f3acbfd2bf2fdab5c32a337540fbe9b6fe75218f8570b58aed83b42b43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_wrapper_telegraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f05cb21461aed29f38668bca136f64f0b20636a996c621bdd5a3f029f50a621
MD5 03b08ac06123652a02cccf33d926d0e2
BLAKE2b-256 13e51d6fa5139bf09d87d7683058dae6dfde064474e811ccd3954e2ccc10ead5

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