Wykres commitów

520 Commity (master)

Autor SHA1 Wiadomość Data
halcy f2282790cc Add email resend api 2022-11-19 01:11:02 +02:00
halcy 6a630202db add server rules API 2022-11-19 00:53:25 +02:00
halcy 8d6177c07e Document "rules" attribute, make docs maybe a bit better 2022-11-19 00:28:25 +02:00
halcy 31a00f07c1 some more tests 2022-11-19 00:15:54 +02:00
halcy d19b7185d8 try to fix tests, again 2022-11-18 00:06:24 +02:00
halcy 897b3a23cf add server datetime retriever, fix tests some more 2022-11-17 23:25:41 +02:00
halcy 725f79466d Fix tests 2022-11-17 22:00:37 +02:00
halcy ec0194c643 Add additional date based tests 2022-11-17 20:50:23 +02:00
Josh S 2e23667442 Fix ID unpacking. 2022-11-16 08:44:16 +00:00
halcy 5f09c3814e Fix an issue, remove a test 2022-11-15 11:10:13 +02:00
halcy dfabae2f54 small health fix 2022-11-15 10:46:23 +02:00
halcy cfcc6bccc7 Prep 1.6.0 2022-11-15 10:44:34 +02:00
Andy Piper a227bb0462
typo 2022-11-13 22:05:11 +00:00
Andy Piper 3d10b13f32
Merge branch 'master' into doc-updates 2022-11-13 22:04:13 +00:00
Andy Piper cf25f69446
Doc and docstring updates for consistency 2022-11-13 21:42:29 +00:00
halcy 24c686f6b2 Improve auth support 2022-11-13 22:32:04 +02:00
halcy 5215c2242d Fix some things in streaming and admin API for 3.3.0 support 2022-11-13 18:39:56 +02:00
halcy c66015a6b0 Add support and tests for "notifying" follow 2022-11-13 16:02:34 +02:00
halcy b1e1ec7bdc Add support for timed mutes, fix tests to actually pass with new setup 2022-11-13 15:33:10 +02:00
halcy a17b20cfa1 fix naming for featured tags 2022-11-13 14:54:23 +02:00
halcy ff489d8d3e Add missing version to account_note_set 2022-11-13 14:32:46 +02:00
halcy 750527416f Add account notes 2022-11-13 14:22:43 +02:00
halcy adcddefd59 clean up media loading, add thumbnail to media_update 2022-11-13 14:06:50 +02:00
halcy c670ed8ce2 Update information about dicts (media colors, card blurhash) 2022-11-13 13:35:38 +02:00
halcy fdb6e2a140 add thumbnail customization support 2022-11-13 13:14:34 +02:00
halcy 4218cf2930 Add datetime parsing for edited_at 2022-11-13 12:28:53 +02:00
halcy 95ae148f45 add remote parameter, filtering by date for masto mainline 2022-11-13 12:27:06 +02:00
halcy 78a1c17468 Fix tests 2022-11-11 00:21:00 +02:00
halcy d0b1da993d add media v2 API + tests, move v1 test 2022-11-08 23:24:42 +02:00
halcy 3277ca7778 Initial test fixing pass. Four tests still fail. 2022-11-07 23:11:30 +02:00
halcy c5fd6016d6 Add documentation for file_name param 2022-11-06 19:27:56 +02:00
halcy d9cbc7d79f Fix version parsing 2022-11-06 14:27:28 +02:00
halcy 5fe162e543 Fix some things that may have broken in PRs 2022-11-06 14:24:20 +02:00
fwaggle 1830b22bcb Fix gotosocial crash in search()
Set a default 1.0.0 version if nothing else alters it so that version
checks don't raise an Exception.

Fixes #249.
2022-11-06 09:58:03 +11:00
Lorenz Diener 1b64477862
Merge pull request #223 from animeavi/file_name
Allow specifying the file name for media uploads
2022-11-05 23:58:41 +02:00
fwaggle 144a4e2b9b Fix version crash when connecting to gotosocial
While gotosocial has a PR open to send a Mastodon-compatible version in
the `instance` endpoint, whatever it sends is unlikely to be helpful for
the purpose of version-gating features in the client library.

You can disable version-gating, but it still fails on instantiating
due to GtS's version not matching the semver regex. Fix this by moving
the version_check_mode above it, and not parsing the version if it's
turned off.
2022-11-05 15:01:28 +11:00
fwaggle b69e998ceb Handle UNIX Epoch times in X-RateLimit-Reset
Instead of returning an ISO8601 timestamp, gotosocial returns an integer
UNIX Epoch for the X-RateLimit-Reset header. As `dateutil.parser.parse`
doesn't handle these, I do a naive check to see if the header is an integer
and don't parse it if so.

Fixes #246
2022-11-05 14:52:06 +11:00
Aljoscha Rittner 1d1a08b51a Not required status_ids parameter runs into an error if None
Fixes #244
2022-08-08 10:06:30 +02:00
Aljoscha Rittner 61e1a8e450 Fixed PR and changed the doc-string 2022-06-28 13:23:03 +02:00
Jeong Arm f722778095 Support tagged, exclude_reblogs parameter on account_statuses 2022-06-28 13:23:03 +02:00
Aljoscha Rittner 7fd2a6a39c Supports a User-Agent header
fixes #213
2022-06-27 11:13:35 +02:00
Aljoscha Rittner f8f988710c
Merge pull request #219 from MicroCheapFx/206_notifications
Replaced `mentions_only` by `exclude_types` in `notifications` 

Fixes #206
2022-06-27 09:03:42 +02:00
Aljoscha Rittner 98615146a6 Resilient stream.close handling and early close() while retry sleeps
fixes #212
2022-06-25 22:17:17 +02:00
Aljoscha Rittner af59a46068 Support of processing unknown events and event names with dots.
#Fixes 234
2022-06-24 17:39:26 +02:00
Aljoscha Rittner e98b033646 Preserves storage of pagination in items for compatibility reason
fixes #232
2022-06-24 17:23:00 +02:00
Aljoscha Rittner 7e0460ddcb
Merge branch 'halcy:master' into master 2022-06-24 16:37:37 +02:00
Aljoscha Rittner 002c6511a7
Merge pull request #238 from arittner/bookmarks-paging
Introduces paging parameters for bookmarks
2022-06-24 16:27:04 +02:00
Aljoscha Rittner 3b8a653fa5 Introduces pagin parameters for bookmarks
Fixes #220
2022-06-24 15:46:27 +02:00
Aljoscha Rittner 19dbb4594e Changes the storage for pagination information
fixes #232
2022-06-16 14:52:15 +02:00
Zero 89d7318038 Allow specifying the file name for media uploads
The parameter is optional so this change is backwards compatible
2021-03-14 00:19:06 -05:00
ZEN 0f92f778dc
__json_truefalse_parse: fix a typo 2021-02-14 08:38:34 +02:00
Fx 539edfa8ee Replaced `mentions_only` by `exclude_types` in `notifications` API #206 2020-09-01 12:24:19 +02:00
rinpatch 346e6e8478 status_post: fix a typo in the error message when trying to use content_type without pleroma feature set 2020-05-17 18:47:59 +03:00
Lorenz Diener efb1ebb8ce Add reaction support 2020-02-29 18:48:01 +01:00
Lorenz Diener 4f90728a4a Fix tests for 3.1.1 2020-02-22 20:31:33 +01:00
Lorenz Diener 65e49ec614 Add bookmarks 2020-02-22 19:50:24 +01:00
Lorenz Diener 05e2bcb967 Add bookmark scopes and entity/versioning info 2020-02-22 16:43:16 +01:00
Lorenz Diener 90ae6a655e Fix documentation of "content_type" parameter 2020-02-16 17:20:14 +01:00
Lorenz Diener 3b8d5b1e7b Move content-type support to new feature set "pleroma" 2020-02-16 17:12:36 +01:00
Lorenz Diener 86bb428e6f Add "mentions_only" parameter to notifications 2020-02-16 17:03:06 +01:00
Lorenz Diener 633b915fca Add new notification types to push API 2020-02-16 17:00:24 +01:00
Lorenz Diener 95aee9349a Update entity documentation 2020-02-16 16:53:35 +01:00
Lorenz Diener 00b2ea0046 Fix accidental version bump 2020-02-15 17:05:59 +01:00
Lorenz Diener 238dd9163a Document account_update_credentials better, bump versions 2020-02-15 16:54:36 +01:00
Lorenz Diener 4d8dae71a9 Add note to blocklist code. Fixes #210. 2020-02-15 16:45:14 +01:00
Lorenz Diener 4e76f6e322
Merge pull request #208 from limburgher/master
Try/catch magic for #207.
2020-02-15 13:51:59 +01:00
Gareth Dunstone ecfbd0ae23 added other parameters to account_update_credentials 2020-01-31 17:02:10 +11:00
Gareth Dunstone 37a180126e added the bot param 2020-01-31 15:27:04 +11:00
Gareth Dunstone aa57929d1e fixed copy paste typo. Should be able to set header image now 2020-01-31 11:45:58 +11:00
Gwyn Ciesla a9913527eb Try/catch magic for #207. 2019-11-21 12:34:58 -06:00
Lorenz Diener 0b3b2c31a0 Pre-release full testsuite updated run 2019-10-12 23:03:14 +02:00
Lorenz Diener 45908b6f4e Add, test and document last-read markers. Fixes #192 2019-10-12 22:55:17 +02:00
Lorenz Diener 1f36deb119 Add, test and document profile directory API (fixes #188) 2019-10-12 22:05:35 +02:00
Lorenz Diener 63bf5afc61 Implement, test and document featured and suggested tags APIs (fixes #191) 2019-10-12 21:47:58 +02:00
Lorenz Diener 3194b1295e Re-add and test trends API 2019-10-12 21:02:39 +02:00
Lorenz Diener 2e5095f301 Add, document and test nodeinfo api (fixes #199) 2019-10-12 20:51:29 +02:00
Lorenz Diener e60a3f1892 Add and document health API. Fixes #202 2019-10-12 20:25:55 +02:00
Lorenz Diener ef8e3cec6a Bump version of emoji dict 2019-10-12 20:16:16 +02:00
Lorenz Diener f421b1e498 Add new parameter for search 2019-10-12 20:13:38 +02:00
Lorenz Diener 0b952aef12 Implement "reason" for create_account 2019-10-12 20:02:09 +02:00
Lorenz Diener bf96ff5ea0 follow_request functions return relationship dicts now (fixes #196) 2019-10-12 19:42:43 +02:00
Lorenz Diener 86d06ea48c Add "feature set" support and "quote_id" support for fedibird. 2019-10-12 19:35:22 +02:00
Lorenz Diener 5e776519ef Clean up status_reply a little (fixes #189) 2019-10-12 19:26:57 +02:00
Lorenz Diener 50717ce548 Remove warning from conversations API, since it seems to be stable 2019-10-12 19:16:58 +02:00
Lorenz Diener 037b7ddd17 Some documentation clarification 2019-10-12 19:14:03 +02:00
Lorenz Diener 73c1e9e2d9 Add me()-function to return user account. Fixes #184 2019-10-12 19:05:46 +02:00
Lorenz Diener ca45cd65aa Add ability to persist base urls with clientid/secret/token (fixes #200) 2019-10-12 18:58:46 +02:00
Lorenz Diener 5c4916bd81 I am very smart 2019-10-12 00:32:20 +02:00
Lorenz Diener 87630e66e4 Attempt 2 at fixing crypto 2019-10-12 00:27:52 +02:00
Lorenz Diener ff160ec401 Try to future-proof cryptography module while remaining extremely backwards compatible since most distributions don't even have the old one (sighs) 2019-10-12 00:12:22 +02:00
Lorenz Diener 437f68c29a Update tests for 3.0.1 and fix regressions 2019-10-11 23:59:24 +02:00
Lorenz Diener a8e49756f4 Add a test case for conversation streaming 2019-10-11 22:32:51 +02:00
Lorenz Diener f42032dafc Add new card behaviour, freeze old test 2019-10-11 22:07:51 +02:00
Lorenz Diener 30eb63261c Implement new notification dismiss behaviour, add test for old behaviour 2019-10-11 21:51:28 +02:00
Lorenz Diener ec58bd4de8
Update Mastodon.py 2019-07-26 12:22:54 +02:00
no-boot-device 0d9948fa40
Update Mastodon.py 2019-07-25 03:36:16 -05:00
Lorenz Diener 5b3c1c6582 Doc fixes, remove some broken code, note about blocks 2019-07-23 12:08:21 +02:00
Lorenz Diener 5f2ee0fcae Change exit strategy 2019-06-23 12:12:07 +02:00
Lorenz Diener f920f8b584 Add final round of tests for moderation API 2019-06-22 22:48:30 +02:00
Lorenz Diener add974ae29 Add first half of tests for moderation API 2019-06-22 22:32:21 +02:00
Lorenz Diener 9b8d6f37a2 Implement rest of the moderation API 2019-06-22 22:00:19 +02:00
Lorenz Diener c671f4bbb3 Add versioning to admin_report 2019-06-22 21:56:33 +02:00
Lorenz Diener 75b7fc7779 Document new report dict fields 2019-06-22 21:56:08 +02:00
Lorenz Diener 9e6745ef8a Add pagination to report API 2019-06-22 21:45:09 +02:00
Lorenz Diener ee096aa920 Initial parts of report API 2019-06-22 21:39:11 +02:00
Lorenz Diener 72fc499969 Doc formatting fix 2019-06-22 21:10:59 +02:00
Lorenz Diener 5f425d3786 Document 2.9.2 instance dict changes 2019-06-22 21:07:52 +02:00
Lorenz Diener 09012b690f Fix docs for account_statuses (closes #178) 2019-06-22 21:03:50 +02:00
Lorenz Diener 0287fa8be9 Fix versioning for admin_account* 2019-06-22 21:02:07 +02:00
Lorenz Diener de9155b9f5 Implement and document first half of admin API 2019-06-22 20:59:53 +02:00
Lorenz Diener a88492bdcf Add healthy test cassette 2019-06-22 17:33:12 +02:00
Lorenz Diener 71c6bc0f52 Add, document and test stream_healthy 2019-06-22 16:41:32 +02:00
Lorenz Diener 903068887e Add local hashtag streaming 2019-06-22 15:51:57 +02:00
Gwyn Ciesla 4a2a723a1e Patch to make blurhash optional. 2019-06-12 13:40:53 -05:00
lefherz e6ed107fdf fixed typo 2019-06-05 11:44:20 +02:00
lefherz c2e9760edc added imports to __init__.py 2019-06-02 16:40:11 +02:00
lefherz 21e12cfb58 better inheritance cascade for HTTP error codes, implemented more errors 2019-06-02 16:37:37 +02:00
lefherz a9087f0262 extended MastodonServerError for all 5xx error codes 2019-06-02 16:17:57 +02:00
Lorenz Diener f252957de2 Hey readthedocs 2019-05-31 14:45:05 +02:00
Lorenz Diener e692fac905 Make some dependencies optional 2019-05-31 14:12:04 +02:00
Lorenz Diener 739d22e642 Fix #173 2019-05-31 13:45:35 +02:00
Lorenz Diener 27075591b5
Merge pull request #170 from webwurst/patch-1
Only set authorization header if access_token is present
2019-05-31 13:11:47 +02:00
lefherz 0160dcaad9 fixing ImportError 2019-05-18 12:54:47 +02:00
Tobias Bradtke 63975a07ad
Only set authorization header if access_token is present 2019-05-12 02:13:57 +02:00
Lorenz Diener c442af7715 Fix date parsing failing due to missing field for int parsing 2019-05-11 12:57:01 +02:00
Lorenz Diener 6a5ddb0a5c Merge branch 'master' of https://github.com/halcy/Mastodon.py 2019-05-11 01:00:32 +02:00
Lorenz Diener bf61d4881e Add blurhash code 2019-05-11 00:55:40 +02:00
Lorenz Diener 7c701cc267
Fix media and status dict versioning 2019-05-10 01:43:52 +02:00
Lorenz Diener 08d808e2ac Bump Mastodon version in some places 2019-05-08 18:08:11 +02:00
Lorenz Diener 6a1b00dc9c Document poll/media restriction.
Fixes #166
2019-05-08 18:04:17 +02:00
Lorenz Diener 00f2694631 Add a word about ssh certificates via sessions.
Fixes #168.
2019-05-08 17:59:13 +02:00
Lorenz Diener 8675b25dcf Improce search() versioning 2019-05-08 17:43:55 +02:00
Lorenz Diener 09c03296db Polls 2019-04-28 23:12:27 +02:00
Lorenz Diener 3eba3f8835 Add preferences endpoint 2019-04-28 21:53:01 +02:00
Lorenz Diener eb0fa327c4 Add reblog visibility 2019-04-28 21:24:31 +02:00
Lorenz Diener c82b0b1919 Add more parameters to search API 2019-04-28 21:15:47 +02:00
Lorenz Diener 20a640eb7e Fix the isoformat formatter 2019-04-28 20:38:49 +02:00
Lorenz Diener d7f5b4d66d Implement the rest of the scheduled status endpoints 2019-04-28 19:34:52 +02:00
Lorenz Diener fe4e01f90e Fixed some timezone problems 2019-04-28 19:18:23 +02:00
Lorenz Diener d4e3feaece Fix up tests 2019-04-28 18:41:12 +02:00
Lorenz Diener 09f9023c70 Add basic support for scheduled statuses 2019-04-28 18:37:15 +02:00
Lorenz Diener b6692f0b16 Add account creation 2019-04-28 17:56:20 +02:00
Lorenz Diener a29d278bf9 Add support for conversation streaming 2019-04-28 14:28:05 +02:00
Lorenz Diener 65e2596d9b Add versioning and return val docs to conversation_read 2019-04-28 14:02:34 +02:00
Lorenz Diener ac7196c443 Add conversation read marking + tests/docs 2019-04-28 13:58:18 +02:00
Lorenz Diener 06df1c281e Add conversation fetching 2019-04-28 13:47:43 +02:00
Lorenz Diener 8e0d8a5c4e Bump version on status_reply and toot 2019-04-28 02:08:26 +02:00
Lorenz Diener 6f807daf5a Breaking change: Stream functions now return immediately (Fixes #149) 2019-04-28 01:52:09 +02:00
Lorenz Diener 0ffb869e65 Improve OAuth support and docs 2019-04-28 01:02:08 +02:00
Lorenz Diener 67824478af implement app_verify_credentials, document entity change 2019-04-28 00:07:04 +02:00