Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/python-trio/trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
https://github.com/python-trio/trio-asyncio

Typo fixes

461f05a55df8ddf181bce2582c567b0d8c83ca07 authored about 7 years ago by Matthias Urlichs <[email protected]>
* ignore .pybuild

5899bb57b79497b7fdbb71d17cde79b936d9c72d authored about 7 years ago by Matthias Urlichs <[email protected]>
Debianized.

cb4d319d029f33c2313ec2099ba37488e1aa136f authored about 7 years ago by Matthias Urlichs <[email protected]>
Add .gitignore file

d9d7e8791d15e1c725635cf96fc9ee272f3118eb authored about 7 years ago by Matthias Urlichs <[email protected]>
Make "setup.py test" run pytest

88036137077be91820d69209ef7d9cb31867d662 authored about 7 years ago by Matthias Urlichs <[email protected]>
Fix imports in tests

cc1ba23f58153003591bd05f0bccbd1ec9b41e25 authored about 7 years ago by Matthias Urlichs <[email protected]>
added setup.py and friends

0fd205efa9d9f6aaca1dcfa8b47c8dfc43802cf6 authored about 7 years ago by Matthias Urlichs <[email protected]>
Added principle-of-ops section to README

63de7ec565c228a0103976c4a1a9b2b66b7142ed authored about 7 years ago by Matthias Urlichs <[email protected]>
debackslashed

f5ead796b6cee36698171dab862770e60f15892a authored about 7 years ago by Matthias Urlichs <[email protected]>
README update

4f373783356d6eb356197e71de23dd53e659de73 authored about 7 years ago by Matthias Urlichs <[email protected]>
README: fix literals

2610fbdb72bb186b4009f1db6705941a2e39d93b authored about 7 years ago by Matthias Urlichs <[email protected]>
README: fix spaces vs. tabs

a495c6c877f8e71c3ab590556ab0dda27f3b492a authored about 7 years ago by Matthias Urlichs <[email protected]>
added somewhat-rudimentary README

19a396c7e0b735fa7d9e8a02c995f943031f99d0 authored about 7 years ago by Matthias Urlichs <[email protected]>
remove dead code

ff544fc7a41875e8f1b271902ffe087a41dba3f9 authored about 7 years ago by Matthias Urlichs <[email protected]>
renamed to trio_asyncio

5db92303dcda7e09cd5678bc6aa705b2efe02eb4 authored about 7 years ago by Matthias Urlichs <[email protected]>
Cancel trio if asyncio returns CancelledError

d22a1086cc03dfee563be2e5108d539d1d7de8b9 authored about 7 years ago by Matthias Urlichs <[email protected]>
accept kwargs

10763af48322f1a1dab31b7ccb973fb99f585550 authored about 7 years ago by Matthias Urlichs <[email protected]>
coverage annotations

003239874b646480d867a2cf654499cf7a2d9c3b authored about 7 years ago by Matthias Urlichs <[email protected]>
more timer tests and more coverage

398ef574b563977fc6fa6a4434a1c42738ca87b5 authored about 7 years ago by Matthias Urlichs <[email protected]>
removed dead code

2ab397016f5d1a7e9487f3329ae0dcf3cb522a13 authored about 7 years ago by Matthias Urlichs <[email protected]>
basic DeltaTime tests

93902f7ef3145d62e0f6c8cd5026d9e0b913b718 authored about 7 years ago by Matthias Urlichs <[email protected]>
Test errors from asyncio functions

which raise before first yielding
as can happen if a non-async function is intended to return an...

60a6bb13473b7f1e583ff8544252b47d8d6f89ce authored about 7 years ago by Matthias Urlichs <[email protected]>
fix for a (minor, non-fatal but error-printing) timing problem

fe236e9cd9595011f36abdcf0525db9b56fe5b2c authored about 7 years ago by Matthias Urlichs <[email protected]>
de-instrument

c886f2b6d3dd0fa6f34bbe3436102564c7ab2a2f authored about 7 years ago by Matthias Urlichs <[email protected]>
less debugging

a3cfecaac6ebb3a5af7acbc2f85ab67130db3fd2 authored about 7 years ago by Matthias Urlichs <[email protected]>
don't raise twice

1892d964ddcbd79a75dcf145a1ef0d02d1ee0439 authored about 7 years ago by Matthias Urlichs <[email protected]>
Fix error propagation

91591e944d5877e69ffad1879db185a388d351c6 authored about 7 years ago by Matthias Urlichs <[email protected]>
more tests

does not work yet

cc79b9163da7cd7cf1f08538ee3dd65b875d86a3 authored about 7 years ago by Matthias Urlichs <[email protected]>
Fix the loop because of an error in a command

f60750dba44772cb9c023455dd33e4c01fe217ff authored about 7 years ago by Matthias Urlichs <[email protected]>
docstring

b47cd3ac4d58595bb124947eeeb4d08834cce0da authored about 7 years ago by Matthias Urlichs <[email protected]>
removed unused function

f92824ede573b4dc3a0dde8834b68b99b6af85d9 authored about 7 years ago by Matthias Urlichs <[email protected]>
document revision of Python's asyncio testsuite

27408256df90290df9ff913d0549418d170afbb8 authored about 7 years ago by Matthias Urlichs <[email protected]>
reformatted by yapf3

Note that the imported tests (in trio/tests/aiotest and …/python)
have not been touched: future ...

aae27a67091b1474837d91474764c353267cce08 authored about 7 years ago by Matthias Urlichs <[email protected]>
less debugging

f512e6a0f07fab7aad8d104bd3825cef03717b74 authored about 7 years ago by Matthias Urlichs <[email protected]>
testing: ignore cancelled delayed calls

727e42e81c667ebbdce4382a040335d5f3737bf6 authored about 7 years ago by Matthias Urlichs <[email protected]>
never swallow Trio.Cancelled

210f4033676b51c77bb1bf644e7a7873a1422a1c authored about 7 years ago by Matthias Urlichs <[email protected]>
trio/asyncio interoperability tests

eaf5273afc6745222d388995f8fb6c5fa14d0ec5 authored about 7 years ago by Matthias Urlichs <[email protected]>
don't call current_task twice

d77bafa952a6f9043e2ad435d7b21387a1d64545 authored about 7 years ago by Matthias Urlichs <[email protected]>
missing return

f99b3a5c028d9f24acc7733b161b8f64f3f14e13 authored about 7 years ago by Matthias Urlichs <[email protected]>
Py3.5 compatibility

This boils down to skipping tests for bugs fixed in 3.6

52781534da51f634a70a5a40a7f336bef8639c45 authored about 7 years ago by Matthias Urlichs <[email protected]>
fix the path to the SSL test certificates

a134a673e51db12786fee188b9cb3fb78dddd185 authored about 7 years ago by Matthias Urlichs <[email protected]>
FIXUP import selectors

3faaf4c118f87848fd5690129164ada1e9297e2d authored about 7 years ago by Matthias Urlichs <[email protected]>
Revert several disabled tests

This reverts commit 10e77e2f527811fc77f104b74e25cee53b1dea8d.

26fa3740b24f1ad66589ff202a64b91e47f6d916 authored about 7 years ago by Matthias Urlichs <[email protected]>
syncronize I/O loops with mainloop

The read/write callback may directly close a file descriptor and then
enqueue a callback to term...

301ba37a270a4d876dccccc120aa4207f9fd137d authored about 7 years ago by Matthias Urlichs <[email protected]>
Implement run_in_executor

insist on using Trio's native methods
no "foreign" worker pool implementation allowed

dfddbc59b1ce566d4e4dd4f5f2f340b5430aef71 authored about 7 years ago by Matthias Urlichs <[email protected]>
Mark the SSL tests as failing for now.

They hang.

b671fa48bff1e202d75a4e49b15f5b61ce73d3da authored about 7 years ago by Matthias Urlichs <[email protected]>
Move saving timers to the finally: section

498fd2ab4683a6125a71d6f328acc506a0cda999 authored about 7 years ago by Matthias Urlichs <[email protected]>
improve debugging

Use a logger for various async results/errors.
They should all be caught somewhere, but we need ...

2b83563c98bab4618ce682c1e5ae16d62d2a6244 authored about 7 years ago by Matthias Urlichs <[email protected]>
Remove the _saved_fds workaround

We can simply cancel / restart the i/o handlers in-place.

c665919d585b1779501d243d47dd2fb81d083a87 authored about 7 years ago by Matthias Urlichs <[email protected]>
improve exception handling

8d355960d522c2b17972e61ab23c80d1a2d47564 authored about 7 years ago by Matthias Urlichs <[email protected]>
minor clean-up

baaa6e14bb8aeabcc3464f75f336609d2e315f3e authored about 7 years ago by Matthias Urlichs <[email protected]>
Queue quit events via the delay queue

to ensure ordering

e4b86cabd6bdd0d0b0532e83bd2518508b1a0171 authored about 7 years ago by Matthias Urlichs <[email protected]>
docstring

3281e5c20f3b28f64b6c5cd1b3e807aac1ef0d1d authored about 7 years ago by Matthias Urlichs <[email protected]>
missing return statement

Oops :-/

0a055877ad3d1f3709e7a2134aa24a2a526ee9b2 authored about 7 years ago by Matthias Urlichs <[email protected]>
delay test: use "real" time

The loop's absolute pseudo-time does not pass while it's suspended.

3f1928fc2410a309e4603b29a736b13400174326 authored about 7 years ago by Matthias Urlichs <[email protected]>
DeltaTime: the difference of two pseudo-absolute times is relative.

c83ce3c52332e29b2cd0838505e4b203cc2ad75e authored about 7 years ago by Matthias Urlichs <[email protected]>
Tracebacks are different. Benign error, ignore for now.

3b410f434c1f09da99839c89bdb390b604f42693 authored about 7 years ago by Matthias Urlichs <[email protected]>
don't delete loop._current_handle

47bba98af26dbd875fc17958a7a251e39b7d1539 authored about 7 years ago by Matthias Urlichs <[email protected]>
don't delete clock_resolution

it's benign, and used in testing

e94fb7a49f6aafd1ae954d3eb597be6840fb407b authored about 7 years ago by Matthias Urlichs <[email protected]>
Clean up the asyncio-Handle-enhancing code

Our .cancel() was never called because it was behind
asyncio.Handle.cancel() in the MRO.

a8edc265b92c087ea9ee608ce53f6d3bc2e66981 authored about 7 years ago by Matthias Urlichs <[email protected]>
Hook into asyncio's run_forever()

asyncio's run_forever() does a lot of things.
Rather than replace it, override the inner single-...

813ac833bfbfe448d52f4d05695755097243b04c authored about 7 years ago by Matthias Urlichs <[email protected]>
increase reprlib's string length limits when testing

otherwise debug output will be too cryptic
and lack essentioal information

e8d8fdcbf7a52437d511f0f940e385aca5a6bf2a authored about 7 years ago by Matthias Urlichs <[email protected]>
Fix handling of saved file descriptors

This involves instrumenting _remove_reader/writer to drop them from
._saved_fds when idle.

71332d027ecbb2c56a9af692fa23c14862ac8409 authored about 7 years ago by Matthias Urlichs <[email protected]>
add explicit _check_closed() tests

84d47593999c962423fe2144ef8c609c55fe028d authored about 7 years ago by Matthias Urlichs <[email protected]>
don't use any strange selectors

7abae4e3bd83d334c3b9a741a68b2c2f052b9f2e authored about 7 years ago by Matthias Urlichs <[email protected]>
add a way to sync with the mainloop

236102866d969f4407d0bb9defe8af7ee091b1c4 authored about 7 years ago by Matthias Urlichs <[email protected]>
some improvements to call_trio* methods.

These are still somewhat untested.

aa1d3b64082627bf7fb23b69e3671b5cfdb949e3 authored about 7 years ago by Matthias Urlichs <[email protected]>
add wait_for/call_asyncio methods

for Trio to wait for an asyncio future
and call an asyncio procedure/method

8dfc8b3cda96ebbc89fb63dba7bd3846ddb4c46d authored about 7 years ago by Matthias Urlichs <[email protected]>
Factor out our Handle expansion

for doing the same with TimerHandle later

de9c5d3ecb74045d52a088af1a304f06cae4bfe0 authored about 7 years ago by Matthias Urlichs <[email protected]>
check-in of Python's asyncio tests

885e7966956e4cb272e079cfbe6fe5eaa3e730dd authored about 7 years ago by Matthias Urlichs <[email protected]>
add comments, remove dead code

fd10a3e2d1cc4d0235077684f67f0332fb9b38c7 authored about 7 years ago by Matthias Urlichs <[email protected]>
Factor out enqueuing

depending on the loop's idle state

49176c122b499dfcb14f33ea7ca12feb3814dfab authored about 7 years ago by Matthias Urlichs <[email protected]>
de-tab-ify

a common coding style is a good thing

978b430f79a11779fe92f56ca1f9fdf7bd571b93 authored about 7 years ago by Matthias Urlichs <[email protected]>
Add code for signal processing

8ee93d4046dcd35909ae84128d3bc2c3512f4d19 authored about 7 years ago by Matthias Urlichs <[email protected]>
fix base_event tests

This change allows common patterns like
t = loop.time()
loop.call_at(t+10, foo)
loop.run_f...

4d66203b3051eca881a9a99c63101fec0deca098 authored about 7 years ago by Matthias Urlichs <[email protected]>
revert Python tests to those shipped with 3.5

dba3bc9318d164a12aa8f5481a0412e8bd04b197 authored about 7 years ago by Matthias Urlichs <[email protected]>
typo

10339f12e855ef5ba51be2f55f2f8f55abd6d7d5 authored about 7 years ago by Matthias Urlichs <[email protected]>
a simple version of call_at() is easy

02ddb35d6ed51439ee129aee24ea7f069e0dbc79 authored about 7 years ago by Matthias Urlichs <[email protected]>
more comments

08ccc874beb3aa964a45e22514efaa9e0db4f251 authored about 7 years ago by Matthias Urlichs <[email protected]>
imported aiotest checks

Source: https://bitbucket.org/haypo/aiotest

4051bcb4ecfcf10ea0e235743aed5355c02c17e0 authored about 7 years ago by Matthias Urlichs <[email protected]>
re-work timer handling

asyncio semantics says that delayed tasks need to be kept waiting while the
loop is interrupted....

4b740851fbc231525d13b8eaea344f6fdcc23228 authored about 7 years ago by Matthias Urlichs <[email protected]>
use (extended) Handle objects

This allows the user to cancel a callback

e5b7a7c8ae16d14d0cc6d7235a3e88edbd5457be authored about 7 years ago by Matthias Urlichs <[email protected]>
Change read/write tasks to use handles

6ebea08cfa885f4ff2e2928e98e9f9291411fdd4 authored about 7 years ago by Matthias Urlichs <[email protected]>
re-initialize selector after saving its state

479c8a9274bdb486eda1a96aad07b452f450deac authored about 7 years ago by Matthias Urlichs <[email protected]>
Extend Handle to store a scope

This enables the user to cancel the task (if async)
after it's started

d4333bc2f3555548721f6652c363731d37ecf7e3 authored about 7 years ago by Matthias Urlichs <[email protected]>
Add call_soon_threadsafe

with support for queuing calls before the loop starts

79f3e3dd11a5acde55804b658b2e6fcd3466c4d1 authored about 7 years ago by Matthias Urlichs <[email protected]>
accept asyncio.Handle objects

This allows the loop._ready "array" to accept new handles
which gives us a working ``loop.call_s...

cb58c065c7f5d64504eabc20e1ac8cb5184107bb authored about 7 years ago by Matthias Urlichs <[email protected]>
First stab at asyncio compatibility

Asyncio compatibility is implemented by heavily hacking a "standard"
Unix asyncio mainloop.

The...

74b6bad44ab2c18b7045a3e2a6ebede8a572b369 authored about 7 years ago by Matthias Urlichs <[email protected]>
_set_read_handle() returned nonsense

c937a74987d03fe2f3ea203067bde1629dd04475 authored about 7 years ago by Matthias Urlichs <[email protected]>
dead code removed

cf65aefb79d32b92ce951114d04f9544b493fef8 authored about 7 years ago by Matthias Urlichs <[email protected]>