Gráfico de commits

674 commits

Autor SHA1 Mensaje Fecha
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
codl
3f83ee0a4c
failing test for #160 2019-03-11 14:50:23 +01:00
codl
1041db3b95
document rate limiting attributes
p sure the thing about editing them was actually wrong since they get
updated on every request
2019-03-11 14:10:44 +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
Lorenz Diener
62bf6afd9f
Merge pull request #146 from errbufferoverfl/issue-145-providing-mime-type-raises-exception
Adds statement to open file if MIME type is set and file exists
2018-11-26 11:21:03 +01:00
Lorenz Diener
1956b18845 Explicitly module-scope vcr_config 2018-11-26 11:15:59 +01:00
Lorenz Diener
a22083da88
Merge pull request #152 from jrabbit/pipenv-tooling
[WIP] Add pipenv and tox file
2018-11-26 10:55:38 +01:00
Lorenz Diener
e1e003ec76
Merge pull request #143 from MarkEEaton/master
Revise sample code in README.rst
2018-11-26 10:50:54 +01:00
Jack Laxson
838f84408c Add pipenv and tox file, 2.7 is broken rn 2018-11-18 04:58:33 -05: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
MarkEEaton
dc4b3ffc03
Update index.rst to reflect README.rst 2018-08-17 09:09:25 -04:00
MarkEEaton
84b1bc7249
Keep the ''' and explain why they are there
This commit takes into account the discussion from https://github.com/halcy/Mastodon.py/pull/125
2018-08-14 13:25:24 -04:00
MarkEEaton
cf4987d601
Revise README.rst for clarity 2018-08-14 13:04:21 -04:00
Lorenz Diener
191ad84cef
Move pytest-runner to test_deps 2018-08-02 15:55:02 +02:00
Lorenz Diener
ef1bb2e4b0
Update README.rst 2018-07-31 10:58:31 +02:00
Lorenz Diener
56f82a0015
readthedocs tag fetch bop 2018-07-30 23:33:34 +02:00
Lorenz Diener
55ec333562 Amend changelog 2018-07-30 23:31:20 +02:00
Lorenz Diener
703fbe92b1 Bump version number 2018-07-30 23:29:43 +02:00
Lorenz Diener
b08ceb41c7
Update CHANGELOG.rst 2018-07-30 23:28:21 +02:00
Lorenz Diener
d0c71b1a84 Fresh set of tests pre-release 2018-07-30 23:19:51 +02:00
Lorenz Diener
8b06b53ed5 Improve filter tests 2018-07-30 23:10:24 +02: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
8feed51075 Fix typo in docs 2018-07-30 18:03:11 +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
300c2882ae Add trends to docs 2018-07-30 15:54:17 +02:00
Lorenz Diener
b5f722cd3d Add trendint API 2018-07-30 15:44:09 +02:00
Lorenz Diener
962bf46056 Document search_v2 2018-07-30 15:39:46 +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