Skip to main content

any-analysis-py

a backend analysis interface for any-capture, designed to simplify packet analysis.

from any_analysis import AnyCapture, objects
from any_analysis.templates import HttpCapture, TcpCapture, UdpCapture

capture = AnyCapture(secret="<secret>")
http_capture = HttpCapture()
tcp_capture = TcpCapture()
udp_capture = UdpCapture()


@capture.on_http_event()
async def on_http(http_stream: objects.HttpStream):
    await http_capture.on_http(http_stream)


@capture.on_tcp_event()
async def on_tcp(tcp_stream: objects.TcpStream):
    await tcp_capture.on_tcp(tcp_stream)


@capture.on_udp_event()
async def on_udp(udp_stream: objects.UdpStream):
    await udp_capture.on_udp(udp_stream)


@capture.on_ws_event()
async def on_ws(ws_stream: objects.WsStream):
    print(f"id={ws_stream.id}, frame_id={ws_stream.frame_id}, event={ws_stream.event.name}, opcode={ws_stream.opcode.name}, body={ws_stream.body}")


if __name__ == "__main__":
    capture.run()

Metadata

Release files for any-analysis 1.0.0

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

Source distribution (sdist)

Source distribution for any-analysis 1.0.0
File Size Uploaded Provenance Actions
any_analysis-1.0.0.tar.gz 9.6 kB Without provenance Details for any_analysis-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for any-analysis 1.0.0
File Interpreter ABI Platform Actions
any_analysis-1.0.0-py3-none-any.whl Python 3 none any Details for any_analysis-1.0.0-py3-none-any.whl

Total release size: 26.5 kB

Release files / any_analysis-1.0.0.tar.gz

Download URL any_analysis-1.0.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
92eabd0af57686f40c37dd07336a34b48f3ea76865670d013a3919b0e15fa8ce
BLAKE2b-256 checksum
How to use checksums
83a8d2645b9c0d7b95310410b6ebb97cdb00abc169a53f9411cae263c8039586
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / any_analysis-1.0.0-py3-none-any.whl

Download URL any_analysis-1.0.0-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef29b58dd65448354960aa90a238a862b4595b1bbf84e8aea18c02f675d83844
BLAKE2b-256 checksum
How to use checksums
b124a5a5d4c72b7988685a39ce8fcfd11f150139135a7cb110a1310c4b9f065b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for any-analysis 1.0.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.

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