A kit for creating FastAPI + Svelte applications
Project description
Coloco
A kit for creating full-stack apps with co-located code, built on FastAPI and Svelte. Bundle your front-end and back-end code and easily tie them together with codegen.
Example:
hello/api.py
from coloco import api
@api
def test(name: str) -> str:
return f"Hello {name}!"
hello/index.svelte
<script lang="ts">
import { test } from "./api";
</script>
{#await test({ name: "Coloco" })}
Loading...
{:then result}
The server says {result}
{/await}
Serves the page myapp.com/hello, which calls myapp.com/hello/test?name=Coloco and prints the message Hello Coloco!
Getting Started
pip install colococoloco createapp myapp- From
myapp-coloco dev
Running in Production
-
coloco build -
coloco serve
Opinions
This framework is opinionated and combines the following excellent tools:
- FastAPI
- Svelte
- openapi-ts (codegen)
- svelte5-router (file-based routing)
- tortoise-orm (optional)
Plans
- Deploy tools
- ORM Support
- SQLite/Postgres support
- Package/share modules with git
Dreams
- Move
node_modulesinto+node - Somehow clean up litter from
uv
TODO
- Swap to
cycloptsfor CLI - Swap to
copierfor template creation TextualCLI app / installer / dev tools?- Common dev
adminmodule
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coloco-0.3.0.tar.gz.
File metadata
- Download URL: coloco-0.3.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.4 CPython/3.13.2 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82db851ee36514e13ab9aaba5b7ff2313b03418ab0ada08a5ab4f75646590fee
|
|
| MD5 |
837e5605287952c680541654d1134e94
|
|
| BLAKE2b-256 |
2b37e0cfca3bd5315c600a77541644989293c31ad45b9434b6f33cae5946e29f
|
File details
Details for the file coloco-0.3.0-py3-none-any.whl.
File metadata
- Download URL: coloco-0.3.0-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.22.4 CPython/3.13.2 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daea5d3909dd95ac7154fb55324a07c17cab71ceb8e7b6eed20b186aee1a752b
|
|
| MD5 |
fc0973c466127933761b7e48a1c8d584
|
|
| BLAKE2b-256 |
2a3602b1e98df5d358b44ed205c7613d685acb061ddb656fb72b7ff951b4ac38
|