Skip to main content

Slush Logo

Slush

Slush is a lightweight Python web framework for building fast, clean, and extensible APIs and backend services.


🚀 Overview

Slush is designed to give developers full control without unnecessary complexity. It provides a minimal core with powerful built-in features, allowing you to build APIs and web applications quickly while keeping the codebase clean and understandable.

Whether you're prototyping, building microservices, or creating production-ready backends, Slush offers a solid and flexible foundation.

✨ Features

  • ⚡ Built-in development server with auto-reload
  • 🧭 Simple and expressive routing system
  • 🔌 Route-level middleware support
  • 📥 Request parsing (query params, JSON, form data, files)
  • 📤 Flexible response handling (JSON, text, HTML, redirects)
  • 📦 Pydantic-based request validation
  • 📄 Automatic OpenAPI schema generation
  • 📊 Interactive API docs (Swagger UI)
  • 🌐 CORS support with preflight handling
  • 📁 Static file serving
  • 🧩 Jinja2 template rendering
  • 🚦 Rate limiting (throttling) middleware
  • ⚡ Response caching with optional Redis backend

📦 Installation

$ pip install slush

⚡ Quick Start

Create your application

# main.py
from slush.app import Slush

app = Slush()

@app.route("/hello", methods=["GET"])
def hello(request):
    return {"message": "Hello from Slush!"}

Run the server

$ python run.py

Or use the built-in CLI:

$ slush runserver main:app

Gunicorn

$ gunicorn main:app
  • Minimal core, maximum flexibility
  • Explicit behavior over implicit assumptions
  • Easy to extend, easy to reason about

📄 License

This project is licensed under the BSD 3-Clause License.

🌐 Links

Metadata

Release files for slush 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slush 1.2.0
File Size Uploaded Provenance Actions
slush-1.2.0.tar.gz 21.9 kB Without provenance Details for slush-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for slush 1.2.0
File Interpreter ABI Platform Actions
slush-1.2.0-py3-none-any.whl Python 3 none any Details for slush-1.2.0-py3-none-any.whl

Total release size: 44.6 kB

Release files / slush-1.2.0.tar.gz

Download URL slush-1.2.0.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d9f579d7ff3633f59d232afe84edb804fdcc4be0b25d36bcf65280a673c6e0d6
BLAKE2b-256 checksum
How to use checksums
fdd84a2366771a1d0bf979d06a208fc61490057a7adcc301155552cf06b28337
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / slush-1.2.0-py3-none-any.whl

Download URL slush-1.2.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfe758337137cc1067075bba2a4ca44f854226477b749f45b0904950e543a5d1
BLAKE2b-256 checksum
How to use checksums
21b7b2868ccd1cb8b45ac6cc9fcbacd117c7e44a27a6337dea421ea6c1a1989e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for slush 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page