-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1737fa5
commit 2487ea3
Showing
7,070 changed files
with
468,150 additions
and
224,430 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2016 Lorenz Diener / Mastodon.py contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
Metadata-Version: 2.1 | ||
Name: Mastodon.py | ||
Version: 1.8.1 | ||
Summary: Python wrapper for the Mastodon API | ||
Home-page: https://github.com/halcy/Mastodon.py | ||
Author: Lorenz Diener | ||
Author-email: lorenzd+mastodonpypypi@gmail.com | ||
License: MIT | ||
Keywords: mastodon api microblogging | ||
Classifier: Development Status :: 5 - Production/Stable | ||
Classifier: Intended Audience :: Developers | ||
Classifier: Topic :: Communications | ||
Classifier: License :: OSI Approved :: MIT License | ||
Classifier: Programming Language :: Python :: 2 | ||
Classifier: Programming Language :: Python :: 3 | ||
Description-Content-Type: text/x-rst | ||
License-File: LICENSE | ||
Requires-Dist: requests (>=2.4.2) | ||
Requires-Dist: python-dateutil | ||
Requires-Dist: six | ||
Requires-Dist: decorator (>=4.0.0) | ||
Requires-Dist: blurhash (>=1.1.4) | ||
Requires-Dist: python-magic ; platform_system != "Windows" | ||
Requires-Dist: python-magic-bin ; platform_system == "Windows" | ||
Provides-Extra: blurhash | ||
Requires-Dist: blurhash (>=1.1.4) ; extra == 'blurhash' | ||
Provides-Extra: test | ||
Requires-Dist: pytest ; extra == 'test' | ||
Requires-Dist: pytest-runner ; extra == 'test' | ||
Requires-Dist: pytest-cov ; extra == 'test' | ||
Requires-Dist: vcrpy ; extra == 'test' | ||
Requires-Dist: pytest-vcr ; extra == 'test' | ||
Requires-Dist: pytest-mock ; extra == 'test' | ||
Requires-Dist: requests-mock ; extra == 'test' | ||
Requires-Dist: pytz ; extra == 'test' | ||
Requires-Dist: http-ece (>=1.0.5) ; extra == 'test' | ||
Requires-Dist: cryptography (>=1.6.0) ; extra == 'test' | ||
Requires-Dist: blurhash (>=1.1.4) ; extra == 'test' | ||
Provides-Extra: webpush | ||
Requires-Dist: http-ece (>=1.0.5) ; extra == 'webpush' | ||
Requires-Dist: cryptography (>=1.6.0) ; extra == 'webpush' | ||
|
||
Mastodon.py | ||
=========== | ||
Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API. | ||
Feature complete for public API as of Mastodon version 3.5.5 and easy to get started with: | ||
|
||
.. code-block:: python | ||
|
||
from mastodon import Mastodon | ||
|
||
# Register your app! This only needs to be done once (per server, or when | ||
# distributing rather than hosting an application, most likely per device and server). | ||
# Uncomment the code and substitute in your information: | ||
''' | ||
Mastodon.create_app( | ||
'pytooterapp', | ||
api_base_url = 'https://mastodon.social', | ||
to_file = 'pytooter_clientcred.secret' | ||
) | ||
''' | ||
|
||
# Then, log in. This can be done every time your application starts (e.g. when writing a | ||
# simple bot), or you can use the persisted information: | ||
mastodon = Mastodon(client_id = 'pytooter_clientcred.secret',) | ||
mastodon.log_in( | ||
'my_login_email@example.com', | ||
'incrediblygoodpassword', | ||
to_file = 'pytooter_usercred.secret' | ||
) | ||
|
||
# Note that this won't work when using 2FA - you'll have to use OAuth, in that case. | ||
# To post, create an actual API instance: | ||
mastodon = Mastodon(access_token = 'pytooter_usercred.secret') | ||
mastodon.toot('Tooting from Python using #mastodonpy !') | ||
|
||
You can install Mastodon.py via pypi: | ||
|
||
.. code-block:: Bash | ||
|
||
# Python 3 | ||
pip3 install Mastodon.py | ||
|
||
We currently try to support Python 3.7 and above, and try to at least not break Python 3 versions | ||
below that. Python 2 support is no longer a goal. | ||
|
||
Full documentation and basic usage examples can be found | ||
at https://mastodonpy.readthedocs.io/en/stable/ . Some more extensive examples can be | ||
found at https://github.com/halcy/MastodonpyExamples | ||
|
||
Acknowledgements | ||
---------------- | ||
Mastodon.py contains work by a large amount of contributors, many of which have | ||
put significant work into making it a better library. You can find some information | ||
about who helped with which particular feature or fix in the changelog. | ||
|
||
.. image:: https://circleci.com/gh/halcy/Mastodon.py.svg?style=svg | ||
:target: https://app.circleci.com/pipelines/github/halcy/Mastodon.py | ||
.. image:: https://codecov.io/gh/halcy/Mastodon.py/branch/master/graph/badge.svg | ||
:target: https://codecov.io/gh/halcy/Mastodon.py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
Mastodon.py-1.8.1.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 | ||
Mastodon.py-1.8.1.dist-info/LICENSE,sha256=ZvVSK9bgQICEW3jDhZvyPiv9oPe-GTbhzA1eVg6kplY,1097 | ||
Mastodon.py-1.8.1.dist-info/METADATA,sha256=WQozJUlt3SlOs_Vucmmy359nuSh6-6fT3o1U8yD5pnc,3913 | ||
Mastodon.py-1.8.1.dist-info/RECORD,, | ||
Mastodon.py-1.8.1.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 | ||
Mastodon.py-1.8.1.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110 | ||
Mastodon.py-1.8.1.dist-info/top_level.txt,sha256=K8IaGiBQHg7qJT2rPGIJUy_w0GciduVxXA1S8RZFT0k,9 | ||
mastodon/Mastodon.py,sha256=yGgFM3Q2BCB1TSZr6WSAwNkBAL4Jf4MIaimpXFZMTbg,3811 | ||
mastodon/__init__.py,sha256=C5F8jGxNSabx0sQZnR15TYskAEEjeEV9d0wObDpLlM0,1029 | ||
mastodon/__pycache__/Mastodon.cpython-38.pyc,, | ||
mastodon/__pycache__/__init__.cpython-38.pyc,, | ||
mastodon/__pycache__/accounts.cpython-38.pyc,, | ||
mastodon/__pycache__/admin.cpython-38.pyc,, | ||
mastodon/__pycache__/authentication.cpython-38.pyc,, | ||
mastodon/__pycache__/compat.cpython-38.pyc,, | ||
mastodon/__pycache__/conversations.cpython-38.pyc,, | ||
mastodon/__pycache__/defaults.cpython-38.pyc,, | ||
mastodon/__pycache__/endorsements.cpython-38.pyc,, | ||
mastodon/__pycache__/errors.cpython-38.pyc,, | ||
mastodon/__pycache__/favourites.cpython-38.pyc,, | ||
mastodon/__pycache__/filters.cpython-38.pyc,, | ||
mastodon/__pycache__/hashtags.cpython-38.pyc,, | ||
mastodon/__pycache__/instance.cpython-38.pyc,, | ||
mastodon/__pycache__/internals.cpython-38.pyc,, | ||
mastodon/__pycache__/lists.cpython-38.pyc,, | ||
mastodon/__pycache__/media.cpython-38.pyc,, | ||
mastodon/__pycache__/notifications.cpython-38.pyc,, | ||
mastodon/__pycache__/polls.cpython-38.pyc,, | ||
mastodon/__pycache__/preferences.cpython-38.pyc,, | ||
mastodon/__pycache__/push.cpython-38.pyc,, | ||
mastodon/__pycache__/relationships.cpython-38.pyc,, | ||
mastodon/__pycache__/reports.cpython-38.pyc,, | ||
mastodon/__pycache__/search.cpython-38.pyc,, | ||
mastodon/__pycache__/statuses.cpython-38.pyc,, | ||
mastodon/__pycache__/streaming.cpython-38.pyc,, | ||
mastodon/__pycache__/streaming_endpoints.cpython-38.pyc,, | ||
mastodon/__pycache__/suggestions.cpython-38.pyc,, | ||
mastodon/__pycache__/timeline.cpython-38.pyc,, | ||
mastodon/__pycache__/trends.cpython-38.pyc,, | ||
mastodon/__pycache__/utility.cpython-38.pyc,, | ||
mastodon/__pycache__/versions.cpython-38.pyc,, | ||
mastodon/accounts.py,sha256=cDDuKjXncjuRxr6VeCX5jms0gXOY24oWoGGQYtfKQTo,21774 | ||
mastodon/admin.py,sha256=xtfqN9OvMX8fh4K9dedZrKHJDX9ACpccTtfw6kmzbiY,30152 | ||
mastodon/authentication.py,sha256=GvV4l6KIPRNd4ox2LMAlyh3oxLJmKB2w3seBGqsk7V0,20269 | ||
mastodon/compat.py,sha256=8yevY2o721jDy9ryNkTOdwhTqM3c7pqKfZPG4-mPhYk,943 | ||
mastodon/conversations.py,sha256=23fPxsvCBoUGholBI95A9WXmHOcZXYuNufreSoNENfU,1397 | ||
mastodon/defaults.py,sha256=ExP3Nl29lM19nVktA3x0Uqfj825TbesUezQeQ7yTwpY,1862 | ||
mastodon/endorsements.py,sha256=_OT4ie_NFD33vAfpL_xYgj-8cq4aseZXd8eNq0vaJW4,565 | ||
mastodon/errors.py,sha256=0pAfRDojIkPa5n7FI4swIVVeGohrkaz3dik5vYgGaEE,2457 | ||
mastodon/favourites.py,sha256=z-wbN2sZ_pM66PRbuMcL_zhhG0hYtzWY0mI-jZ4k5Os,2291 | ||
mastodon/filters.py,sha256=tB3hwtol6R3W5VDCUv5KqJV9TJLE1Q4dK8XMQeOSkSw,4656 | ||
mastodon/hashtags.py,sha256=aAvZbNJlgfEl5lRm5juoTNi7yuZghBbQ_yBIaZjHbEA,1864 | ||
mastodon/instance.py,sha256=UOb2cF-DSSp-LpEm-UO0EzIABxrGD8tspUnvSTfDhZs,6832 | ||
mastodon/internals.py,sha256=5VFGQ7crSO2MiQ57CMqwWF1FXElCQi3-B7bP2l1eTR0,30735 | ||
mastodon/lists.py,sha256=R6FwrTFAh5s13QXXOQBU_KwzbPKKDZkFYfVZTHX9gUQ,3725 | ||
mastodon/media.py,sha256=L2mXISOZ0WgOTAAV9sRiQ2uNJfsLBJVdDQlDFbt_IQU,5078 | ||
mastodon/notifications.py,sha256=_KewPjtV5h9V9bVfpwvXVlLge4LJGaL7V_Yfa4NeN9I,4388 | ||
mastodon/polls.py,sha256=2z49y6bHVfAjIXXQ23p6RF-zsih2Fo0Nv57p9joqoyQ,2140 | ||
mastodon/preferences.py,sha256=dg81yQtxAaCrlTZCAkIYiR-Lgp5yVWPUVZXqwI1puDc,2639 | ||
mastodon/push.py,sha256=NFKMuJjawgTbQ__5gWvfNuKZYJjuNFC_t42FHdz_9LM,8147 | ||
mastodon/relationships.py,sha256=VGlVbH3ook2pwqlVPRyoelOISQ1ZfLVcNwjVKtHNnvU,4839 | ||
mastodon/reports.py,sha256=_7lpt0VODFO5H8yzqLFOETmjyfwcSnVwjRDN54eh_4Y,2373 | ||
mastodon/search.py,sha256=h7vu3wkZEmo_YzeyQkdx5h1lnlGx3qgP4Cc9mrnIlaI,4325 | ||
mastodon/statuses.py,sha256=EF9Q3Sns6ptVbELM8X0UPxOWftJFNMQ48bgxY4BUnNM,21106 | ||
mastodon/streaming.py,sha256=YNTgDELmcEMcfrCDu4lWk40AW7_zjyMB5wHSu3OLNhQ,12259 | ||
mastodon/streaming_endpoints.py,sha256=H9KLxem9EKqKW4rPrp0M-XbTWPxQV2Zgp1rUskijRKw,5073 | ||
mastodon/suggestions.py,sha256=Cveiec_ypIulZo4odN0wc2Dbb0TzE2_AtR-Zz6ImOjU,971 | ||
mastodon/timeline.py,sha256=wFHB95YzdR3w8TYJiu7aFXl_INIAP2ndWPCbsqhjZtg,5062 | ||
mastodon/trends.py,sha256=rfnlUc3-qfkf3c89ei7RG27joYxuzMNkvyFBRE5Hehk,3400 | ||
mastodon/utility.py,sha256=VOMtH-00sWEnLlIAMPU8CpC7CxJ4OxYv1kLvs0Z3Xdo,10218 | ||
mastodon/versions.py,sha256=s5u-sKXTh2T689fvGIRpAWqH8puRwEo_acZ4o6jrp-o,1852 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Wheel-Version: 1.0 | ||
Generator: bdist_wheel (0.37.1) | ||
Root-Is-Purelib: true | ||
Tag: py2-none-any | ||
Tag: py3-none-any | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mastodon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.