Skip to main content

Async python wrapper for Telegraph

Project description

Telegraph

Async python wrapper for Telegraph

Install

git clone https://github.com/Ladvix/telegraph.git
cd telegraph
pip install -r requirements.txt

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.1.tar.gz (5.5 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.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_wrapper_telegraph-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 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.1.tar.gz
Algorithm Hash digest
SHA256 c6e40c196b92d7b3f7c97720c7986dc28a76395c56718694fecaad7e86e74da1
MD5 56ab68df3975629443093ab97f36778d
BLAKE2b-256 78e95afdc62052e6a5b3c2c1aaf31a47496401e4aea5695bbda9712cd5e49fac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_wrapper_telegraph-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c45cb70c4df53d195ac1d7365cffd2a21437c2978d4ce9746cc60fff7ab189f
MD5 c963e49324e95156223de2884fab3ba8
BLAKE2b-256 fe537071cf0548376f4494fdfe977765c2e232d3a0a50b66ab08750a928a7e8e

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