Commit Graph

27 Commits

Author SHA1 Message Date
59c99097a2
refactor: Use SHSDuplexStream.close instead of disconnect
`disconnect()` is now deprecated to make the API more consistent.
2023-11-19 07:28:06 +01:00
c2fffafa4e
feat: Create the PSHandler type 2023-11-19 07:26:23 +01:00
d6881cd8d5
feat: Process boolean True responses over Packet Stream 2023-11-18 07:07:12 +01:00
df8c79514a
chore: Remove a useless super().__init__() call from PSStreamHandler 2023-11-18 07:01:14 +01:00
0c17410e18
style: Styling i forgot to commit earlier 2023-11-18 06:59:39 +01:00
1c1e57d868
ci: Add and configure mypy, and make it happy 2023-11-16 09:44:36 +01:00
f2a54b5ce6
chore: Get rid of all __await__ methods 2023-11-16 06:12:12 +01:00
c588967c11 build: Remove async_generator as a dependency
Python 3.6+ can do this natively.
2023-11-15 14:32:00 +01:00
d51f27d883
ci: Add and configure PyLint, and make it happy 2023-11-14 06:03:46 +01:00
8f5d355ea0
ci: Update and configure isort, and make it happy 2023-11-14 05:16:10 +01:00
d1a0510734
ci: Use black instead of flake8
It results in mostly the same style, plus it’s configurable via pyproject.toml.
2023-11-13 13:57:42 +01:00
50442c56fe
chore: Make the project REUSE compatible 2023-11-13 13:41:30 +01:00
Ryan Flynn
975467030a Event.wait() is async, and must be awaited 2019-06-14 22:06:42 +02:00
Cheng Guo
166914144d Verify the hash of the fetched blob 2019-06-14 22:05:45 +02:00
Cheng Guo
b26b56632f Fixed a bug which causes problem when RPC body size is bigger than 4096
- Fetching blobs (size>4k) works now
  - Updated the image fetching code in examples/test_client.py
2019-06-14 21:46:43 +02:00
Cheng Guo
3ce46291b3 Bugfix for handling a RPC goodbye header 2019-06-14 21:38:54 +02:00
Pedro Ferreira
dc1389d634 Adapt code to match secret_handshake changes 2018-02-04 22:27:54 +01:00
Pedro Ferreira
9fc910c37d Python 3.5 compatibility
Close #1 and #3
2017-08-01 22:37:14 +02:00
Pedro Ferreira
5c7888e006 Use async connect(...) 2017-08-01 19:32:36 +02:00
Pedro Ferreira
f2f4a829d2 Allow low level transport class to be overridden 2017-07-31 23:15:52 +02:00
Pedro Ferreira
69394936ee Make read(...) clearer and easier to manage 2017-07-30 22:28:42 +02:00
Pedro Ferreira
3d652d11cd Properly handle MuxRPC errors 2017-07-30 15:02:09 +02:00
Pedro Ferreira
dda0b488c6 Handle split packets properly 2017-07-30 11:51:11 +02:00
Pedro Ferreira
e2e893018b Working examples for duplex, requests, source 2017-07-30 10:14:26 +02:00
Pedro Ferreira
ecb67ebcf4 Partially working implementation (yay!) 2017-07-29 11:54:53 +02:00
Pedro Ferreira
21af5fba09 Extract secret-handshake into separate lib 2017-06-05 00:28:29 +02:00
Pedro Ferreira
fe95688f9d First partially working implementation 2017-06-02 20:09:55 +02:00