guyskk / curequests Goto Github PK
View Code? Open in Web Editor NEWCurio + Requests: Async HTTP for Humans
License: MIT License
Curio + Requests: Async HTTP for Humans
License: MIT License
For this:
@run_with_curio
async def test_chunked():
r = await get('http://httpbin.org/stream/1', stream=True)
assert r.status_code == 200
async for chunk in r.iter_content():
print(chunk)
will cause OSError: [Errno 9] Bad file descriptor
sometimes.
It's because the session and connection was closed after r = await get(...)
, subsequent reads will fail.
But Requests seems read out response body when r = get(...)
finished, so it not cause errors.
I'm tring to find out the correct implement.
You might want to add asks to your "similar projects" list.
Hi ๐
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! ๐ค
The PyPI releases do not include tests, and there are no GitHub releases, so I can not get a stable URL for fetching tests of a release
The ability to use a proxy is one of the important features!
When is the proxy planned?
Hey @guyskk really interesting idea to use requests
package, async/await
syntax, would be cool, if I can help you, let me know.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.