vercel-headers
Request header helpers for Vercel Python applications
Decision gist · record as of 2026-08-14
Yes, if you are building Python applications on Vercel and need to work with request headers and geolocation. The package is actively maintained, has no dependencies, and carries a permissive license. It solves a real problem for Vercel-specific development with minimal friction. Not relevant for non-Vercel deployments.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction install with no runtime dependencies.
- Active maintenance status and recent releases (latest 29 days old) suggest ongoing support.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open and closed projects.
last release 2026-07-16 (29 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,189,542 downloads/mo, #4,242 on PyPI
Alternatives
Verify before relying
pip install vercel-headers
from vercel.headers import set_headers
set_headers(request.headers)- Whether geolocation data is derived from Vercel's infrastructure or requires external services.
- What specific IP address extraction methods are available (e.g., client IP vs. proxy detection).
- How the OIDC and cache helpers mentioned in the description integrate with this package.
What it is and what it does
vercel-headers is a lightweight utility for Vercel Python applications that centralizes request header handling. It stores headers once per request and exposes them through a shared context that other helpers (OIDC, cache) can access. The package provides convenience methods to extract IP addresses and geolocation information from the registered headers.
The package is designed for serverless functions running on Vercel's platform where you need consistent access to request metadata across your application logic. It has no external runtime dependencies, making it a minimal addition to your project. The API is straightforward: call set_headers() early in your request handler, then use the exposed helpers to retrieve IP and location data as needed.
Use it for
- Extract client IP address in Vercel functions for logging, rate limiting, or access control.
- Retrieve geolocation data from request headers to customize responses by region.
- Share request context across multiple helper modules (OIDC, cache) without passing headers repeatedly.
- Build request-scoped middleware that needs consistent header access throughout the request lifecycle.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building Python applications on Vercel and need to work with request headers and geolocation.
The package is actively maintained, has no dependencies, and carries a permissive license. It solves a real problem for Vercel-specific development with minimal friction. Not relevant for non-Vercel deployments.
Install
vercel-headers on PyPI
Before you install
Low friction install with no runtime dependencies. Active maintenance status and recent releases (latest 29 days old) suggest ongoing support.
Requires Python 3.10 or later.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open and closed projects.
Quickstart
pip install vercel-headers
from vercel.headers import set_headers
set_headers(request.headers)
Verify before relying
- Whether geolocation data is derived from Vercel's infrastructure or requires external services.
- What specific IP address extraction methods are available (e.g., client IP vs. proxy detection).
- How the OIDC and cache helpers mentioned in the description integrate with this package.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 29 days since the last release |
| First released | |
| Downloads | 1,189,542 / month, #4,242 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: vercel_headers-0.7.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “vercel request headers”
- vercel-headersRegisters and exposes request headers for Vercel Python functions,…
- vercelPython SDK for Vercel that provides modules for interacting with…
- vercel-oidcRetrieves, decodes, and verifies Vercel OIDC tokens for Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also vercel · vercel-oidc · python-ipware · vercel-cache · IP2Location · vercel_blob · django-ipware · cached-ipaddress · django-xff · ipinfo