Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

anyserver

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anyserver

Simple and generic python web server and utils

  • 0.3.4
  • PyPI
  • Socket score

Maintainers
1

Simple Python Server

Simple and generic python web server, designed with simplicity and extendability in mind.

Background & motivation

I really like the simplicity and elegance of frameworks like FastAPI, Flask, Express.js and Koa.js.

# Typical usage for defining routes
app = FastAPI() # Or some other framework like flask

@app.get("/")
async def root():
    return {"message": "Hello World"}

What I don't like, for very simple use cases, is the boilerplate and dependencies.

All of the above frameworks have some requirements and dependencies, meaning its not completely portable to all environments, without the need to download dependencies from the internet.

At its core, this project was designed with the following features in mind:

  • Handle HTTP routes with a simple request - response model.
  • Support ways to serve static content from a folder (eg: HTML, CSS, JS).
  • A zero-dependency server.py that just works out of the box as a simple web server.
  • Supports multiple response types, with ability to render custom templated responses.

With these basic requirements in place, rapid prototyping is possible with very little overhead.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc