Skip to content

Commit

Permalink
v1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentabbal committed Aug 15, 2023
1 parent 1737fa5 commit 2487ea3
Show file tree
Hide file tree
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.
1 change: 1 addition & 0 deletions Lib/site-packages/Mastodon.py-1.8.1.dist-info/INSTALLER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
21 changes: 21 additions & 0 deletions Lib/site-packages/Mastodon.py-1.8.1.dist-info/LICENSE
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.
101 changes: 101 additions & 0 deletions Lib/site-packages/Mastodon.py-1.8.1.dist-info/METADATA
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

71 changes: 71 additions & 0 deletions Lib/site-packages/Mastodon.py-1.8.1.dist-info/RECORD
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.
6 changes: 6 additions & 0 deletions Lib/site-packages/Mastodon.py-1.8.1.dist-info/WHEEL
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

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mastodon
23 changes: 17 additions & 6 deletions Lib/site-packages/PIL/BdfFontFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,27 @@ def bdf_char(f):
bitmap.append(s[:-1])
bitmap = b"".join(bitmap)

[x, y, l, d] = [int(p) for p in props["BBX"].split()]
[dx, dy] = [int(p) for p in props["DWIDTH"].split()]

bbox = (dx, dy), (l, -d - y, x + l, -d), (0, 0, x, y)
# The word BBX
# followed by the width in x (BBw), height in y (BBh),
# and x and y displacement (BBxoff0, BByoff0)
# of the lower left corner from the origin of the character.
width, height, x_disp, y_disp = [int(p) for p in props["BBX"].split()]

# The word DWIDTH
# followed by the width in x and y of the character in device pixels.
dwx, dwy = [int(p) for p in props["DWIDTH"].split()]

bbox = (
(dwx, dwy),
(x_disp, -y_disp - height, width + x_disp, -y_disp),
(0, 0, width, height),
)

try:
im = Image.frombytes("1", (x, y), bitmap, "hex", "1")
im = Image.frombytes("1", (width, height), bitmap, "hex", "1")
except ValueError:
# deal with zero-width characters
im = Image.new("1", (x, y))
im = Image.new("1", (width, height))

return id, int(props["ENCODING"]), bbox, im

Expand Down
16 changes: 0 additions & 16 deletions Lib/site-packages/PIL/BlpImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
from io import BytesIO

from . import Image, ImageFile
from ._deprecate import deprecate


class Format(IntEnum):
Expand All @@ -54,21 +53,6 @@ class AlphaEncoding(IntEnum):
DXT5 = 7


def __getattr__(name):
for enum, prefix in {
Format: "BLP_FORMAT_",
Encoding: "BLP_ENCODING_",
AlphaEncoding: "BLP_ALPHA_ENCODING_",
}.items():
if name.startswith(prefix):
name = name[len(prefix) :]
if name in enum.__members__:
deprecate(f"{prefix}{name}", 10, f"{enum.__name__}.{name}")
return enum[name]
msg = f"module '{__name__}' has no attribute '{name}'"
raise AttributeError(msg)


def unpack_565(i):
return ((i >> 11) & 0x1F) << 3, ((i >> 5) & 0x3F) << 2, (i & 0x1F) << 3

Expand Down
2 changes: 0 additions & 2 deletions Lib/site-packages/PIL/BmpImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ def _bitmap(self, header=0, offset=0):

# --------------- Once the header is processed, process the palette/LUT
if self.mode == "P": # Paletted for 1, 4 and 8 bit images

# ---------------------------------------------------- 1-bit images
if not (0 < file_info["colors"] <= 65536):
msg = f"Unsupported BMP Palette size ({file_info['colors']})"
Expand Down Expand Up @@ -360,7 +359,6 @@ def decode(self, buffer):
# Image plugin for the DIB format (BMP alias)
# =============================================================================
class DibImageFile(BmpImageFile):

format = "DIB"
format_description = "Windows Bitmap"

Expand Down
2 changes: 0 additions & 2 deletions Lib/site-packages/PIL/BufrStubImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ def _accept(prefix):


class BufrStubImageFile(ImageFile.StubImageFile):

format = "BUFR"
format_description = "BUFR"

def _open(self):

offset = self.fp.tell()

if not _accept(self.fp.read(4)):
Expand Down
2 changes: 0 additions & 2 deletions Lib/site-packages/PIL/CurImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ def _accept(prefix):


class CurImageFile(BmpImagePlugin.BmpImageFile):

format = "CUR"
format_description = "Windows Cursor"

def _open(self):

offset = self.fp.tell()

# check magic
Expand Down
2 changes: 0 additions & 2 deletions Lib/site-packages/PIL/DcxImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ def _accept(prefix):


class DcxImageFile(PcxImageFile):

format = "DCX"
format_description = "Intel DCX"
_close_exclusive_fp_after_loading = False

def _open(self):

# Header
s = self.fp.read(4)
if not _accept(s):
Expand Down
Loading

0 comments on commit 2487ea3

Please sign in to comment.