Skip to main content

No project description provided

Project description

aiotelegraph

MIT license built with Python3 paypal

Description

This is simple async library for interaction with Telegra.ph API

Contents

Release Notes

Version 0.1.0

  • Init library

Getting Started

Installation from pip

For installation aiotelegraph library from pip you should have pip with python (prefer python3.6 or later)

pip install aiotelegraph

Installation from GitHub

To basic installation from GitHub repository you should have git, python3 (prefer python3.6 or later), pip (optionally) in your system

git clone https://github.com/OlegYurchik/aiotelegraph.git
cd aiotelegraph
pip install .

or

git clone https://github.com/OlegYurchik/aiotelegraph.git
cd aiotelegraph
python setup.py install

Quick Start

After installation, you can use the library in your code. Below is a sneak example of using the library.

from asyncio
from aiotelegraph import NodeElement, TelegraphClient


async def main():
    client = TelegraphClient()
    await client.create_account(short_name="ShortName", author_name="AuthorName", author_url="AuthorUrl")

    content = [
        NodeElement(text="Hello"),
        NodeElement(text="Neighbour"),
    ]
    page = await client.create_page(title="Greeting", content=content, return_content=True) 


loop = asyncio.get_event_loop()
loop.run_until_complete(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

aiotelegraph-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

aiotelegraph-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiotelegraph-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for aiotelegraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9afead50889bb9c1a686bff2109b48d749bbb5c2e768935e622e2c69a9afbf7e
MD5 d0ebfdc08f739873db85f49a3a902da1
BLAKE2b-256 f8a726cc720130b65d4916cdff69c2ecd7c2f47ba910d8d7cf1d7b250f7cfc13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiotelegraph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for aiotelegraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d55534ec2db70ee3b4d6043689a719db09f9f1e81a2dc5f038eafd00e9d98f5f
MD5 ff69f1a94a337e1a6979182f1c631c65
BLAKE2b-256 ea56d843ab2dc7cba5085dde1394c9de1b86e0fecfd7c7af565788fb7e33bd76

See more details on using hashes here.

Supported by

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