ez_aiohttp
The aiohttp wrapper to make it more like requests.
How to use
It is kinda like requests, but it is async.
And you need to import aiohttp if you want to use more than GET,POST,PUT,PATCH,DELETE.
This just make it more simple.
Here's an example:
import aiohttp,ez_rq,ez_rq.util
async def main():
a = ez_rq.get('https://www.google.com')
print(await a.text())
b = ez_rq.post('https://www.google.com',data={'a':'b'})
print(await b.text())
c = ez_rq.put('https://www.google.com',data={'a':'b'})
print(await c.text())
d = ez_rq.patch('https://www.google.com',data={'a':'b'})
print(await d.text())
e = ez_rq.delete('https://www.google.com')
print(await e.text())
f = await ez_rq.util.json2attr(a) # or you can send the dictionary
f.a = 'b'
print(await ez_rq.util.attr2json(f))
etc.
It always return aiohttp.client_reqrep.ClientResponse object.
doc
Metadata
Release files for ez-aiohttp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ez_aiohttp-0.1.0.tar.gz | 2.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ez_aiohttp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.4 kB
Release files / ez_aiohttp-0.1.0.tar.gz
| Download URL | ez_aiohttp-0.1.0.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63f518dadb595983312a732089d2b8ba4128896c9c16c922065fc224235c283c
|
|
BLAKE2b-256 checksum How to use checksums |
92d1351db9b44c5db41aa12f10b83b0af847fe5913b06a4aaa747aa619cd7d1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / ez_aiohttp-0.1.0-py3-none-any.whl
| Download URL | ez_aiohttp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
20f4b92efdde42c12f82a9a55d0d7c726214a2faeb24361df3743660b3c04754
|
|
BLAKE2b-256 checksum How to use checksums |
aaa8f03b8c5d0e4c93f89cc5fba073af0993e23fe82e2942e0500c85502b936f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|