Build modern web applications with Python backend and Svelte 5 frontend
$state
, $derived
, $effect
pip install fymo
fymo new my-app
cd my-app
pip install -r requirements.txt
npm install
fymo serve
Visit http://127.0.0.1:8000
to see your app!
my-app/
āāā app/
ā āāā controllers/ # Python controllers
ā āāā templates/ # Svelte components
ā āāā models/ # Data models
ā āāā static/ # Static assets
āāā config/ # Configuration
āāā fymo.yml # Project configuration
āāā server.py # Entry point
āāā requirements.txt # Python dependencies
<!-- app/templates/home/index.svelte -->
<script>
let { title, message } = $props();
let count = $state(0);
function increment() {
count++;
}
</script>
<div>
<h1>{title}</h1>
<p>{message}</p>
<button onclick={increment}>
Count: {count}
</button>
</div>
# app/controllers/home.py
context = {
'title': 'Welcome to Fymo',
'message': 'Build amazing apps with Python and Svelte 5!'
}
fymo new <project>
- Create a new projectfymo serve
- Start development serverfymo generate <type> <name>
- Generate components/controllersfymo build
- Build for productionConfigure your project in fymo.yml
:
name: my-app
version: 1.0.0
routes:
root: home.index
resources:
- posts
- users
server:
host: 127.0.0.1
port: 8000
reload: true
Fymo combines:
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details