File tree Expand file tree Collapse file tree 5 files changed +9
-45
lines changed
Expand file tree Collapse file tree 5 files changed +9
-45
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Telegraph
2- [ ![ Build Status] ( https://travis-ci.org/python273/telegraph.svg?branch=master )] ( https://travis-ci.org/python273/telegraph )
32[ ![ PyPI] ( https://img.shields.io/pypi/v/telegraph.svg )] ( https://pypi.python.org/pypi/telegraph )
43![ Python Versions] ( https://img.shields.io/pypi/pyversions/telegraph.svg )
54![ License] ( https://img.shields.io/github/license/python273/telegraph.svg )
@@ -8,24 +7,20 @@ Python Telegraph API wrapper
87
98- [ Documentation] ( https://python-telegraph.readthedocs.io/en/latest/ )
109
10+ ``` bash
11+ $ python3 -m pip install telegraph
12+ ```
13+
1114# Example
1215``` python
1316from telegraph import Telegraph
1417
1518telegraph = Telegraph()
16-
1719telegraph.create_account(short_name = ' 1337' )
1820
1921response = telegraph.create_page(
2022 ' Hey' ,
2123 html_content = ' <p>Hello, world!</p>'
2224)
23-
24- print (' https://telegra.ph/{} ' .format(response[' path' ]))
25- ```
26-
27- # Installation
28-
29- ``` bash
30- $ pip install telegraph
25+ print (response[' url' ])
3126```
Original file line number Diff line number Diff line change 1414except ImportError :
1515 from distutils .core import setup
1616
17- version = '1.4.1 '
17+ version = '2.0.0 '
1818
1919
2020with open ('README.md' ) as f :
4646 'License :: OSI Approved :: MIT License' ,
4747 'Operating System :: OS Independent' ,
4848 'Programming Language :: Python' ,
49- 'Programming Language :: Python :: 2' ,
50- 'Programming Language :: Python :: 2.7' ,
5149 'Programming Language :: Python :: 3' ,
52- 'Programming Language :: Python :: 3.4' ,
53- 'Programming Language :: Python :: 3.5' ,
5450 'Programming Language :: Python :: 3.6' ,
5551 'Programming Language :: Python :: 3.7' ,
5652 'Programming Language :: Python :: 3.8' ,
57- 'Programming Language :: Python :: Implementation :: PyPy ' ,
58- 'Programming Language :: Python :: Implementation :: CPython ' ,
53+ 'Programming Language :: Python :: 3.9 ' ,
54+ 'Programming Language :: Python :: 3.10 ' ,
5955 ]
6056)
Original file line number Diff line number Diff line change 99"""
1010
1111__author__ = 'python273'
12- __version__ = '1.4.1 '
12+ __version__ = '2.0.0 '
1313
1414from .api import Telegraph , TelegraphException
1515from .upload import upload_file
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ class InvalidHTML(ParsingException):
1717
1818
1919class RetryAfterError (TelegraphException ):
20-
2120 def __init__ (self , retry_after : int ):
2221 self .retry_after = retry_after
2322 super ().__init__ (f'Flood control exceeded. Retry in { retry_after } seconds' )
24-
You can’t perform that action at this time.
0 commit comments