Metadata-Version: 2.4
Name: tw-framework
Version: 0.9.27
Summary: TW framework CLI with create, dev, build, and deploy commands
Author: TW MRMK, TW MLKRAJ, TW ASLAM, TW BADAL, TW ROHIT, TW RISHU
Keywords: tw,tw-framework,twlang,framework,cli,static-site
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Provides-Extra: image
Requires-Dist: Pillow>=10; extra == "image"
Provides-Extra: compression
Requires-Dist: brotli>=1.0; extra == "compression"
Provides-Extra: edge-v8
Requires-Dist: py_mini_racer>=0.6; extra == "edge-v8"
Provides-Extra: redis
Requires-Dist: redis>=4; extra == "redis"
Provides-Extra: wasm
Requires-Dist: wasmtime>=10; extra == "wasm"
Provides-Extra: all
Requires-Dist: Pillow>=10; extra == "all"
Requires-Dist: brotli>=1.0; extra == "all"
Requires-Dist: py_mini_racer>=0.6; extra == "all"
Requires-Dist: redis>=4; extra == "all"
Requires-Dist: wasmtime>=10; extra == "all"
Dynamic: license-file

# TW Framework

A Python-based full-stack web framework with App Router, Zero-JS static sites, multi-runtime API routes, and a custom DSL for pages, components, and layouts.

## Quick Start

```bash
pip install tw-framework
tw create my-site
cd my-site
tw build
```

## Features

- **Custom DSL**: `.tw` pages/components/layouts, `.tss` stylesheets, `.twm` API routes
- **App Router**: File-based routing with nested layouts, dynamic routes, catch-all, route groups
- **Zero-JS Static Sites**: Pages without state/events ship no JavaScript
- **Multi-Runtime**: Node.js, Edge V8, Python, WASM runtimes for API routes
- **Reactive State**: Built-in state management with Virtual DOM
- **Streaming SSR**: Server-side rendering with skeleton loaders
- **ISR**: Incremental Static Regeneration for stale-while-revalidate
- **Partial Prerendering**: Component-level static/dynamic boundaries
- **Server Actions**: Progressive enhancement with CSRF support
- **Plugin System**: `.twp` format with lifecycle hooks
- **CLI**: create, init, dev, build, export, preview, serve, deploy commands

## Installation

```bash
pip install tw-framework
pip install tw-framework[dev]     # With pytest
pip install tw-framework[image]   # With Pillow
```

## License

MIT

## Authors

See `pyproject.toml` for the full list of contributors.
