AnyioTyper
Wraps In Typer with Anyio, unlike Async-Typer AnyioTyper's goal is to allow customization
with different eventloops
from anyio_typer import AnyioTyper, Option
from typing import Annotated
app = AnyioTyper()
# This example uses a library called cyares you can install it with `pip install cyares`
# NOTE: winloop is supported by default if your on a windows operating system
@app.uvloop_command()
async def uvloop(
host:str,
rt:Annotated[str, Option(help="A Type of record to uncover", show_default=True)] = "A"
):
"""Use Uvloop or Winloop for DNS Resolving"""
from cyares.aio import DNSResolver
async with DNSResolver(["8.8.8.8", "8.8.4.4"]) as resolver:
result = await resolver.query(host, rt)
print(result)
@app.trio_command()
async def trio(
host:str,
rt:Annotated[str, Option(help="A Type of record to uncover", show_default=True)] = "A"
):
"""Use Trio for DNS Resolving"""
from cyares.trio import DNSResolver
async with DNSResolver(["8.8.8.8", "8.8.4.4"]) as resolver:
result = await resolver.query(host, rt)
print(result)
if __name__ == "__main__":
app()
Metadata
Release files for anyio-typer 0.2.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 |
|---|---|---|---|---|
| anyio_typer-0.2.0.tar.gz | 7.3 kB | Without provenance | Details for anyio_typer-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anyio_typer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for anyio_typer-0.2.0-py3-none-any.whl |
Total release size: 13.8 kB
Release files / anyio_typer-0.2.0.tar.gz
| Download URL | anyio_typer-0.2.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2745be6c75b87241693d676e83e7d57ad9ab675c2f0ab2a5053791c4d52c3589
|
|
BLAKE2b-256 checksum How to use checksums |
e3aa1ffecb950444b798ba5b74513e5717ac53ce2db69acce523876647f5c43f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / anyio_typer-0.2.0-py3-none-any.whl
| Download URL | anyio_typer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6331fba4b731a37a4887ba983c02a31539daf11b4320df1a65355ae4cda04855
|
|
BLAKE2b-256 checksum How to use checksums |
dfac5e707210f0e58c50c571778ff09058ca87cb18ce5535dd838b71c5055d04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for anyio-typer 0.2.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.