Commit Graph
294 Commits
Author SHA1 Message Date
link2xt d1702e3081 python: display the diff on black failures 2023-02-11 09:13:42 +00:00
link2xt cd293e6f49 Update async-smtp to 0.8 2023-02-03 11:36:58 +00:00
link2xt fac7b064b4 Refine Python CI
Add lint environment to `deltachat-rpc-client/`
and set line length to 120, same as in `python/`.

Switch from flake8 to ruff.

Fix ruff warnings.
2023-01-20 16:53:21 +00:00
link2xt f4c674fa98 python: set reasonable timeouts for account requests
`requests` library does not have a timeout at all by default.
2023-01-06 11:43:55 +00:00
link2xt 5b3596987b Test that STARTTLS connection works 2023-01-02 22:11:09 +00:00
adbenitez cf1d6919bf allow to pass string as update for objects that don't support default json.dump() conversion 2022-12-26 18:34:55 -05:00
adbenitez 4b15f960e1 make get_contact_by_id non-async 2022-12-26 18:26:14 -05:00
link2xt f92b8dcec0 deltachat_rpc_client: add webxdc API 2022-12-26 22:34:19 +00:00
link2xt 9734552da5 deltachat_rpc_client: make get_{chat,message}_by_id non-async 2022-12-26 22:24:45 +00:00
adbenitez adf754ad32 add more high-level event filters 2022-12-21 13:26:59 -05:00
adbenitez 2ebd3f54e6 add Client.run_until() 2022-12-21 13:26:59 -05:00
adbenitez be63e18ebf improve hook filters 2022-12-21 13:26:58 -05:00
link2xt 5922fb38da Store relative accounts path in accounts.toml
This makes it possible to move accounts dir, especially useful for bots.
2022-12-20 12:26:20 +00:00
link2xt 2a2db4f526 Remove unused pytest-async plugin
We use pytest-asyncio instead
2022-12-13 17:13:19 +00:00
adbenitez 9645101de2 add SystemMessageType and ViewType 2022-12-10 13:44:42 -05:00
adbenitez c1bbd6e766 fix tests 2022-12-10 13:44:21 -05:00
adbenitez 0a4c8a40ba solve review comments 2022-12-09 12:52:01 -05:00
adbenitez c49743d38c add more tests 2022-12-09 12:52:01 -05:00
adbenitez a9afc1e6ba add more high-level methods and event hooking 2022-12-09 12:52:01 -05:00
link2xt f5cb56fd86 Fix deltachat-rpc-server tests for tox 4 2022-12-09 17:23:20 +00:00
link2xt 5502bff986 Make _args and _kwargs private in Rpc 2022-12-04 14:03:59 +00:00
link2xt ee19789cac Make _rpc private 2022-12-04 14:03:43 +00:00
link2xt 3cdbe213a3 python: rename Deltachat class into DeltaChat 2022-12-04 13:56:53 +00:00
link2xt 2ccf39800d Remove start_rpc_server() and make Rpc a context manager
Rpc now has a start() method.
This way it is possible to use Rpc from IPython without calling __aenter__()
2022-12-04 00:02:32 +00:00
link2xt 5a3065344e Properly terminate Rpc and remove sleep() hack 2022-12-03 23:30:50 +00:00
link2xt 98b6b5e3f6 Update instructions on using ipython 2022-12-03 18:37:02 +00:00
adbenitez 29a4404257 enably type-checking in tests 2022-12-01 20:33:05 -05:00
adbenitez 24db29f526 Merge remote-tracking branch 'upstream/link2xt/async-jsonrpc-client' into adb/async-jsonrpc-client 2022-12-01 20:32:36 -05:00
link2xt 85b4746516 Turn start_rpc_server into a context manager 2022-12-01 16:36:36 +00:00
adbenitez d17ac9c83c add start_rpc_server() doc string 2022-12-01 03:34:43 -05:00
adbenitez e6ff513aac add support for PEP 561 2022-12-01 03:15:25 -05:00
adbenitez ffbfeab977 add pytest plugin 2022-12-01 03:09:23 -05:00
adbenitez 09db062958 fix bug in Rpc.__getattr__() 2022-12-01 02:36:55 -05:00
adbenitez ab7732d9ae fix type hint in rpc.py 2022-12-01 02:26:50 -05:00
adbenitez 46594ec707 improve typing hints 2022-12-01 00:37:45 -05:00
adbenitez 18426561e3 fix bug in chat.get_encryption_info() 2022-12-01 00:14:07 -05:00
adbenitez aeb7e3a9e1 fix some linter warnings 2022-11-30 23:56:50 -05:00
adbenitez a77c46be20 fix bug in account.py: arguments declared as optional but not default value was given 2022-11-30 23:42:08 -05:00
adbenitez a4be2cddf2 remove unused code in rpc.py 2022-11-30 23:11:50 -05:00
adbenitez 240b335181 fix bugs in account.secure_join() and chat.get_fresh_message_count() 2022-11-30 22:36:49 -05:00
link2xt 53d6807e8d Simplify process_messages() in echo bot 2022-11-30 22:45:03 +00:00
link2xt db38cc8891 Add get_fresh_messages_in_arrival_order() call 2022-11-30 22:43:05 +00:00
link2xt 4e2aeceeec Do not reverse the list of fresh messages
Both reversed and original order do not make much sense
for the bot. Ideally bots should have their own key
to get the list of fresh messages in the order of IDs.
2022-11-30 22:38:25 +00:00
link2xt 9b04a04568 Add async python client for Delta Chat core JSON-RPC 2022-11-30 20:21:59 +00:00