./chat/py-mastodon, Python wrapper for the Mastodon API

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 1.5.0, Package name: py37-mastodon-1.5.0, Maintainer: pkgsrc-users

Mastodon.py is a Python wrapper for the Mastodon social networking API.

It is feature complete for the public API as of Mastodon version 2.1.0.

Required to run:
[devel/py-setuptools] [time/py-dateutil] [time/py-pytz] [devel/py-decorator] [devel/py-requests] [lang/py-six] [sysutils/py-magic] [lang/python37] [www/py-http_ece] [graphics/py-blurhash]

Required to build:
[pkgtools/cwrappers] [devel/py-test-runner]

Master sites:

SHA1: c6244b762229ba9d3834831a21be92485abe761b
RMD160: 7d022b221942e51db0a4c28dbfd99dfadd05b3db
Filesize: 690.35 KB

Version history: (Expand)

CVS history: (Expand)

   2020-03-05 21:37:30 by Nia Alarie | Files touched by this commit (1) | Package updated
Log message:
py-mastodon: Update DEPENDS
   2020-03-05 21:18:37 by Nia Alarie | Files touched by this commit (3) | Package updated
Log message:
py-mastodon: Update to 1.5.0

* BREAKING CHANGE: the search_v1 API is now gone from Mastodon, Mastodon.py will \ 
still let you use it where available / use it where needed if you call search()
* Support for new 3.0.0 features
    * Added profile directory API: directory()
    * Added featured and suggested tags API: featured_tags(), \ 
featured_tag_suggestions(), featured_tag_create(), featured_tag_delete() (Thanks \ 
Gargron for the advice)
    * Added read-markers API: markers_get(), markers_set()
    * Re-added trends API: trends()
    * Added health api: instance_health()
    * Added nodeinfo support: instance_nodeinfo()
    * Added new parameters to search (exclude_unreviewed) and create_account (reason)
* Added ability to persist base URLs together with access token and client id / \ 
secret files
* Documented that status_card endpoint has been removed, switched to alternate \ 
method of retrieving cards if function is still used
* Added blurhash as a core dependency, since it is now licensed permissively again
* Added me() function as synonym for account_verify_credentials() to lessen confusion
* Fixed notification-dismiss to use new API endpoint where the old one is not \ 
available (Thanks kensanata)
* Fixed status_reply to match status_post
* Add basic support for non-mainline featuresvia the feature_set parameter
    * Added support for fedibirds quote_id parameter in status_post
* Future-proofed webpush cryptography api while trying to remain very backwards \ 
compatible so that it can hopefully in the future become part of the core
* Clarified and updated the documentation and improved the tests in various ways
   2019-07-28 18:09:58 by Nia Alarie | Files touched by this commit (2) | Package updated
Log message:
py-mastodon: Update to 1.4.6

* Fix documentation for list_accounts()
* Add note about block lists to documentation
* Add note that 2.7 support is being sunset

* Small fix to be friendlier to hosted apps

* Added support for moderation API (Thanks Gargron for the clarifications and \ 
dotUser for helping with testing)
* Made status_delete return the deleted status (With "source" attribute)
* Added account_id parameter to notifications
* Added streaming_health
* Added support for local hashtag streams
* Made blurhash an optional dependency (Thanks limburgher)
* Fixed some things related to error handling (Thanks lefherz)
* Fixed various small documentation issues (Thanks lefherz)

* BREAKING BUT ONLY FOR YOUR DEPLOY, POTENTIALLY: http_ece and cryptography are \ 
now optional dependencies, if you need full webpush crypto support add the \ 
"webpush" feature to your Mastodon.py requirements or require one or \ 
both manually in your own setup.py.
* Fixed a bug in create_account (Thanks csmall for the report)
* Allowed and documented non-authenticated access to streaming API (Thanks webwurst)
* Fixed MastodonServerError not being exported (Thanks lefherz)
* Fixed various small documentation issues (Thanks julianaito)

* Fixed date parsing in hashtag dicts.

* Fixed search not working on Mastodon versions before 2.8.0. search now \ 
dynamically selects search_v1 or search_v2 and adjusts valid parameters \ 
depending on the detected Mastodon version.
* Added blurhash decoding.

There are some breaking changes in this release, though less than you might \ 
think, considering
this goes all the way from version 2.4.3 to 2.8.0.

* BREAKING CHANGE: Changed streaming API behaviour to make the initial \ 
connection asynchronous (Thanks to Shura0 for the detailed report)
    * Old behaviour: The initial connection could fail, the stream functions \ 
would then throw an exception.
    * New behaviour: The initial connection function just returns immediately. \ 
If there is a connection error, the listeners on_abort handler is called to \ 
inform the user and the connection is retried.
* BREAKING CHANGE: search() now calls through to search_v2. The old behaviour is \ 
available as search_v1.
* Added support for polls (Added in 2.8.0)
* Added support for preferences API (Added in 2.8.0)
* Added support for the boost visibility parameter (Added in 2.8.0)
* Added support for type, limit, offset, min_id, max_id, account_id on the \ 
search API (Added in 2.8.0)
* Added support for scheduled statuses (Added in 2.7.0)
* Added support for account creation via the API (Thanks gargron for clarifying \ 
many things here and in other places. Added in 2.7.0)
* Added support for conversation streaming / stream_direct (Added in 2.6.0)
* Added support for conversations (Added in 2.6.0)
* Added support for report forwarding (Added in 2.5.0)
* Added support for multiple OAuth redirect URIs and forcing the user to \ 
re-login in OAuth flows.
* Added support for app_verify_credentials endpoint (Added in 2.7.2).
* Added support for min_id based backwards pagination (Added in 2.6.0). The old \ 
method is still supported for older installs.
* Added support for account pins / endorsements (Added in 2.5.0).
* Updated documentation for changes to entities.
* Added the ability to access non-authenticated endpoints with no app \ 
credentials (Thanks to cerisara for the report and codl).
* Fixed the streaming API not working with gzip encoding (Thanks to bitleks for \ 
the report).
* Added more explicitly caught error classes (Thanks to lefherz).
* Improved Pleroma support including content-type and pagination fixes (Thanks \ 
to jfmcbrayer for the report and codl).
* Added better session support (Thanks to jrabbit).
* Fixed dependencies (Thanks to jrabbit).
* Fixed variousmime type issues (Thanks to errbufferoverfl and jfmcbrayer).
* Improved the example code (Thanks to MarkEEaton).
* Fixed various small documentation issues (Thanks to allo-).
   2018-10-01 18:31:11 by Nia Alarie | Files touched by this commit (3) | Package updated
Log message:
chat/py-mastodon: Update to 1.3.1


    Mastodon v2.4.3 compatibility:
        Keyword filter support: filters(), filter(), filters_apply(), \ 
filter_create(), filter_update(), filter_delete()
        Follow suggestions support: suggestions(), suggestion_delete()
        account_follow() now has "reblogs" parameter
        account_mute() now has "notifications" parameter
        Support for granular scopes
    Added status_reply() convenience function
    First attempt at basic Pleroma compatibility (Thanks deeunderscore)
    Several small fixes
   2018-08-21 19:31:21 by Nia Alarie | Files touched by this commit (3) | Package updated
Log message:
py-mastodon: Update to version 1.3.0.


Several small bug fixes (Thanks goldensuneur, bowlercaptain, joyeusenoelle)
Improved stream error handling (Thanks codl)
Improvements to streaming:
    Added on_abort() handler to streams
    Added automatic reconnecting
    POTENTIALLY BREAKING CHANGE: Added better error catching to make sure
    streaming functions do not just crash
Mastodon v2.3 compatibility (sorry for the late release)
    only_media parameter in timeline functions
    focus support for media_upload()
    Added media_update()
Mastodon v2.4 compatibility
    Added fields to account_update_credentials()
    WebPush support:
	Added push_subscription(), push_subscription_set(), push_subscription_update(),
	Added webpush crypto utilities: push_subscription_generate_keys(),
Added support for pinned toots, an oversight from 2.1.0: status_pin(), status_unpin()
POTENTIALLY BREAKING CHANGE: Changed pagination attributes to not be part of the \ 
dict keys
of paginated return values.
Many internal improvements, more tests
   2018-07-31 23:14:33 by Nia Alarie | Files touched by this commit (2)
Log message:
chat/py-mastodon: Fix typo in patch.
   2018-07-31 18:14:29 by Nia Alarie | Files touched by this commit (3)
Log message:
chat/py-mastodon: Add a patch to avoid the use of the 'async' keyword,
allowing it to be used with Python 3.7.
   2018-07-31 17:54:27 by Nia Alarie | Files touched by this commit (1)
Log message:
chat/py-mastodon: Version in pkgsrc is incompatible with python37
due to a collision with the async keyword.