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 1
1
# Telegraph
2
- [ ![ Build Status] ( https://travis-ci.org/python273/telegraph.svg?branch=master )] ( https://travis-ci.org/python273/telegraph )
3
2
[ ![ PyPI] ( https://img.shields.io/pypi/v/telegraph.svg )] ( https://pypi.python.org/pypi/telegraph )
4
3
![ Python Versions] ( https://img.shields.io/pypi/pyversions/telegraph.svg )
5
4
![ License] ( https://img.shields.io/github/license/python273/telegraph.svg )
@@ -8,24 +7,20 @@ Python Telegraph API wrapper
8
7
9
8
- [ Documentation] ( https://python-telegraph.readthedocs.io/en/latest/ )
10
9
10
+ ``` bash
11
+ $ python3 -m pip install telegraph
12
+ ```
13
+
11
14
# Example
12
15
``` python
13
16
from telegraph import Telegraph
14
17
15
18
telegraph = Telegraph()
16
-
17
19
telegraph.create_account(short_name = ' 1337' )
18
20
19
21
response = telegraph.create_page(
20
22
' Hey' ,
21
23
html_content = ' <p>Hello, world!</p>'
22
24
)
23
-
24
- print (' https://telegra.ph/{} ' .format(response[' path' ]))
25
- ```
26
-
27
- # Installation
28
-
29
- ``` bash
30
- $ pip install telegraph
25
+ print (response[' url' ])
31
26
```
Original file line number Diff line number Diff line change 14
14
except ImportError :
15
15
from distutils .core import setup
16
16
17
- version = '1.4.1 '
17
+ version = '2.0.0 '
18
18
19
19
20
20
with open ('README.md' ) as f :
46
46
'License :: OSI Approved :: MIT License' ,
47
47
'Operating System :: OS Independent' ,
48
48
'Programming Language :: Python' ,
49
- 'Programming Language :: Python :: 2' ,
50
- 'Programming Language :: Python :: 2.7' ,
51
49
'Programming Language :: Python :: 3' ,
52
- 'Programming Language :: Python :: 3.4' ,
53
- 'Programming Language :: Python :: 3.5' ,
54
50
'Programming Language :: Python :: 3.6' ,
55
51
'Programming Language :: Python :: 3.7' ,
56
52
'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 ' ,
59
55
]
60
56
)
Original file line number Diff line number Diff line change 9
9
"""
10
10
11
11
__author__ = 'python273'
12
- __version__ = '1.4.1 '
12
+ __version__ = '2.0.0 '
13
13
14
14
from .api import Telegraph , TelegraphException
15
15
from .upload import upload_file
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ class InvalidHTML(ParsingException):
17
17
18
18
19
19
class RetryAfterError (TelegraphException ):
20
-
21
20
def __init__ (self , retry_after : int ):
22
21
self .retry_after = retry_after
23
22
super ().__init__ (f'Flood control exceeded. Retry in { retry_after } seconds' )
24
-
You can’t perform that action at this time.
0 commit comments