requests-threads icon indicating copy to clipboard operation
requests-threads copied to clipboard

🎭 Twisted Deferred Thread backend for Requests.

Results 9 requests-threads issues
Sort by recently updated
recently updated
newest added

I get this error: ``` Traceback (most recent call last): File "C:\Users\Menna\Desktop\requests-futures\twayback.py", line 3, in session = AsyncSession(n=100) File "C:\Users\Menna\AppData\Local\Programs\Python\Python310\lib\site-packages\requests_threads.py", line 37, in __init__ asyncioreactor.install(loop) File "C:\Users\Menna\AppData\Local\Programs\Python\Python310\lib\site-packages\twisted\internet\asyncioreactor.py", line 308, in...

Can we use the post method here?

The example in the readme file reads: ``` from requests_threads import AsyncSession session = AsyncSession(n=100) async def _main(): rs = [] for _ in range(100): rs.append(await session.get('http://httpbin.org/get')) print(rs) if __name__...

The `session.run()` function has no path for a non-coroutine function being passed in, it'll simply return without calling `twisted.react()`: https://github.com/requests/requests-threads/blob/b4d4384da96b09a98c97abb07b38caa72f5404cf/requests_threads.py#L61-L72 Under Python 3, line 63 is `True`, but if line...

I'm not that familiar with this new AsyncSession object, but it looks to me like the async/await example doesn't actually perform those GET requests concurrently as you are awaiting for...

Currently the documentation provides an example on for GET request. Can an example for POST request that demonstrates sending a payload and setting headers be add to the documentation? Would...

Hello, I'm just learning async, so this might just be dumb, and it seems my piece here is working fine, other than it is returning `Process finished with exit code...

I am a newbie for using this library. I want to call an sub-function in main() to do http_get multiple urls, and return all responses by dict(). But I don't...