Skip to main content

aiocapsule

  • A minimal package containing an AIOHTTP wrapper function
  • Designed for asynchronous HTTP requests to a large, unknown number of different servers
  • Support for HTTP proxy and basic authentication

Install

pip install aiocapsule

How to use

from aiocapsule.core import request

A simple call returning JSON as a dict:

await request('GET', 'https://api.coingecko.com/api/v3/ping')
{'gecko_says': '(V3) To the Moon!'}

Or a string of HTML:

await request('GET', 'https://example.com/', text=True)
'<!doctype html>\n<html>\n<head>\n    <title>Example Domain</title>\n\n    <meta charset="utf-8" />\n    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />\n    <meta name="viewport" content="width=device-width, initial-scale=1" />\n    <style type="text/css">\n    body {\n        background-color: #f0f0f2;\n        margin: 0;\n        padding: 0;\n        font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n        \n    }\n    div {\n        width: 600px;\n        margin: 5em auto;\n        padding: 2em;\n        background-color: #fdfdff;\n        border-radius: 0.5em;\n        box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n    }\n    a:link, a:visited {\n        color: #38488f;\n        text-decoration: none;\n    }\n    @media (max-width: 700px) {\n        div {\n            margin: 0 auto;\n            width: auto;\n        }\n    }\n    </style>    \n</head>\n\n<body>\n<div>\n    <h1>Example Domain</h1>\n    <p>This domain is for use in illustrative examples in documents. You may use this\n    domain in literature without prior coordination or asking for permission.</p>\n    <p><a href="https://www.iana.org/domains/example">More information...</a></p>\n</div>\n</body>\n</html>\n'

Metadata

Release files for aiocapsule 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiocapsule 0.0.2
File Size Uploaded Provenance
aiocapsule-0.0.2.tar.gz 8.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aiocapsule 0.0.2
File Interpreter ABI Platform
aiocapsule-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / aiocapsule-0.0.2.tar.gz

Download URL aiocapsule-0.0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2aa6bfc3025efa397241594711bf3e917476e67d86249b1e7562f1544c0a0f99
BLAKE2b-256 checksum
How to use checksums
6b956fa2b424bed48b77c9af7802f6bdc69527942c2d6d031fa72ac09da987e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Release files / aiocapsule-0.0.2-py3-none-any.whl

Download URL aiocapsule-0.0.2-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e1e297be45fd62b769499678f224ec916d787bcee21705b67e722c7a984fab3
BLAKE2b-256 checksum
How to use checksums
a99ed2e18d06968db16a954753a9489a85ecbcc1e1d84edd68938f8409cf26d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.15

Security for aiocapsule 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page