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)

Metadata

Release files for coloco 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coloco 0.5.2
File Size Uploaded Provenance
coloco-0.5.2.tar.gz 85.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for coloco 0.5.2
File Interpreter ABI Platform
coloco-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 178.7 kB

Release files / coloco-0.5.2.tar.gz

Download URL coloco-0.5.2.tar.gz
Size 85.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a57fdd7a9e01ce63e621be1d62d2d00878447a01ed98bef24380bbdce3c07334
BLAKE2b-256 checksum
How to use checksums
1f997ed8c829a078a340277a2e63478e31e6e4334634b6237fd3c9ad8bf76e0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1018-azure

Release files / coloco-0.5.2-py3-none-any.whl

Download URL coloco-0.5.2-py3-none-any.whl
Size 93.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
99e7c371eaf1cfb6899937ec0a7375594ad2520d24c682ee953f230c483fea3c
BLAKE2b-256 checksum
How to use checksums
a0121c600ff0133b6e78da3149e6ec9d9198fb95b5649f4822a74fe15a687ad4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.28.0 CPython/3.14.6 Linux/6.17.0-1018-azure

Security for coloco 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page