Python's http.server module can serve static files for a short-lived test or trusted transfer. It is not a production web server and does not provide authentication, authorization, TLS, rate limiting, or hardened handling of hostile traffic.
Network Sharing · Lesson 3
Simple HTTP Server
Learn how to expose a controlled directory temporarily with Python's HTTP server.