-
python3-httpretty-1.1.4-3.fc36.noarch
Once upon a time a python developer wanted to use a RESTful API, everything was
fine but until the day he needed to test the code that hits the RESTful API:
what if the API server is down? What if its content has changed?
Don't worry, HTTPretty is here for you.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-httpx+brotli-0.28.1-1.lbn36.noarch
This is a metapackage bringing in brotli extras requires for python3-httpx.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-httpx+cli-0.28.1-1.lbn36.noarch
This is a metapackage bringing in cli extras requires for python3-httpx.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-httpx+http2-0.28.1-1.lbn36.noarch
This is a metapackage bringing in http2 extras requires for python3-httpx.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-httpx+socks-0.28.1-1.lbn36.noarch
This is a metapackage bringing in socks extras requires for python3-httpx.
It makes sure the dependencies are installed.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-httpx-0.28.1-1.lbn36.noarch
HTTPX is a fully featured HTTP client for Python, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-httpx-0.28.1-1.lbn36.noarch
HTTPX is a fully featured HTTP client for Python, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-httpx-sse-0.4.0-1.lbn36.noarch
httpx-sse
Consume Server-Sent Event (SSE) messages with HTTPX.
Table of contents
Installation
Quickstart
How-To
API Reference
Installation
NOTE: This is beta software. Please be sure to pin your dependencies.
pip install httpx-sse=="0.4.*"
Quickstart
httpx-sse provides the connect_sse and aconnect_sse helpers for connecting to an SSE endpoint. The resulting EventSource object exposes the .iter_sse() and .aiter_sse() methods to iterate over the server-sent events.
Example usage:
import httpx
from httpx_sse import connect_sse
with httpx.Client() as client:
with connect_sse(client, "GET", "http:/localhost:8000/sse") as event_source:
for sse in event_source.iter_sse():
print(sse.event, sse.data, sse.id, sse.retry)
You can try this against this example Starlette server (credit):
import asyncio
import uvicorn
from starlette.applications import Starlette
from starlette.routing import Route
from sse_sta
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36
-
python3-hug-2.6.1-1.lbn36.x86_64
hug aims to make developing Python driven APIs as simple as possible, but no simpler. As a result, it drastically simplifies Python API development.
hug's Design Objectives:
Make developing a Python driven API as succinct as a written definition.
The framework should encourage code that self-documents.
It should be fast. A developer should never feel the need to look somewhere else for performance reasons.
Writing tests for APIs written on-top of hug should be easy and intuitive.
Magic done once, in an API framework, is better than pushing the problem set to the user of the API framework.
Be the basis for next generation Python APIs, embracing the latest technology.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-huggingface-hub-0.30.2-4.lbn36.noarch
The huggingface_hub library allows you to interact with the Hugging Face Hub, a
machine learning platform for creators and collaborators. Discover pre-trained
models and datasets for your projects or play with the hundreds of machine
learning apps hosted on the Hub. You can also create and share your own models
and datasets with the community. The huggingface_hub library provides a simple
way to do all these things with Python.
Located in
LBN
/
…
/
Data Science
/
BastionLinux 36