Clastic – functional web application framework

Clastic is a functional web framework that emphasises explicit application configuration and predictable request processing. Its design avoids relying on implicit global state and instead connects application components through clearly declared dependencies.

Applications are defined using routes, endpoint functions and optional renderers. A route associates a URL pattern with an endpoint, while a renderer can transform the endpoint’s result into an HTTP response.

The framework separates application logic from the surrounding request-processing infrastructure. Middleware can provide shared behaviour, and application resources can be supplied to handlers without requiring them to retrieve dependencies from global variables.

Clastic also validates application configuration early, helping developers identify incompatible dependencies before incoming requests reach an endpoint.

This is free and open source software.

Key Features

  • Explicit route definitions connecting URL patterns with endpoint functions.
  • Functional request handling without mandatory class-based controllers.
  • Dependency injection based on endpoint and middleware function signatures.
  • Application resources for supplying shared objects to request handlers.
  • Pluggable renderers for transforming endpoint results into HTTP responses.
  • Support for HTML templates, JSON responses and other rendering approaches.
  • Middleware with separate request, endpoint and rendering stages.
  • Middleware dependency checking to detect missing or incompatible resources.
  • Application configuration validation before requests are processed.
  • Request objects exposing HTTP headers, parameters, cookies and request data.
  • Support for custom response objects and early response generation.
  • Integration with the Werkzeug WSGI toolkit.
  • Compatibility with WSGI application servers and middleware.
  • Extensible request-processing pipeline with predictable component ordering.

Website: github.com/mahmoud/clastic
Support:
Developer: Mahmoud Hashemi
License: BSD 3-Clause ‘New’ or ‘Revised’ License

Clastic is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

Best Python Micro Frameworks
FlaskHugely popular microframework based on Werkzeug and Jinja2
FastAPIWeb framework for building APIs
StarletteLightweight ASGI framework/toolkit
aiohttpAsynchronous HTTP client/server for asyncio and Python
SanicWeb server and web framework
FalconBuild cloud APIs, smart proxies, and app backends
QuartWeb microframework based on Asyncio
PyramidStart small, finish big, stay finished framework
BottleFast, simple and lightweight WSGI micro web framework
ChalicePython Serverless Microframework for AWS
CherryPyMature, minimalist, Python object-oriented web framework
TurboGearsHybrid framework acting as a Full Stack framework or Microframework
QuixoteAimed at sites where complex programming is required
KleinMicro-framework for developing production-ready web services with Python
circuitsLightweight event driven application framework
ClasticFunctional web framework
HugMake developing Python driven APIs as simple as possible
MicroPieUltra-micro ASGI Python web framework
LitestarPowerful, lightweight, and flexible ASGI framework
BlackSheepAsynchronous Python web framework
RobynPython web framework designed for high performance
MicrodotSmall web framework for Python and MicroPython

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted