diff options
-rw-r--r-- | README.rst | 30 | ||||
-rw-r--r-- | docs/conf.py | 4 | ||||
-rw-r--r-- | setup.py | 4 |
3 files changed, 20 insertions, 18 deletions
@@ -7,30 +7,35 @@ Mastodon.py | |||
7 | # Register app - only once! | 7 | # Register app - only once! |
8 | ''' | 8 | ''' |
9 | Mastodon.create_app( | 9 | Mastodon.create_app( |
10 | 'pytooterapp', | 10 | 'pytooterapp', |
11 | to_file = 'pytooter_clientcred.txt' | 11 | api_base_url = 'https://mastodon.social', |
12 | to_file = 'pytooter_clientcred.secret' | ||
12 | ) | 13 | ) |
13 | ''' | 14 | ''' |
14 | 15 | ||
15 | # Log in - either every time, or use persisted | 16 | # Log in - either every time, or use persisted |
16 | ''' | 17 | ''' |
17 | mastodon = Mastodon(client_id = 'pytooter_clientcred.txt') | 18 | mastodon = Mastodon( |
19 | client_id = 'pytooter_clientcred.secret', | ||
20 | api_base_url = 'https://mastodon.social' | ||
21 | ) | ||
18 | mastodon.log_in( | 22 | mastodon.log_in( |
19 | '[email protected]', | 23 | '[email protected]', |
20 | 'incrediblygoodpassword', | 24 | 'incrediblygoodpassword', |
21 | to_file = 'pytooter_usercred.txt' | 25 | to_file = 'pytooter_usercred.secret' |
22 | ) | 26 | ) |
23 | ''' | 27 | ''' |
24 | 28 | ||
25 | # Create actual instance | 29 | # Create actual API instance |
26 | mastodon = Mastodon( | 30 | mastodon = Mastodon( |
27 | client_id = 'pytooter_clientcred.txt', | 31 | client_id = 'pytooter_clientcred.secret', |
28 | access_token = 'pytooter_usercred.txt' | 32 | access_token = 'pytooter_usercred.secret', |
33 | api_base_url = 'https://mastodon.social' | ||
29 | ) | 34 | ) |
30 | mastodon.toot('Tooting from python!') | 35 | mastodon.toot('Tooting from python using #mastodonpy !') |
31 | 36 | ||
32 | Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. | 37 | Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. |
33 | Feature complete for public API version v1 and easy to get started with. | 38 | Feature complete for public API as of version v1.4 and easy to get started with. |
34 | 39 | ||
35 | You can install Mastodon.py via pypi: | 40 | You can install Mastodon.py via pypi: |
36 | 41 | ||
@@ -42,8 +47,5 @@ You can install Mastodon.py via pypi: | |||
42 | # Python 3 | 47 | # Python 3 |
43 | pip3 install Mastodon.py | 48 | pip3 install Mastodon.py |
44 | 49 | ||
45 | Full documentation and basic "how to post a toot" usage example can be found | 50 | Full documentation and basic usage examples can be found |
46 | at http://mastodonpy.readthedocs.io/en/latest/ . | 51 | at http://mastodonpy.readthedocs.io/en/latest/ . |
47 | |||
48 | Full "real life" example of how to use this library to write a Mastodon bot | ||
49 | will be linked here shortly. | ||
diff --git a/docs/conf.py b/docs/conf.py index da413f2..9c4a292 100644 --- a/docs/conf.py +++ b/docs/conf.py | |||
@@ -58,7 +58,7 @@ master_doc = 'index' | |||
58 | 58 | ||
59 | # General information about the project. | 59 | # General information about the project. |
60 | project = u'Mastodon.py' | 60 | project = u'Mastodon.py' |
61 | copyright = u'2016, Lorenz Diener' | 61 | copyright = u'2016-2017, Lorenz Diener' |
62 | author = u'Lorenz Diener' | 62 | author = u'Lorenz Diener' |
63 | 63 | ||
64 | # The version info for the project you're documenting, acts as replacement for | 64 | # The version info for the project you're documenting, acts as replacement for |
@@ -68,7 +68,7 @@ author = u'Lorenz Diener' | |||
68 | # The short X.Y version. | 68 | # The short X.Y version. |
69 | version = u'1.0' | 69 | version = u'1.0' |
70 | # The full version, including alpha/beta/rc tags. | 70 | # The full version, including alpha/beta/rc tags. |
71 | release = u'1.0.7' | 71 | release = u'1.0.8' |
72 | 72 | ||
73 | # The language for content autogenerated by Sphinx. Refer to documentation | 73 | # The language for content autogenerated by Sphinx. Refer to documentation |
74 | # for a list of supported languages. | 74 | # for a list of supported languages. |
@@ -1,7 +1,7 @@ | |||
1 | from setuptools import setup, find_packages | 1 | from setuptools import setup, find_packages |
2 | 2 | ||
3 | setup(name='Mastodon.py', | 3 | setup(name='Mastodon.py', |
4 | version='1.0.7', | 4 | version='1.0.8', |
5 | description='Python wrapper for the Mastodon API', | 5 | description='Python wrapper for the Mastodon API', |
6 | packages=['mastodon'], | 6 | packages=['mastodon'], |
7 | setup_requires=['pytest-runner'], | 7 | setup_requires=['pytest-runner'], |
@@ -13,7 +13,7 @@ setup(name='Mastodon.py', | |||
13 | license='MIT', | 13 | license='MIT', |
14 | keywords='mastodon api microblogging', | 14 | keywords='mastodon api microblogging', |
15 | classifiers=[ | 15 | classifiers=[ |
16 | 'Development Status :: 4 - Beta', | 16 | 'Development Status :: 5 - Production/Stable', |
17 | 'Intended Audience :: Developers', | 17 | 'Intended Audience :: Developers', |
18 | 'Topic :: Communications', | 18 | 'Topic :: Communications', |
19 | 'License :: OSI Approved :: MIT License', | 19 | 'License :: OSI Approved :: MIT License', |