pull/397/head 2.0.0
halcy 2025-02-15 22:48:59 +02:00
rodzic 0e142812c2
commit 9e1d7205f0
5 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -2,12 +2,14 @@ A note on versioning: This librarys major version will grow with the APIs
version number. Breaking changes will be indicated by a change in the minor
(or major) version number, and will generally be avoided.
v2.0.0 (IN PROGRESS)
--------------------
v2.0.0
------
* Absolutely massive rework of entities and typing. There are now proper classes for all entities, and typing is now used throughout the library. There is an attempt here to be backwards compatible, and none of my *tests* break.
* Documentation fixes based on the new entities and typing.
* Added information that streaming API access is now auth mandatory (Thanks @leahoswald)
* Removed six dependency, since we don't care about 2.x anymore (Thanks @a-detiste)
* Support level is now 4.3.0
* Note that logging in with passwords is deprecated and to be removed in 4.4.0
* Clarify the use of `code` (Thanks @lasseedfast)
* Improved docstring for visibility (Thanks @ashwinvis)
* Added `offset` parameter to `trending_statuses` (Thanks @Teqed)

Wyświetl plik

@ -1,7 +1,7 @@
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:
Feature complete for public API as of Mastodon version 4.3.0 and easy to get started with:
.. code-block:: python
@ -28,7 +28,6 @@ Feature complete for public API as of Mastodon version 3.5.5 and easy to get sta
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 !')

Wyświetl plik

@ -59,7 +59,7 @@ every aspect. This is a simple Python wrapper for that API, provided
as a single Python module.
Mastodon.py aims to implement the complete public Mastodon API. As
of this time, it is feature complete for Mastodon version 3.5.5. The
of this time, it is feature complete for Mastodon version 4.3.0. The
Mastodon compatible API layers of various other pieces of software as well
as forks, while not an official target, should also be basically
compatible, and Mastodon.py does make some allowances for behaviour that isn't

Wyświetl plik

@ -72,7 +72,7 @@ class Mastodon(MastoUtility, MastoAuthentication, MastoAccounts, MastoInstance,
Main class, imports most things from modules
"""
# Support level
__SUPPORTED_MASTODON_VERSION = "3.5.5"
__SUPPORTED_MASTODON_VERSION = "4.3.0"
__MASTODON_PY_VERSION = "2.0.0"
@staticmethod

Wyświetl plik

@ -4,7 +4,7 @@ build-backend= "setuptools.build_meta"
[project]
name = "Mastodon.py"
version = "1.8.1"
version = "2.0.0"
description = "Python wrapper for the Mastodon API"
readme = "README.rst"
authors = [