coloco 0.4.3__tar.gz → 0.4.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. {coloco-0.4.3 → coloco-0.4.4}/PKG-INFO +1 -1
  2. {coloco-0.4.3 → coloco-0.4.4}/pyproject.toml +1 -1
  3. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/db.py +2 -1
  4. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/db.py +2 -0
  5. {coloco-0.4.3 → coloco-0.4.4}/LICENSE +0 -0
  6. {coloco-0.4.3 → coloco-0.4.4}/README.md +0 -0
  7. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/__init__.py +0 -0
  8. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/__main__.py +0 -0
  9. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/api.py +0 -0
  10. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/app.py +0 -0
  11. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/api.py +0 -0
  12. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/build.py +0 -0
  13. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/createapp.py +0 -0
  14. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/dev.py +0 -0
  15. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/node.py +0 -0
  16. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/package.py +0 -0
  17. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/cli/serve.py +0 -0
  18. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/codegen.py +0 -0
  19. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/config.py +0 -0
  20. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/dependencies.py +0 -0
  21. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/exceptions.py +0 -0
  22. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/lifespan.py +0 -0
  23. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/static.py +0 -0
  24. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/docker/.dockerignore-tpl +0 -0
  25. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/docker/Dockerfile-tpl +0 -0
  26. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/docker/docker-compose.yml-tpl +0 -0
  27. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/404.svelte-tpl +0 -0
  28. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/app.css-tpl +0 -0
  29. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/app.svelte-tpl +0 -0
  30. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/index.html-tpl +0 -0
  31. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/index.svelte-tpl +0 -0
  32. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+app/main.ts-tpl +0 -0
  33. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/openapi-ts.config.ts-tpl +0 -0
  34. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/package.json-tpl +0 -0
  35. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/svelte.config.js-tpl +0 -0
  36. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/tsconfig.json-tpl +0 -0
  37. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/vite-env.d.ts-tpl +0 -0
  38. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/+node/vite.config.ts-tpl +0 -0
  39. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/.gitignore-tpl +0 -0
  40. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/README.md-tpl +0 -0
  41. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/example/api.py-tpl +0 -0
  42. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/example/index.svelte-tpl +0 -0
  43. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/main.py-tpl +0 -0
  44. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/pyproject.toml-tpl +0 -0
  45. {coloco-0.4.3 → coloco-0.4.4}/src/coloco/templates/standard/tsconfig.json-tpl +0 -0
  46. {coloco-0.4.3 → coloco-0.4.4}/tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: coloco
3
- Version: 0.4.3
3
+ Version: 0.4.4
4
4
  Summary: A kit for creating FastAPI + Svelte applications
5
5
  Author-Email: Channel Cat <channelcat@gmail.com>
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "coloco"
3
- version = "0.4.3"
3
+ version = "0.4.4"
4
4
  description = "A kit for creating FastAPI + Svelte applications"
5
5
  authors = [
6
6
  { name = "Channel Cat", email = "channelcat@gmail.com" },
@@ -40,7 +40,8 @@ def db_command(func):
40
40
  def wrapper(*args, **kwargs):
41
41
  tortoise_logger.setLevel(logging.WARNING)
42
42
  run(func(*args, **kwargs))
43
- run(Tortoise.close_connections())
43
+ # TODO: figure out why the event loop is closed already when using postgres
44
+ # run(Tortoise.close_connections())
44
45
 
45
46
  return app.command(name=func.__name__)(wrapper)
46
47
 
@@ -89,6 +89,8 @@ def inject_model_serializers(orm_config: dict, routes: list[ColocoRoute]):
89
89
  for label, _app in orm_config["apps"].items():
90
90
  for model in _app["models"]:
91
91
  Tortoise.init_models([model], label, _init_relations=False)
92
+ # Initialize foreign key relations
93
+ Tortoise._init_relations()
92
94
 
93
95
  # Auto-create serializers
94
96
  # TODO: configurable
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes