Cross-web is a Python library (version 0.4.1) providing a unified interface for common web framework operations, allowing developers to write framework-agnostic code for popular Python web frameworks like FastAPI, Flask, and Django. It is actively developed with recent releases addressing bug fixes and framework support, and was last updated in January 2026.
pip install cross-webVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates the core concept of `cross-web`: defining framework-agnostic `Request` and `Response` objects. In a real application, a specific web framework (like Flask or FastAPI) would use a `cross-web` adapter to convert its native request/response objects to `cross-web`'s types, allowing you to write your business logic using these unified types. This example is runnable and simulates the creation and processing of these objects.
Update all import statements from `from lia_web import ...` to `from cross_web import ...`. While `lia-web` acts as a shim, direct imports are recommended for future compatibility.
Install and use `cross-web` directly. Update all imports from `lia_web` to `cross_web`.
Ensure Pydantic is explicitly listed in your project's dependencies if your code relies on its presence. `cross-web` itself no longer requires it.
Upgrade to `cross-web` version 0.2.1 or higher to ensure correct multipart form data processing, especially when using the AioHTTP adapter.
pip install cross-web
Consult the 'cross-web' official documentation for the correct class or function name and its import path. For example, if the main application class is simply 'App', the fix would be: `from cross_web import App`
Refer to the 'cross-web' documentation on how to integrate and run the application with specific web frameworks (FastAPI, Flask, Django). It likely involves passing the `cross-web` application instance to the chosen framework's standard server command or utility, rather than calling a direct 'run' method on the `cross-web` object itself.
No dependency data recorded yet.