Parse HTTP messages simply and quickly with Python
Tools for testing applications that make network requests.
OAuth2 support to Python-Requests HTTP library.
Python implementation of the AWS4 compatible Escher HTTP request signing protocol.
Simplified HTTP calls mocking for pytest (requests, httpx)
Negotiate authentication for the requests HTTP client library
Okapi ===== Python Library to send API info to Storage Server Okapi setup =========== In an existing project you should at least modify the following files: requirements/base.txt --------------------- Add the following requirement to the project's settings. It won't be needed to add ``requests`` if the project is already using it. ``requests`` version should be >= 2.2.11: .. code-block:: python okapi==X.Y.Z settings.py ----------- Add the following configuration to the project's settings: .. code-block:: python ########## OKAPI CONFIGURATION OKAPI_PROJECT = 'your-project-name' OKAPI_URI = None if settings.has_section('okapi'): OKAPI_URI = 'mongodb://{0},{1},{2}/{3}?replicaSet={4}'.format( settings.get('okapi', 'host0'), settings.get('okapi', 'host1'), settings.get('okapi', 'host2'), settings.get('okapi', 'name'), settings.get('okapi', 'replica'), ) ########## END OKAPI CONFIGURATION Note that if the project is already using *MongoDB*, you shouldn't store Okapi's data into the same database. Okapi creates collections dynamically and could conflict with your the project's. Initialization -------------- Initialize Okapi in the ``models.py`` file of a basic application of the project. This way Okapi will be imported at startup time: .. code-block:: python import requests from django.conf import settings from okapi.api import Api project_name = getattr(settings, 'OKAPI_PROJECT') mongodb_uri = getattr(settings, 'MONGODB_URI') okapi_client = Api(project_name, requests, mongodb_uri) Usage ----- Once initialized you can use Okapi wherever you use ``requests`` library. Think of Okapi as if you were using ``requests`` because they both have the same API. Requests documentation: http://docs.python-requests.org/en/latest/ Activating/deactivating okapi in your project --------------------------------------------- In the file ``settings/base.py`` under the ``OKAPI CONFIGURATION`` section, you can add a boolean setting in order to enable/disable okapi for your project. It could be interesting to have it enabled in QA or staging environment and after it has been properly tested, activate it also in production. You can have a section into ``your-project-name/settings/dev.py``: .. code-block:: python ########## OKAPI CONFIGURATION OKAPI_ENABLED = True ########## END OKAPI CONFIGURATION Another one into ``your-project-name/settings/production.py``: .. code-block:: python ########## OKAPI CONFIGURATION OKAPI_ENABLED = False ########## END OKAPI CONFIGURATION And so on. Note that ``get_custom_setting`` is a wrapper around ``getattr``. Then you could initialize it conditionally as shown below: .. code-block:: python http_lib = requests if (get_custom_setting('OKAPI_ENABLED') and okapi_uri is not None): project_name = get_custom_setting('OKAPI_PROJECT', required=True) okapi_uri = get_custom_setting('OKAPI_URI', required=True) okapi_client = Api(project_name, requests, okapi_uri) http_lib = okapi_client 0.12.0 (2015-04-01) ------------------- - New Features: - Method `get_mongodb_client` to get a MongoDB connection client. - Bugfixes: - None - Incompatible changes: - `Okapi.__init__` has changed to have a new mandatory `db` parameter. Parameters `mongodb_uri` and `connect_timeout_ms` have been removed. 0.11.0 (2014-12-29) ------------------- - New Features: - Changed blank space to a T letter as indicator of the beginning of the time element to be more iso-friendly: http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15 0.10.0 (2014-11-11) ------------------- - New Features: - Don't hardcode the name of the database but expect it to be in the mongodb_uri parameter. 0.9.0 (2014-10-16) ------------------ - New Features: - Decouple okapi from requests so that any library following requests interface can be used. This introduces a backward incompatible change because now the __init__ method for okapi Api class requires a new argument 0.8.0 (2014-09-26) ------------------ - New features: - Use one collection per project instead of saving all projects in the same collection - Add a time_bucket attribute to make time based queries faster 0.7.1 (2014-07-28) ---------------- - Bug Fixes: -Make sure to raise the exception if an error occurs so the user know exactly what is happening instead of code crashing
A sleek self-hosted Flask utility to convert raw HTTP requests into multiple programming languages and libraries.
TNG (Trusted Network Gateway) Python SDK — encrypted HTTP requests with remote attestation
Utils for HTTP requests using the requests library
A library for making simple REST-like HTTP requests
Visualize DuckDB’s Parquet range reads, map them to file structure, and compare query runs.
Abstracts HTTP requests to be easier to use
An asynchronous HTTP and RESTful API requests framework for asyncio and Python
Monetize AI agents with non-custodial HTTP-402 crypto payments. Zero-dependency Python client for agents.u.cash: sell priced resources, get paid to your own wallet across 40+ chains, with scoped subagent keys.
HTTP conditional-request and Link-header helpers for SCRUDful REST APIs (Django REST Framework, django-ninja, FastAPI)
A lightweight, high concurrency HTTP request library
Requests transport adapters for bearer-authenticated `http(s)://`, `file://`, `s3://`, and `oci://` URLs.
Authenticate http requests from an API key
Concurrent HTTP downloads and uploads for Python
User Agent Parser parses user agent strings to extract browser, operating system, and hardware details. It identifies device types, CPU architecture, and bot traffic, so you can run user agent detection on every incoming HTTP request.
socket_request is building and parsing HTTP requests with UNIX domain sockets.
Bounded HTTP(S) requests with client-owned connection pooling
httptools helps you to capture, repeat and live intercept HTTP requests. It is built on top of [mitmproxy](https://mitmproxy.org/)
HTTP request with Range support as file-like object
Httptesting HTTP(s) interface testing framework.
基于原primp 用rust重构调整的python请求库 - The fastest python HTTP client that can impersonate web browsers
The Python SDK for the Anis Partner API — signed requests, verified responses, typed operations.
Browser-fingerprint HTTP, HTTP/3 and WebSocket client powered by Rust
Diagnostic tool for HTTP API issues. Captures or runs a request, runs a battery of checks, produces a structured report with plain-language findings.
Fake Network Requests helper that retrieves data from a local file.
A lightweight http request-response library
Agentic AI inference with x402 (HTTP 402) pay-per-request on Solana USDC — no API keys, no registration.
Akeneo Connector is a Python package that simplifies interacting with Akeneo's REST API. It provides classes for making HTTP requests to Akeneo endpoints, handling pagination in responses, and managing product data in Akeneo.
A customized requests client for AI prompt delivery, cloud storage batch synchronization, and HTML fetching.
Robot Framework Library For Checking HTTP Response Status Codes
Automatic retry and resilience for the requests library
Sign- and validate- data (dictionaries, strings) using symmetric-key algorithm.
General HTTP requests library for Python applications running in Keboola Connection environment
Requests-style Python HTTP client with a bundled NSS and Necko native runtime