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
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
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
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
Lorenz Diener
798f243af2
Fix version number for instance dict
2019-04-27 23:41:06 +02:00
Lorenz Diener
efcd01a3ed
Update instance dict docs and version
2019-04-27 23:39:17 +02:00
Lorenz Diener
5340087325
Add min_id parameter to a lot of functions
2019-04-27 23:20:45 +02:00
Lorenz Diener
dc6c80bad7
Implement, document and test pagination changes
2019-04-27 23:11:37 +02:00
Lorenz Diener
72e3290d8c
Add endorsements (with docs and tests)
2019-04-27 22:13:27 +02:00
Lorenz Diener
4deeb7875b
Document 2.5.0 entity updates
2019-04-27 21:45:57 +02:00
Lorenz Diener
e393664974
Test fixups and small 2.8 fixes
...
Pagination backwards is broken presently.
2019-04-27 21:04:06 +02:00
Lorenz Diener
c1418e9f3f
Removed trends endpoint
2019-04-27 19:10:33 +02:00
Lorenz Diener
fb7496c68d
Documented some things related to non-authed access
2019-04-27 18:59:54 +02:00
Lorenz Diener
edd55ec6fd
Allow object creation with no credentials whatsoever
2019-04-27 18:46:33 +02:00
Lorenz Diener
87b5b6535c
Merge pull request #157 from jfmcbrayer/status_post_content_type
...
Add 'content_type' parameter to status_post() for use with Pleroma
2019-04-27 17:24:24 +02:00
Lorenz Diener
351d302531
Merge pull request #158 from lefherz/master
...
New exception class if server is malconfigured, e.g. 502
2019-04-27 17:23:46 +02:00
Lorenz Diener
a264154073
Merge pull request #164 from codl/link-flakeid
...
more robust handling of pagination Link headers
2019-04-27 17:20:20 +02:00
codl
eca31ea732
improve link header parameter extraction regex
2019-04-15 14:26:43 +02:00
codl
62a47f4e92
oops. str.is_digit() -> str.isdigit()
2019-04-15 14:19:45 +02:00
codl
ad96297a06
more robust handling of pagination Link headers
...
during a cursory investigation for #163 I found that the code handling
Link headers would not handle non-numeric post IDs like pleroma's
flakeIDs correctly
IDs starting with a number would be truncated to the first non-digit,
and IDs not starting with a number would throw. Thankfully, all flakeIDs
generated so far start with 9. Maybe 8 for the earliest ones, I'm not
sure. Either way, so far it would only have misbehaved when using the
pagination functions or accessing the _pagination_prev and
_pagination_next attributes directly
2019-04-15 03:31:09 +02:00
codl
0666bdabf1
better handling of non-standard error responses, such as from pleroma
2019-03-11 14:51:11 +01:00
lefherz
280973661d
New exception class if server is malconfigured, e.g. 502
2019-02-03 01:58:59 +01:00
Jason McBrayer
da9bdb4dbb
Add 'content_type' parameter to status_post() for use with Pleroma
...
This parameter lets you specify the source content type of your post for Pleroma servers, and
accepts 'text/plain', 'text/markdown', and 'text/html'. It defaults to None, but if set on
a request to a Mastodon server, it will be safely ignored.
2019-01-24 10:06:33 -05:00
Lorenz Diener
8b86269787
Merge pull request #151 from jrabbit/seven_proxies
...
Made Session support more robust and added support to .create_app()
2018-11-26 11:47:21 +01:00
Lorenz Diener
9c5c5b85cc
Make filter application regex use raw strings
2018-11-26 11:44:13 +01:00
Lorenz Diener
d1717be251
Fix media is-file check
2018-11-26 11:42:19 +01:00
Lorenz Diener
ae9640e95d
Merge pull request #150 from jfmcbrayer/mime-magic
...
Use python-magic to determine mime types from contents
2018-11-26 11:24:35 +01:00
Jack Laxson
975145ada6
Made Session support more robust and added support to .create_app()
2018-11-18 04:55:04 -05:00
Jason McBrayer
4b7bbe72cd
Use magic for guessing mime type if available
...
Replace uses of mimetypes.guess_type with guess_type wrapper that uses
magic if available, and falls back to mimetypes if not.
2018-11-12 10:04:15 -05:00
Jason McBrayer
7e2259e3ee
Add requirement for python-magic, and add wrappers to Mastodon.py
2018-11-12 09:44:57 -05:00
errbufferoverfl
aabbfa86bf
Adds statement to open file if MIME type is set and file exists
2018-09-14 17:16:12 +10:00
Lorenz Diener
2d81e9b2cb
Add filter tests
2018-07-30 23:08:30 +02:00
Lorenz Diener
d04b3da7d5
Add filter applies function
2018-07-30 22:09:14 +02:00
Lorenz Diener
ba3c2a8605
Add follow suggestions test
2018-07-30 21:14:40 +02:00
Lorenz Diener
5148658d9a
Add test for status_reply
2018-07-30 21:00:20 +02:00
Lorenz Diener
2af3fd82f4
Improve documentation for status_reply
2018-07-30 20:45:26 +02:00
Lorenz Diener
053d8f3b4f
Add "untag" parameter to status_reply
2018-07-30 20:44:25 +02:00
Lorenz Diener
087fb249da
Fix tests
2018-07-30 20:25:25 +02:00
Lorenz Diener
58c508a11c
Bump supported version
2018-07-30 17:30:46 +02:00
Lorenz Diener
de0d5df861
Add keyword filters
2018-07-30 17:29:37 +02:00
Lorenz Diener
cf2d0ebc82
Add follow suggestions
2018-07-30 16:20:56 +02:00
Lorenz Diener
b5f722cd3d
Add trendint API
2018-07-30 15:44:09 +02:00
Lorenz Diener
5576c190ad
Search v2
2018-07-30 15:38:51 +02:00
Lorenz Diener
3f91aaf1ea
Fix version typo
2018-07-30 15:36:31 +02:00
Lorenz Diener
f864bea4e5
Document hashtag history dicts
2018-07-30 15:35:36 +02:00
Lorenz Diener
d3594572bb
Add direct language specification
2018-07-30 15:22:11 +02:00
Lorenz Diener
da859de457
Muting / Hide Reblogs changes
2018-07-30 15:16:46 +02:00
Lorenz Diener
1a6293db44
Update documentation for search()
2018-07-30 14:49:25 +02:00
Lorenz Diener
d1a3277a8b
Add status_reply, closes #140
2018-07-30 14:37:20 +02:00
Lorenz Diener
4f3deac968
2.4.3 support: Scopes
2018-07-30 13:35:29 +02:00
Lorenz Diener
82cc87b49b
Fix #138
2018-07-14 01:02:37 +02:00
D Anzorge
4319283bcd
log_in(): check if granted scopes are a superset of requested
...
Currently, Pleroma does not actually have scopes, but grants "read write
follow" in all cases. For compatibility, log_in() now checks if the
granted scopes include all of the requested scopes, instead of checking
if they match exactly.
2018-06-26 14:48:59 +02:00
Lorenz Diener
01e52ccd8f
Add push tests
2018-06-05 22:52:18 +02:00
Lorenz Diener
18c6b3b90f
New casettes, small fixes
2018-06-05 22:10:31 +02:00
Lorenz Diener
b08c05e6de
Fix specifying only access token
2018-06-05 17:57:22 +02:00
Lorenz Diener
256037f272
Small test fix
2018-06-05 17:47:26 +02:00
Lorenz Diener
fd21e573e3
Merge branch 'master' of https://github.com/halcy/Mastodon.py
2018-06-05 17:37:44 +02:00
Lorenz Diener
caba9c5467
Add notif dict docs
2018-06-05 17:19:15 +02:00
Lorenz Diener
0ded906338
Fix doc typo
2018-06-05 14:43:47 +02:00
Lorenz Diener
4b747886b9
Improve docs
2018-06-05 14:30:47 +02:00
Lorenz Diener
392dd3d61d
Add webpush support
2018-06-05 14:10:53 +02:00
Lorenz Diener
85ca599935
Add fields support, tests
2018-06-05 01:54:12 +02:00
Lorenz Diener
2b08e2ec83
Fix py2 compat
2018-06-04 19:56:46 +02:00
Lorenz Diener
163fd5d3d5
Move pagination info to attributes
2018-06-04 16:48:20 +02:00
Lorenz Diener
093c207292
Add idempotency keys, documentation improvements
2018-06-04 15:40:26 +02:00
Lorenz Diener
620687a079
Add pinning/unpinning, media_update
2018-06-04 14:54:26 +02:00
Théo Le Calvar
1090d7476f
Fix optional args in account_update_credentials
...
avatar and header are now correctly ignored if not specified.
2018-05-20 12:55:25 +02:00
Théo Le Calvar
1800a9b2c1
Fix typo in account_update_credentials
...
Mime type of avatar was used to guess extension of header.
2018-05-20 12:53:19 +02:00
Joel Gil Leon
8052b04446
update constructor to support access_token only
2018-05-19 16:04:15 +03:00
Lorenz Diener
8d5fe70c7e
Fix some bugs, update tests
2018-05-07 00:53:13 +02:00
Lorenz Diener
c0a0c8f517
Add focal points
2018-05-06 18:00:07 +02:00
Lorenz Diener
d633df28f7
Add only_media parameter to timelines
2018-05-06 17:46:23 +02:00
Lorenz Diener
ca0ea36c6e
Merge branch 'master' into stream-timeout
2018-05-06 15:55:32 +02:00
Lorenz Diener
ba2fccc1cf
Add lists tests and fix a bug
2018-05-06 15:42:38 +02:00
Lorenz Diener
4088e16dec
Fix daemonization in python 2
2018-05-06 01:45:02 +02:00
Lorenz Diener
ad6b8eeb04
Switch to using requests Session objects
2018-05-06 01:36:48 +02:00
codl
06e32c14bc
raise MastodonReadTimeout when a stream times out
2018-04-19 17:10:42 +02:00
Lorenz Diener
a825905b57
Fix several bugs
2018-04-18 21:56:36 +02:00
Lorenz Diener
a1ecd2d664
Raise last changed version on instance()
2018-04-17 18:02:55 +02:00
Lorenz Diener
5f44998dd2
First steps to 2.3.0 support
2018-04-17 17:49:08 +02:00
Lorenz Diener
78d3b3a5df
Fix for the fix
2018-04-17 17:24:46 +02:00
Lorenz Diener
087c49b199
Small fix to account_search
2018-04-17 17:21:16 +02:00
Lorenz Diener
2afc50c803
Merge branch 'master' into stream-timeout
2018-04-17 16:06:00 +02:00
Lorenz Diener
864c83fa2f
Rename async to run_async, fixes #120
2018-04-17 15:38:21 +02:00
Lorenz Diener
eb336a30c2
Add is_receiving:
2018-04-17 14:59:45 +02:00
Lorenz Diener
6d4490295a
Nicen up reconnect waiting
2018-04-17 14:55:31 +02:00
Lorenz Diener
d0ae9dcd05
Add async autoreconnect
2018-04-17 14:35:09 +02:00
codl
06a7a875fe
add timeouts to streams (GH-127)
2018-04-08 23:07:08 +02:00
Robert Mock
365ebf3ad9
Fix 500 from status_post capitalized visibilities
...
The validator for the 'visibility' parameter lower()s it before verifying, but this means that "direct", "Direct", and "dIRECT" all pass validation. However, passing in 'Direct' (at least, to my instance) throws `mastodon.Mastodon.MastodonAPIError: ('Mastodon API returned error', 500, 'Internal Server Error', None)`. This corrects the parameter in-place.
2018-02-11 15:30:58 -08:00
Noëlle Anthony
dd587bb403
Update Mastodon.py
...
Modified docstring slightly; added type checking for media_ids in the status_post() method. If media_ids is not a list or tuple, put it into a list before parsing it.
2018-02-02 13:46:47 -05:00