An async resolver for aiohttp that supports MDNS
Project description
Introduction
This module provides an aiohttp resolver that supports mDNS, which uses the zeroconf library to resolve mDNS queries.
For full documentation please read https://aiohttp-asyncmdnsresolver.readthedocs.io.
Installation
$ pip install aiohttp-asyncmdnsresolver
Quick start
import asyncio
import aiohttp
from aiohttp_asyncmdnsresolver.api import AsyncMDNSResolver
async def main():
resolver = AsyncMDNSResolver()
connector = aiohttp.TCPConnector(resolver=resolver)
async with aiohttp.ClientSession(connector=connector) as session:
async with session.get('http://example.com') as response:
print(response.status)
async with session.get('http://xxx.local.') as response:
print(response.status)
asyncio.run(main())
API documentation
The documentation is located at https://aiohttp-asyncmdnsresolver.readthedocs.io.
Source code
The project is hosted on GitHub
Please file an issue on the bug tracker if you have found a bug or have some suggestion in order to improve the library.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiohttp_asyncmdnsresolver-0.1.1.tar.gz.
File metadata
- Download URL: aiohttp_asyncmdnsresolver-0.1.1.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c65d4b08b42c8a260717a2766bd5967a1d437cee852a9b21f3928b5171a7c81
|
|
| MD5 |
61abded67a0ab15ea16ea1149ca60e04
|
|
| BLAKE2b-256 |
058309fb97705e7308f94197a09b486669696ea20f28074c14b5811a38bdedc3
|
Provenance
The following attestation bundles were made for aiohttp_asyncmdnsresolver-0.1.1.tar.gz:
Publisher:
ci-cd.yml on aio-libs/aiohttp-asyncmdnsresolver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiohttp_asyncmdnsresolver-0.1.1.tar.gz -
Subject digest:
8c65d4b08b42c8a260717a2766bd5967a1d437cee852a9b21f3928b5171a7c81 - Sigstore transparency entry: 171324054
- Sigstore integration time:
-
Permalink:
aio-libs/aiohttp-asyncmdnsresolver@cd4a8e5de69fc066939b92b208440402fa3df8a3 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aio-libs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@cd4a8e5de69fc066939b92b208440402fa3df8a3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aiohttp_asyncmdnsresolver-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aiohttp_asyncmdnsresolver-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d04ded993e9f0e07c07a1bc687cde447d9d32e05bcf55ecbf94f63b33dcab93e
|
|
| MD5 |
5a57c7d722d37d79ba774cbcd583fd86
|
|
| BLAKE2b-256 |
d2d14f61508a43de82bb5c60cede3bb89cc57c5e8af7978d93ca03ad60b99368
|
Provenance
The following attestation bundles were made for aiohttp_asyncmdnsresolver-0.1.1-py3-none-any.whl:
Publisher:
ci-cd.yml on aio-libs/aiohttp-asyncmdnsresolver
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiohttp_asyncmdnsresolver-0.1.1-py3-none-any.whl -
Subject digest:
d04ded993e9f0e07c07a1bc687cde447d9d32e05bcf55ecbf94f63b33dcab93e - Sigstore transparency entry: 171324055
- Sigstore integration time:
-
Permalink:
aio-libs/aiohttp-asyncmdnsresolver@cd4a8e5de69fc066939b92b208440402fa3df8a3 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aio-libs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@cd4a8e5de69fc066939b92b208440402fa3df8a3 -
Trigger Event:
push
-
Statement type: