git: 5739121e2438 - main - www/py-httpx-ws: Add py-httpx-ws 0.6.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Nov 2024 06:28:09 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5739121e2438e385e74cd5318ddf6a31ebf2aa4d commit 5739121e2438e385e74cd5318ddf6a31ebf2aa4d Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-11-22 06:21:35 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-11-22 06:21:35 +0000 www/py-httpx-ws: Add py-httpx-ws 0.6.2 httpx-ws provides WebSocket support for HTTPX. Features: - Sync and async client - Helper methods to send text, binary and JSON data - Helper methods to receive text, binary and JSON data - Automatic ping/pong answers - HTTPX transport to test WebSockets defined in ASGI apps - Automatic keepalive ping - asyncio and Trio support through AnyIO --- www/Makefile | 1 + www/py-httpx-ws/Makefile | 28 ++++++++++++++++++++++++++++ www/py-httpx-ws/distinfo | 3 +++ www/py-httpx-ws/pkg-descr | 10 ++++++++++ 4 files changed, 42 insertions(+) diff --git a/www/Makefile b/www/Makefile index 68a466c10b4a..8452991d8cf5 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1752,6 +1752,7 @@ SUBDIR += py-httpx-gssapi SUBDIR += py-httpx-oauth SUBDIR += py-httpx-socks + SUBDIR += py-httpx-ws SUBDIR += py-hypercorn SUBDIR += py-hyperframe SUBDIR += py-hyperlink diff --git a/www/py-httpx-ws/Makefile b/www/py-httpx-ws/Makefile new file mode 100644 index 000000000000..42dc23795490 --- /dev/null +++ b/www/py-httpx-ws/Makefile @@ -0,0 +1,28 @@ +PORTNAME= httpx-ws +PORTVERSION= 0.6.2 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= httpx_ws-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= WebSockets support for HTTPX +WWW= https://frankie567.github.io/httpx-ws/ \ + https://github.com/frankie567/httpx-ws + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-regex-commit>=0:devel/py-hatch-regex-commit@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=4:devel/py-anyio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpcore>=1.0.4:www/py-httpcore@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.1:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wsproto>=0:net/py-wsproto@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/www/py-httpx-ws/distinfo b/www/py-httpx-ws/distinfo new file mode 100644 index 000000000000..1c079444dad5 --- /dev/null +++ b/www/py-httpx-ws/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1732239502 +SHA256 (httpx_ws-0.6.2.tar.gz) = b07446b9067a30f1012fa9851fdfd14207012cd657c485565884f90553d0854c +SIZE (httpx_ws-0.6.2.tar.gz) = 23430 diff --git a/www/py-httpx-ws/pkg-descr b/www/py-httpx-ws/pkg-descr new file mode 100644 index 000000000000..adf0cd41d159 --- /dev/null +++ b/www/py-httpx-ws/pkg-descr @@ -0,0 +1,10 @@ +httpx-ws provides WebSocket support for HTTPX. + +Features: +- Sync and async client +- Helper methods to send text, binary and JSON data +- Helper methods to receive text, binary and JSON data +- Automatic ping/pong answers +- HTTPX transport to test WebSockets defined in ASGI apps +- Automatic keepalive ping +- asyncio and Trio support through AnyIO