Skip to main content

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):
    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 coloco
  • coloco createapp myapp
  • From myapp - coloco dev

Running in Production

  • coloco build
  • Artifacts will be saved to dist
  • From dist, run 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)

TBD Required features for launch

  • Config with secrets encryption
  • Package/share modules with git
  • Docs

Features in development

  • CRUD
  • Caching
  • User module
  • Dev tools module
  • Admin panel module

Dreams

  • Move node_modules into +node

Other TODO

  • Swap to copier for template creation
  • Textual CLI app / installer / dev tools?
  • Resolve duplicate types in openapi spec (due to model serializers)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coloco-0.5.1.tar.gz (83.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coloco-0.5.1-py3-none-any.whl (91.5 kB view details)

Uploaded Python 3

File details

Details for the file coloco-0.5.1.tar.gz.

File metadata

  • Download URL: coloco-0.5.1.tar.gz
  • Upload date:
  • Size: 83.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1018-azure

File hashes

Hashes for coloco-0.5.1.tar.gz
Algorithm Hash digest
SHA256 2b12a3938527d271a0dc5e8b200c447810647cb1811cc6f60f05167be197cbd9
MD5 f42321ceccbf62ea370db81893c4cda6
BLAKE2b-256 515074f36d049c0ff624894ed7559c3b9e458f880c9c749bd0814bc92e07d23f

See more details on using hashes here.

File details

Details for the file coloco-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: coloco-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 91.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1018-azure

File hashes

Hashes for coloco-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c556939ffd88d219202279b807d67d535178b2ac0d93ecfc3c1349177e5107e6
MD5 1b0416d8c53be2ef6cc782ffa5cd209a
BLAKE2b-256 8f5e7e942a475396e748d5a24bf103bdb982467af40ed92fa2f2971774f7b400

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.2

2 files

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

0.4.1

2 files

0.4.0

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page