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 | Provenance | Actions |
|---|---|---|---|---|
| ez_aiohttp-0.1.0.tar.gz | 2.0 kB | Without provenance | Details for ez_aiohttp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ez_aiohttp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ez_aiohttp-0.1.0-py3-none-any.whl |
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
|
Security for ez-aiohttp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.