Skip to content

wku/fpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fpy

fpy is a high-performance asynchronous HTTP server for Python 3.12+.

Features

  • Blazing Fast: Uses C optimizations and an efficient event loop (uvloop).
  • Asynchronous: Built on top of Python's asyncio.
  • Modern Build System: Uses Meson and pyproject.toml.
  • Clean Architecture: Refactored C-extensions ("Shadow" implementation) for better maintainability.

Installation

Requires Python 3.12+ and a C compiler.

pip install .

Usage

Basic Example

Save as hello.py:

from fpy.app import Application

async def hello(request):
    return request.Response(text='Hello world!')

app = Application()
app.router.add_route('/', hello)
app.run()

Run server:

python3.12 hello.py

Verification

curl http://127.0.0.1:8080/

Development

  • Build: python3.12 -m pip install .
  • Run Tests: bash verify.sh

About

fpy is a high-performance asynchronous HTTP server for Python 3.12+.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors