Some changes in preparation for 1.0.8
This commit is contained in:
pare
d4b37995fe
commit
721da30d7a
S'han modificat 3 arxius amb 20 adicions i 18 eliminacions
30
README.rst
30
README.rst
|
@ -7,30 +7,35 @@ Mastodon.py
|
|||
# Register app - only once!
|
||||
'''
|
||||
Mastodon.create_app(
|
||||
'pytooterapp',
|
||||
to_file = 'pytooter_clientcred.txt'
|
||||
'pytooterapp',
|
||||
api_base_url = 'https://mastodon.social',
|
||||
to_file = 'pytooter_clientcred.secret'
|
||||
)
|
||||
'''
|
||||
|
||||
# Log in - either every time, or use persisted
|
||||
'''
|
||||
mastodon = Mastodon(client_id = 'pytooter_clientcred.txt')
|
||||
mastodon = Mastodon(
|
||||
client_id = 'pytooter_clientcred.secret',
|
||||
api_base_url = 'https://mastodon.social'
|
||||
)
|
||||
mastodon.log_in(
|
||||
'my_login_email@example.com',
|
||||
'incrediblygoodpassword',
|
||||
to_file = 'pytooter_usercred.txt'
|
||||
'incrediblygoodpassword',
|
||||
to_file = 'pytooter_usercred.secret'
|
||||
)
|
||||
'''
|
||||
|
||||
# Create actual instance
|
||||
# Create actual API instance
|
||||
mastodon = Mastodon(
|
||||
client_id = 'pytooter_clientcred.txt',
|
||||
access_token = 'pytooter_usercred.txt'
|
||||
client_id = 'pytooter_clientcred.secret',
|
||||
access_token = 'pytooter_usercred.secret',
|
||||
api_base_url = 'https://mastodon.social'
|
||||
)
|
||||
mastodon.toot('Tooting from python!')
|
||||
mastodon.toot('Tooting from python using #mastodonpy !')
|
||||
|
||||
Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API.
|
||||
Feature complete for public API version v1 and easy to get started with.
|
||||
Feature complete for public API as of version v1.4 and easy to get started with.
|
||||
|
||||
You can install Mastodon.py via pypi:
|
||||
|
||||
|
@ -42,8 +47,5 @@ You can install Mastodon.py via pypi:
|
|||
# Python 3
|
||||
pip3 install Mastodon.py
|
||||
|
||||
Full documentation and basic "how to post a toot" usage example can be found
|
||||
Full documentation and basic usage examples can be found
|
||||
at http://mastodonpy.readthedocs.io/en/latest/ .
|
||||
|
||||
Full "real life" example of how to use this library to write a Mastodon bot
|
||||
will be linked here shortly.
|
||||
|
|
|
@ -58,7 +58,7 @@ master_doc = 'index'
|
|||
|
||||
# General information about the project.
|
||||
project = u'Mastodon.py'
|
||||
copyright = u'2016, Lorenz Diener'
|
||||
copyright = u'2016-2017, Lorenz Diener'
|
||||
author = u'Lorenz Diener'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
|
@ -68,7 +68,7 @@ author = u'Lorenz Diener'
|
|||
# The short X.Y version.
|
||||
version = u'1.0'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = u'1.0.7'
|
||||
release = u'1.0.8'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
|
|
4
setup.py
4
setup.py
|
@ -1,7 +1,7 @@
|
|||
from setuptools import setup, find_packages
|
||||
|
||||
setup(name='Mastodon.py',
|
||||
version='1.0.7',
|
||||
version='1.0.8',
|
||||
description='Python wrapper for the Mastodon API',
|
||||
packages=['mastodon'],
|
||||
setup_requires=['pytest-runner'],
|
||||
|
@ -13,7 +13,7 @@ setup(name='Mastodon.py',
|
|||
license='MIT',
|
||||
keywords='mastodon api microblogging',
|
||||
classifiers=[
|
||||
'Development Status :: 4 - Beta',
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Intended Audience :: Developers',
|
||||
'Topic :: Communications',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
|
|
Loading…
Referencia en una nova incidència