<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="https://cherrypy.dev/images/favicon.gif" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<title>MicroPie - An ultra-micro Python ASGI web framework</title>
<style>
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
color: #333;
}
.container {
max-width: 800px;
margin: auto;
margin-top: auto;
margin-bottom: auto;
background: #fff;
padding: 40px;
border-radius: 15px;
text-align: center;
}
h1, h2 {
color: #B22222;
font-weight: 600;
}
h2 {
text-align: left;
}
p {
font-size: 18px;
line-height: 1.6;
color: #555;
}
a {
color: #B22222;
text-decoration: none;
font-weight: 600;
transition: color 0.3s ease;
}
a:hover {
color: #B22222;
border-bottom: 1px dotted #B22222;
}
pre {
background: #f5f2f0;
padding: 20px;
border-radius: 10px;
text-align: left;
overflow-x: auto;
font-size: 1.1em;
}
.logo img {
max-width: 600px;
}
span.c2 {
color: #8F5902;
}
span.c9 {
color: #B22222;
}
.github-banner img {
position: fixed;
top: 0;
right: 0;
border: 0;
}
.button {
display: inline-block;
background: #B22222;
color: #fff;
padding: 15px 30px;
border-radius: 30px;
font-size: 18px;
font-weight: 600;
transition: background 0.3s ease;
}
.button:hover {
background: white;
border: 2px solid #B22222;
color: #B22222
}
@media (max-width: 768px) {
.container {
width: 100%;
padding: 20px;
}
.logo img {
max-width: 100%;
}
.button {
max-width: 100%;
text-align: center;
}
.github-banner {
display: none;
}
}
</style>
</head>
<body>
<div class="container">
<div class="logo">
<img src="logo.png" alt="MicroPie logo">
</div>
<p><strong>MicroPie is an ultra-small ASGI Python web framework</strong> that gets out of your way, letting you build fast and dynamic web apps with ease.
Inspired by <a href="https://cherrypy.dev/">CherryPy</a> and licensed under the BSD three-clause license.</p>
<h2>MicroPie is Fun</h2>
<pre><code>
<span class="c2">from</span> MicroPie <span class="c2">import</span> Server
<span class="c2">class</span> MyApp(<span class="c9">Server</span>):
<span class="c2">async def</span> index(<span class="c9">self</span>):
return <span class="c9">'Hello World!'</span>
app = MyApp() <small><em># Run with `uvicorn app:app`</em></small>
</code></pre>
<h2> And Easy to Install</h2>
<pre><code><span class="c2">$</span> pip install <span class="c9">micropie</span></code></pre>
<p><br><br>
<a href="https://github.com/patx/micropie" class="button">View source code, examples and documentation on GitHub</a>
</p>
</div>
<div class="github-banner">
<a href="https://github.com/patx/micropie">
<img src="https://github.blog/wp-content/uploads/2008/12/forkme_right_red_aa0000.png" alt="Fork me on GitHub">
</a>
</div>
</body>
</html>