- What Even Is This
- Installation: Your First Mistake
- Hello, World, You Minimalist Freak
- Routing: Guess the URL by Reading a Method Name
- Parameters: MicroPie Sees All
- Sessions: For When You Need to Remember Your Regret
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Shorten URL - Shorty</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>URL Shortened - Shorty</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import asyncio | |
| import time | |
| from mkvdb import Mkv | |
| # ------------------------------------------------------------------------------ | |
| # SYNC BENCHMARKS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import asyncio | |
| import os | |
| import time | |
| from pathlib import Path | |
| from pickledb import PickleDB | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| KenobiDB is a small document-based DB, supporting simple usage including | |
| insertion, removal, and basic search. | |
| Written by Harrison Erd (https://patx.github.io/) | |
| https://patx.github.io/kenobi/ | |
| """ | |
| # Copyright Harrison Erd | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # fastPATX (PyQt6) | |
| from __future__ import annotations | |
| import os | |
| import sys | |
| import webbrowser | |
| from dataclasses import dataclass | |
| from pathlib import Path |
MicroPie is built around streaming-first multipart handling, with no heavyweight form parsers.
This design keeps memory usage low and avoids the double-copy overhead seen in other frameworks.
We benchmarked a 13.4 GiB file upload against FastAPI, Litestar, and Starlette on the same machine.
| Framework | Upload Handler Summary | Multipart Parser | Elapsed (13.4 GiB) | Throughput |
I created minimal apps for each framework, all returning {"Hello": "World"} as JSON. They ran on Uvicorn with a single worker for baseline performance. Tests hit http://127.0.0.1:8000 with wrk (15s, 4 threads, 64 connections).
from blacksheep import Application, get, json
app = Application()NewerOlder