asqueel 0.1.0__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 (356) hide show
  1. asqueel-0.1.0/.gitignore +51 -0
  2. asqueel-0.1.0/.readthedocs.yaml +20 -0
  3. asqueel-0.1.0/LICENSE +201 -0
  4. asqueel-0.1.0/PKG-INFO +160 -0
  5. asqueel-0.1.0/README.md +117 -0
  6. asqueel-0.1.0/assets/asqueel/icons/android-chrome-192x192.png +0 -0
  7. asqueel-0.1.0/assets/asqueel/icons/android-chrome-512x512.png +0 -0
  8. asqueel-0.1.0/assets/asqueel/icons/app-icon.svg +7 -0
  9. asqueel-0.1.0/assets/asqueel/icons/apple-touch-icon.png +0 -0
  10. asqueel-0.1.0/assets/asqueel/icons/favicon-16x16.png +0 -0
  11. asqueel-0.1.0/assets/asqueel/icons/favicon-32x32.png +0 -0
  12. asqueel-0.1.0/assets/asqueel/icons/favicon-48x48.png +0 -0
  13. asqueel-0.1.0/assets/asqueel/icons/favicon.ico +0 -0
  14. asqueel-0.1.0/assets/asqueel/icons/favicon.svg +7 -0
  15. asqueel-0.1.0/assets/asqueel/icons/site.webmanifest +21 -0
  16. asqueel-0.1.0/assets/asqueel/index.html +7 -0
  17. asqueel-0.1.0/assets/asqueel/manifest.json +351 -0
  18. asqueel-0.1.0/assets/asqueel/palette/asqueel-palette.css +9 -0
  19. asqueel-0.1.0/assets/asqueel/palette/asqueel-palette.gpl +11 -0
  20. asqueel-0.1.0/assets/asqueel/palette/asqueel-palette.json +12 -0
  21. asqueel-0.1.0/assets/asqueel/palette/asqueel-palette.svg +1 -0
  22. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-black-1024.png +0 -0
  23. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-black-128.png +0 -0
  24. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-black-256.png +0 -0
  25. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-black-512.png +0 -0
  26. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-black-64.png +0 -0
  27. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-burgundy-1024.png +0 -0
  28. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-burgundy-128.png +0 -0
  29. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-burgundy-256.png +0 -0
  30. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-burgundy-512.png +0 -0
  31. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-burgundy-64.png +0 -0
  32. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-inverse-1024.png +0 -0
  33. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-inverse-128.png +0 -0
  34. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-inverse-256.png +0 -0
  35. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-inverse-512.png +0 -0
  36. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-inverse-64.png +0 -0
  37. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-primary-1024.png +0 -0
  38. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-primary-128.png +0 -0
  39. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-primary-256.png +0 -0
  40. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-primary-512.png +0 -0
  41. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-primary-64.png +0 -0
  42. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-white-1024.png +0 -0
  43. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-white-128.png +0 -0
  44. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-white-256.png +0 -0
  45. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-white-512.png +0 -0
  46. asqueel-0.1.0/assets/asqueel/png/asqueel-monogram-white-64.png +0 -0
  47. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-black-1024.png +0 -0
  48. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-black-2048.png +0 -0
  49. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-black-512.png +0 -0
  50. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-burgundy-1024.png +0 -0
  51. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-burgundy-2048.png +0 -0
  52. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-burgundy-512.png +0 -0
  53. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-inverse-1024.png +0 -0
  54. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-inverse-2048.png +0 -0
  55. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-inverse-512.png +0 -0
  56. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-primary-1024.png +0 -0
  57. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-primary-2048.png +0 -0
  58. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-primary-512.png +0 -0
  59. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-white-1024.png +0 -0
  60. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-white-2048.png +0 -0
  61. asqueel-0.1.0/assets/asqueel/png/asqueel-wordmark-white-512.png +0 -0
  62. asqueel-0.1.0/assets/asqueel/preview/asqueel-identity.png +0 -0
  63. asqueel-0.1.0/assets/asqueel/preview/asqueel-identity.svg +19 -0
  64. asqueel-0.1.0/assets/asqueel/social/asqueel-social.png +0 -0
  65. asqueel-0.1.0/assets/asqueel/social/asqueel-social.svg +7 -0
  66. asqueel-0.1.0/assets/asqueel/svg/asqueel-monogram-black.svg +7 -0
  67. asqueel-0.1.0/assets/asqueel/svg/asqueel-monogram-burgundy.svg +7 -0
  68. asqueel-0.1.0/assets/asqueel/svg/asqueel-monogram-inverse.svg +7 -0
  69. asqueel-0.1.0/assets/asqueel/svg/asqueel-monogram-primary.svg +7 -0
  70. asqueel-0.1.0/assets/asqueel/svg/asqueel-monogram-white.svg +7 -0
  71. asqueel-0.1.0/assets/asqueel/svg/asqueel-wordmark-black.svg +7 -0
  72. asqueel-0.1.0/assets/asqueel/svg/asqueel-wordmark-burgundy.svg +7 -0
  73. asqueel-0.1.0/assets/asqueel/svg/asqueel-wordmark-inverse.svg +7 -0
  74. asqueel-0.1.0/assets/asqueel/svg/asqueel-wordmark-primary.svg +7 -0
  75. asqueel-0.1.0/assets/asqueel/svg/asqueel-wordmark-white.svg +7 -0
  76. asqueel-0.1.0/assets/asqueel-assets.zip +0 -0
  77. asqueel-0.1.0/docs/_static/brand.css +31 -0
  78. asqueel-0.1.0/docs/_static/readability.css +23 -0
  79. asqueel-0.1.0/docs/api.rst +54 -0
  80. asqueel-0.1.0/docs/asqueel-target-architecture.md +776 -0
  81. asqueel-0.1.0/docs/brand/asqueel/asqueel-01-morbida-dark.svg +1 -0
  82. asqueel-0.1.0/docs/brand/asqueel/asqueel-01-morbida-light.svg +1 -0
  83. asqueel-0.1.0/docs/brand/asqueel/asqueel-02-geometrica-dark.svg +1 -0
  84. asqueel-0.1.0/docs/brand/asqueel/asqueel-02-geometrica-light.svg +1 -0
  85. asqueel-0.1.0/docs/brand/asqueel/asqueel-03-slanciata-dark.svg +1 -0
  86. asqueel-0.1.0/docs/brand/asqueel/asqueel-03-slanciata-light.svg +1 -0
  87. asqueel-0.1.0/docs/brand/asqueel/asqueel-04-compatta-dark.svg +1 -0
  88. asqueel-0.1.0/docs/brand/asqueel/asqueel-04-compatta-light.svg +1 -0
  89. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-dark.svg +4 -0
  90. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-light.svg +4 -0
  91. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-mono.svg +4 -0
  92. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-preview.png +0 -0
  93. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-preview.svg +7 -0
  94. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-symbol.svg +4 -0
  95. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-two-storey-dark.svg +7 -0
  96. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-two-storey-light.svg +7 -0
  97. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-two-storey-mono.svg +7 -0
  98. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-two-storey-preview.png +0 -0
  99. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-two-storey-preview.svg +13 -0
  100. asqueel-0.1.0/docs/brand/asqueel/asqueel-a-two-storey-symbol.svg +7 -0
  101. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-comparison.png +0 -0
  102. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-comparison.svg +16 -0
  103. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-sans-dark.svg +6 -0
  104. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-sans-light.svg +6 -0
  105. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-serif-dark.svg +6 -0
  106. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-serif-light.svg +6 -0
  107. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-symbol-dark.svg +6 -0
  108. asqueel-0.1.0/docs/brand/asqueel/asqueel-at-symbol-light.svg +6 -0
  109. asqueel-0.1.0/docs/brand/asqueel/asqueel-identity.png +0 -0
  110. asqueel-0.1.0/docs/brand/asqueel/asqueel-identity.svg +19 -0
  111. asqueel-0.1.0/docs/brand/asqueel/asqueel-logo-dark.svg +6 -0
  112. asqueel-0.1.0/docs/brand/asqueel/asqueel-logo-light.svg +6 -0
  113. asqueel-0.1.0/docs/brand/asqueel/asqueel-logo-mono.svg +6 -0
  114. asqueel-0.1.0/docs/brand/asqueel/asqueel-monogram-dark.svg +7 -0
  115. asqueel-0.1.0/docs/brand/asqueel/asqueel-monogram-light.svg +7 -0
  116. asqueel-0.1.0/docs/brand/asqueel/asqueel-monogram-mono.svg +7 -0
  117. asqueel-0.1.0/docs/brand/asqueel/asqueel-q-comparison.png +0 -0
  118. asqueel-0.1.0/docs/brand/asqueel/asqueel-q-comparison.svg +7 -0
  119. asqueel-0.1.0/docs/brand/asqueel/asqueel-q-dark.svg +4 -0
  120. asqueel-0.1.0/docs/brand/asqueel/asqueel-q-light.svg +4 -0
  121. asqueel-0.1.0/docs/brand/asqueel/asqueel-q-mono.svg +4 -0
  122. asqueel-0.1.0/docs/brand/asqueel/asqueel-q-symbol.svg +4 -0
  123. asqueel-0.1.0/docs/brand/asqueel/asqueel-symbol-dark.svg +6 -0
  124. asqueel-0.1.0/docs/brand/asqueel/asqueel-symbol-light.svg +6 -0
  125. asqueel-0.1.0/docs/brand/asqueel/asqueel-symbol-mono.svg +6 -0
  126. asqueel-0.1.0/docs/brand/asqueel/asqueel-wordmark-dark.svg +7 -0
  127. asqueel-0.1.0/docs/brand/asqueel/asqueel-wordmark-light.svg +7 -0
  128. asqueel-0.1.0/docs/brand/asqueel/asqueel-wordmark-mono.svg +7 -0
  129. asqueel-0.1.0/docs/brand/asqueel/eel-01-morbida-dark.svg +1 -0
  130. asqueel-0.1.0/docs/brand/asqueel/eel-01-morbida-light.svg +1 -0
  131. asqueel-0.1.0/docs/brand/asqueel/eel-02-geometrica-dark.svg +1 -0
  132. asqueel-0.1.0/docs/brand/asqueel/eel-02-geometrica-light.svg +1 -0
  133. asqueel-0.1.0/docs/brand/asqueel/eel-03-slanciata-dark.svg +1 -0
  134. asqueel-0.1.0/docs/brand/asqueel/eel-03-slanciata-light.svg +1 -0
  135. asqueel-0.1.0/docs/brand/asqueel/eel-04-compatta-dark.svg +1 -0
  136. asqueel-0.1.0/docs/brand/asqueel/eel-04-compatta-light.svg +1 -0
  137. asqueel-0.1.0/docs/brand/asqueel/eel-variations.png +0 -0
  138. asqueel-0.1.0/docs/brand/asqueel/eel-variations.svg +1 -0
  139. asqueel-0.1.0/docs/brand/asqueel/index.html +3 -0
  140. asqueel-0.1.0/docs/brand/asqueel/palette.css +9 -0
  141. asqueel-0.1.0/docs/brand/asqueel/palette.json +12 -0
  142. asqueel-0.1.0/docs/brand/asqueel/palette.svg +1 -0
  143. asqueel-0.1.0/docs/brand/asqueel.zip +0 -0
  144. asqueel-0.1.0/docs/compiler/compatibility-cases.md +484 -0
  145. asqueel-0.1.0/docs/compiler/legacy-compatible-spec.md +1195 -0
  146. asqueel-0.1.0/docs/conf.py +113 -0
  147. asqueel-0.1.0/docs/data-adapters-delivery.md +140 -0
  148. asqueel-0.1.0/docs/data-dialects.md +95 -0
  149. asqueel-0.1.0/docs/data-driver.md +81 -0
  150. asqueel-0.1.0/docs/delivery.md +73 -0
  151. asqueel-0.1.0/docs/design/00-sources-and-evidence.md +82 -0
  152. asqueel-0.1.0/docs/design/01-findings-model.md +167 -0
  153. asqueel-0.1.0/docs/design/02-findings-compiler.md +200 -0
  154. asqueel-0.1.0/docs/design/03-findings-runtime-migrations.md +159 -0
  155. asqueel-0.1.0/docs/design/04-objectives.md +178 -0
  156. asqueel-0.1.0/docs/design/05-decisions.md +170 -0
  157. asqueel-0.1.0/docs/design/06-outline-plan.md +320 -0
  158. asqueel-0.1.0/docs/design/07-release-proposal.md +150 -0
  159. asqueel-0.1.0/docs/design/08-data-adapters-plan.md +253 -0
  160. asqueel-0.1.0/docs/design/09-legacy-object-api-review.md +316 -0
  161. asqueel-0.1.0/docs/design/09a-legacy-object-model.md +306 -0
  162. asqueel-0.1.0/docs/design/09b-legacy-query-record-lifecycle.md +502 -0
  163. asqueel-0.1.0/docs/design/09c-legacy-session-write-lifecycle.md +490 -0
  164. asqueel-0.1.0/docs/design/09d-builders-configuration-and-object-rendering.md +151 -0
  165. asqueel-0.1.0/docs/design/10-legacy-coverage-reassessment.md +173 -0
  166. asqueel-0.1.0/docs/design/10a-model-feature-audit.md +304 -0
  167. asqueel-0.1.0/docs/design/10b-compiler-feature-audit.md +328 -0
  168. asqueel-0.1.0/docs/design/10c-runtime-feature-audit.md +86 -0
  169. asqueel-0.1.0/docs/design/11-alias-columns-delivery.md +80 -0
  170. asqueel-0.1.0/docs/design/12-correlated-formulas-delivery.md +100 -0
  171. asqueel-0.1.0/docs/design/13-legacy-test-audit.md +199 -0
  172. asqueel-0.1.0/docs/design/14-legacy-target-and-stages.md +149 -0
  173. asqueel-0.1.0/docs/design/15-operational-plan.md +297 -0
  174. asqueel-0.1.0/docs/design/16-legacy-db-application-boundary.md +186 -0
  175. asqueel-0.1.0/docs/design/17-f1-sessions-delivery.md +99 -0
  176. asqueel-0.1.0/docs/design/18-interrupted-lifecycle-review.md +66 -0
  177. asqueel-0.1.0/docs/design/19-deferred-lifecycle-fixes.md +50 -0
  178. asqueel-0.1.0/docs/design/README.md +103 -0
  179. asqueel-0.1.0/docs/design/evidence/catalog_legacy_sql_tests.py +67 -0
  180. asqueel-0.1.0/docs/design/evidence/deferred_queue_oracle.json +73 -0
  181. asqueel-0.1.0/docs/design/evidence/deferred_queue_oracle.py +109 -0
  182. asqueel-0.1.0/docs/design/evidence/f1_legacy_oracle.json +26 -0
  183. asqueel-0.1.0/docs/design/evidence/f1_legacy_oracle.py +116 -0
  184. asqueel-0.1.0/docs/design/evidence/legacy-sql-tests-index.md +1162 -0
  185. asqueel-0.1.0/docs/design/evidence/legacy-sql-tests.json +8259 -0
  186. asqueel-0.1.0/docs/design/evidence/legacy_session_probes.py +193 -0
  187. asqueel-0.1.0/docs/design/evidence/native_binding_probes.json +67 -0
  188. asqueel-0.1.0/docs/design/evidence/native_binding_probes.py +53 -0
  189. asqueel-0.1.0/docs/design/evidence/native_feature_probes.json +119 -0
  190. asqueel-0.1.0/docs/design/evidence/native_feature_probes.py +93 -0
  191. asqueel-0.1.0/docs/design/evidence/takeover_deferred_probes.py +55 -0
  192. asqueel-0.1.0/docs/documentation.md +45 -0
  193. asqueel-0.1.0/docs/ecosystem-alignment.md +79 -0
  194. asqueel-0.1.0/docs/grammar.md +355 -0
  195. asqueel-0.1.0/docs/guide/_examples/shop_tutorial.py +161 -0
  196. asqueel-0.1.0/docs/guide/adapters.md +160 -0
  197. asqueel-0.1.0/docs/guide/cheatsheet.md +90 -0
  198. asqueel-0.1.0/docs/guide/compiler.md +265 -0
  199. asqueel-0.1.0/docs/guide/concepts.md +118 -0
  200. asqueel-0.1.0/docs/guide/configuration-grammars.md +97 -0
  201. asqueel-0.1.0/docs/guide/configuration.md +146 -0
  202. asqueel-0.1.0/docs/guide/environment.md +188 -0
  203. asqueel-0.1.0/docs/guide/for-django.md +69 -0
  204. asqueel-0.1.0/docs/guide/for-peewee.md +35 -0
  205. asqueel-0.1.0/docs/guide/for-sqlalchemy.md +72 -0
  206. asqueel-0.1.0/docs/guide/formulas.md +142 -0
  207. asqueel-0.1.0/docs/guide/hooks.md +122 -0
  208. asqueel-0.1.0/docs/guide/importing.md +138 -0
  209. asqueel-0.1.0/docs/guide/installation.md +56 -0
  210. asqueel-0.1.0/docs/guide/legacy.md +92 -0
  211. asqueel-0.1.0/docs/guide/limitations.md +219 -0
  212. asqueel-0.1.0/docs/guide/low-level-runtime.md +162 -0
  213. asqueel-0.1.0/docs/guide/migrations.md +149 -0
  214. asqueel-0.1.0/docs/guide/models.md +194 -0
  215. asqueel-0.1.0/docs/guide/overview.md +181 -0
  216. asqueel-0.1.0/docs/guide/queries.md +230 -0
  217. asqueel-0.1.0/docs/guide/quickstart.md +91 -0
  218. asqueel-0.1.0/docs/guide/row-policies.md +255 -0
  219. asqueel-0.1.0/docs/guide/transactions.md +206 -0
  220. asqueel-0.1.0/docs/guide/troubleshooting.md +91 -0
  221. asqueel-0.1.0/docs/guide/tutorial.md +190 -0
  222. asqueel-0.1.0/docs/guide/writes.md +125 -0
  223. asqueel-0.1.0/docs/index.rst +107 -0
  224. asqueel-0.1.0/docs/legacy-sql-compiler-analysis.md +243 -0
  225. asqueel-0.1.0/docs/native-compiler.md +126 -0
  226. asqueel-0.1.0/docs/native-composition.md +85 -0
  227. asqueel-0.1.0/docs/native-model.md +131 -0
  228. asqueel-0.1.0/docs/native-runtime.md +82 -0
  229. asqueel-0.1.0/docs/native-v1-delivery.md +125 -0
  230. asqueel-0.1.0/docs/row-policies.md +126 -0
  231. asqueel-0.1.0/docs/sql-environment.md +101 -0
  232. asqueel-0.1.0/docs/synchronous-policies-delivery.md +63 -0
  233. asqueel-0.1.0/pyproject.toml +120 -0
  234. asqueel-0.1.0/requirements/asgi.in +2 -0
  235. asqueel-0.1.0/requirements/asgi.txt +176 -0
  236. asqueel-0.1.0/requirements/core.in +15 -0
  237. asqueel-0.1.0/requirements/core.txt +122 -0
  238. asqueel-0.1.0/requirements/routes.in +2 -0
  239. asqueel-0.1.0/requirements/routes.txt +136 -0
  240. asqueel-0.1.0/scripts/check_distribution.py +26 -0
  241. asqueel-0.1.0/scripts/check_installed.py +84 -0
  242. asqueel-0.1.0/scripts/demo_native.py +66 -0
  243. asqueel-0.1.0/src/asqueel/__init__.py +82 -0
  244. asqueel-0.1.0/src/asqueel/application.py +278 -0
  245. asqueel-0.1.0/src/asqueel/application_table.py +401 -0
  246. asqueel-0.1.0/src/asqueel/builder.py +133 -0
  247. asqueel-0.1.0/src/asqueel/catalog.py +143 -0
  248. asqueel-0.1.0/src/asqueel/catalog_provider.py +30 -0
  249. asqueel-0.1.0/src/asqueel/common.py +22 -0
  250. asqueel-0.1.0/src/asqueel/compiler.py +739 -0
  251. asqueel-0.1.0/src/asqueel/configuration.py +113 -0
  252. asqueel-0.1.0/src/asqueel/contracts.py +181 -0
  253. asqueel-0.1.0/src/asqueel/dialects/__init__.py +1 -0
  254. asqueel-0.1.0/src/asqueel/dialects/base.py +15 -0
  255. asqueel-0.1.0/src/asqueel/dialects/postgres.py +241 -0
  256. asqueel-0.1.0/src/asqueel/drivers/__init__.py +1 -0
  257. asqueel-0.1.0/src/asqueel/drivers/base.py +26 -0
  258. asqueel-0.1.0/src/asqueel/drivers/psycopg.py +90 -0
  259. asqueel-0.1.0/src/asqueel/elements.py +427 -0
  260. asqueel-0.1.0/src/asqueel/emitter.py +252 -0
  261. asqueel-0.1.0/src/asqueel/environment.py +132 -0
  262. asqueel-0.1.0/src/asqueel/examples/__init__.py +2 -0
  263. asqueel-0.1.0/src/asqueel/grammar_doc.py +258 -0
  264. asqueel-0.1.0/src/asqueel/importers.py +225 -0
  265. asqueel-0.1.0/src/asqueel/migration.py +251 -0
  266. asqueel-0.1.0/src/asqueel/model.py +385 -0
  267. asqueel-0.1.0/src/asqueel/object_renderer.py +29 -0
  268. asqueel-0.1.0/src/asqueel/projection.py +183 -0
  269. asqueel-0.1.0/src/asqueel/py.typed +0 -0
  270. asqueel-0.1.0/src/asqueel/query_plan.py +110 -0
  271. asqueel-0.1.0/src/asqueel/reader.py +417 -0
  272. asqueel-0.1.0/src/asqueel/renderer.py +16 -0
  273. asqueel-0.1.0/src/asqueel/runtime.py +188 -0
  274. asqueel-0.1.0/src/asqueel/session.py +279 -0
  275. asqueel-0.1.0/src/asqueel/triggers.py +59 -0
  276. asqueel-0.1.0/src/asqueel/validators.py +374 -0
  277. asqueel-0.1.0/tests/__init__.py +1 -0
  278. asqueel-0.1.0/tests/adapter_compiler/test_locking.py +84 -0
  279. asqueel-0.1.0/tests/adapter_compiler/test_plans.py +139 -0
  280. asqueel-0.1.0/tests/adapter_dialect/__init__.py +0 -0
  281. asqueel-0.1.0/tests/adapter_dialect/test_postgres.py +141 -0
  282. asqueel-0.1.0/tests/adapter_dialect/test_postgres_execution.py +27 -0
  283. asqueel-0.1.0/tests/adapter_driver/test_driver.py +162 -0
  284. asqueel-0.1.0/tests/adapter_integration/__init__.py +0 -0
  285. asqueel-0.1.0/tests/adapter_integration/test_boundaries.py +101 -0
  286. asqueel-0.1.0/tests/adapter_integration/test_postgres_pipeline.py +43 -0
  287. asqueel-0.1.0/tests/application_config/__init__.py +0 -0
  288. asqueel-0.1.0/tests/application_config/test_application.py +106 -0
  289. asqueel-0.1.0/tests/application_config/test_configuration.py +146 -0
  290. asqueel-0.1.0/tests/application_config/test_formula_bindings.py +46 -0
  291. asqueel-0.1.0/tests/application_integration/test_alias_columns.py +125 -0
  292. asqueel-0.1.0/tests/application_integration/test_formula_subqueries.py +153 -0
  293. asqueel-0.1.0/tests/application_integration/test_legacy_alias_oracle.py +58 -0
  294. asqueel-0.1.0/tests/application_integration/test_postgres_application.py +206 -0
  295. asqueel-0.1.0/tests/application_integration/test_postgres_policies.py +78 -0
  296. asqueel-0.1.0/tests/application_integration/test_write_hooks.py +267 -0
  297. asqueel-0.1.0/tests/application_session/test_deferred.py +271 -0
  298. asqueel-0.1.0/tests/application_session/test_named_connections.py +178 -0
  299. asqueel-0.1.0/tests/application_session/test_session.py +297 -0
  300. asqueel-0.1.0/tests/application_table/test_handles.py +356 -0
  301. asqueel-0.1.0/tests/conftest.py +156 -0
  302. asqueel-0.1.0/tests/documentation/test_examples.py +85 -0
  303. asqueel-0.1.0/tests/environment/test_environment.py +136 -0
  304. asqueel-0.1.0/tests/environment/test_runtime_environment.py +143 -0
  305. asqueel-0.1.0/tests/invc_model/__init__.py +1 -0
  306. asqueel-0.1.0/tests/invc_model/schema.py +16 -0
  307. asqueel-0.1.0/tests/invc_model/tables/__init__.py +1 -0
  308. asqueel-0.1.0/tests/invc_model/tables/customer.py +13 -0
  309. asqueel-0.1.0/tests/invc_model/tables/invoice.py +27 -0
  310. asqueel-0.1.0/tests/invc_model/tables/invoice_row.py +32 -0
  311. asqueel-0.1.0/tests/model_policies/__init__.py +0 -0
  312. asqueel-0.1.0/tests/model_policies/test_declarations.py +121 -0
  313. asqueel-0.1.0/tests/native_compiler/__init__.py +0 -0
  314. asqueel-0.1.0/tests/native_compiler/test_aliases.py +150 -0
  315. asqueel-0.1.0/tests/native_compiler/test_compiler.py +218 -0
  316. asqueel-0.1.0/tests/native_compiler/test_policies.py +199 -0
  317. asqueel-0.1.0/tests/native_compiler/test_subqueries.py +235 -0
  318. asqueel-0.1.0/tests/native_compiler/test_subquery_review.py +30 -0
  319. asqueel-0.1.0/tests/native_composition/__init__.py +0 -0
  320. asqueel-0.1.0/tests/native_composition/test_composition.py +171 -0
  321. asqueel-0.1.0/tests/native_integration/__init__.py +0 -0
  322. asqueel-0.1.0/tests/native_integration/test_postgres_vertical.py +153 -0
  323. asqueel-0.1.0/tests/native_integration/test_relational_policies.py +84 -0
  324. asqueel-0.1.0/tests/native_integration/test_row_policies.py +118 -0
  325. asqueel-0.1.0/tests/native_model/__init__.py +0 -0
  326. asqueel-0.1.0/tests/native_model/test_alias_model.py +139 -0
  327. asqueel-0.1.0/tests/native_model/test_legacy_formula_declarations.py +64 -0
  328. asqueel-0.1.0/tests/native_model/test_model.py +98 -0
  329. asqueel-0.1.0/tests/native_model/test_postgres.py +111 -0
  330. asqueel-0.1.0/tests/native_model/test_subquery_model.py +81 -0
  331. asqueel-0.1.0/tests/native_runtime/__init__.py +0 -0
  332. asqueel-0.1.0/tests/native_runtime/test_postgres.py +45 -0
  333. asqueel-0.1.0/tests/native_runtime/test_runtime.py +251 -0
  334. asqueel-0.1.0/tests/native_support.py +19 -0
  335. asqueel-0.1.0/tests/oracles/genropy_video_subset_orm.json +103 -0
  336. asqueel-0.1.0/tests/test_ecosystem_contract.py +39 -0
  337. asqueel-0.1.0/tests/test_grammar.py +387 -0
  338. asqueel-0.1.0/tests/test_invoice_model.py +37 -0
  339. asqueel-0.1.0/tests/test_skeleton.py +24 -0
  340. asqueel-0.1.0/tests/test_wf_phase11_public_grammar.py +27 -0
  341. asqueel-0.1.0/tests/test_wf_phase12_model_boundaries.py +119 -0
  342. asqueel-0.1.0/tests/test_wf_phase13_reverse_semantics.py +137 -0
  343. asqueel-0.1.0/tests/test_wf_phase14_public_surface.py +100 -0
  344. asqueel-0.1.0/tests/test_wf_phase16_genropy_oracles.py +140 -0
  345. asqueel-0.1.0/tests/test_wf_phase17_catalog.py +87 -0
  346. asqueel-0.1.0/tests/test_wf_phase18_explicit_collections.py +146 -0
  347. asqueel-0.1.0/tests/test_wf_phase19_invoice_model.py +82 -0
  348. asqueel-0.1.0/tests/test_wf_phase20_strict_edges.py +165 -0
  349. asqueel-0.1.0/tests/test_wf_phase21_delivery.py +55 -0
  350. asqueel-0.1.0/tests/test_wf_phase2_grammar.py +171 -0
  351. asqueel-0.1.0/tests/test_wf_phase3_validators.py +174 -0
  352. asqueel-0.1.0/tests/test_wf_phase4_renderer.py +286 -0
  353. asqueel-0.1.0/tests/test_wf_phase5_integration.py +111 -0
  354. asqueel-0.1.0/tests/test_wf_phase6_reader.py +211 -0
  355. asqueel-0.1.0/tests/test_wf_phase7_emitter.py +136 -0
  356. asqueel-0.1.0/tests/test_wf_phase8_doc.py +54 -0
@@ -0,0 +1,51 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Distribution / packaging
7
+ .Python
8
+ build/
9
+ develop-eggs/
10
+ dist/
11
+ downloads/
12
+ eggs/
13
+ .eggs/
14
+ lib/
15
+ lib64/
16
+ parts/
17
+ sdist/
18
+ var/
19
+ wheels/
20
+ *.egg-info/
21
+ .installed.cfg
22
+ *.egg
23
+
24
+ # Testing
25
+ .pytest_cache/
26
+ .coverage
27
+ htmlcov/
28
+ .tox/
29
+
30
+ # Virtual environments
31
+ venv/
32
+ env/
33
+ ENV/
34
+
35
+ # IDEs
36
+ .vscode/
37
+ .idea/
38
+ *.swp
39
+ *.swo
40
+ *~
41
+
42
+ # Temporary files
43
+ temp/
44
+ tmp/
45
+ *.tmp
46
+
47
+ # Sphinx documentation
48
+ docs/_build/
49
+
50
+ # macOS filesystem metadata
51
+ .DS_Store
@@ -0,0 +1,20 @@
1
+ # Read the Docs configuration for asqueel.
2
+ # https://docs.readthedocs.io/en/stable/config-file/v2.html
3
+
4
+ version: 2
5
+
6
+ build:
7
+ os: ubuntu-24.04
8
+ tools:
9
+ python: "3.12"
10
+
11
+ sphinx:
12
+ configuration: docs/conf.py
13
+ fail_on_warning: true
14
+
15
+ python:
16
+ install:
17
+ - method: pip
18
+ path: .
19
+ extra_requirements:
20
+ - docs
asqueel-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Support. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Softwell Srl, Milano, Italy
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
asqueel-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,160 @@
1
+ Metadata-Version: 2.5
2
+ Name: asqueel
3
+ Version: 0.1.0
4
+ Summary: SQL model, PostgreSQL compiler and synchronous runtime
5
+ Project-URL: Documentation, https://github.com/asqueel-org/asqueel/tree/main/docs
6
+ Project-URL: Homepage, https://github.com/asqueel-org/asqueel
7
+ Project-URL: Repository, https://github.com/asqueel-org/asqueel
8
+ Project-URL: Issues, https://github.com/asqueel-org/asqueel/issues
9
+ Author: Genropy Team
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: builder,database,ddl,genro,genropy,schema,sql
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.11
23
+ Requires-Dist: genro-bag>=0.27.0
24
+ Requires-Dist: genro-builders>=0.27.0
25
+ Provides-Extra: dev
26
+ Requires-Dist: asqueel-migration[postgresql,validation]>=0.1.2; extra == 'dev'
27
+ Requires-Dist: mypy>=1.0; extra == 'dev'
28
+ Requires-Dist: psycopg[binary]>=3.3.6; extra == 'dev'
29
+ Requires-Dist: pytest-cov>=4.0; extra == 'dev'
30
+ Requires-Dist: pytest>=8.4; extra == 'dev'
31
+ Requires-Dist: ruff>=0.1.0; extra == 'dev'
32
+ Provides-Extra: docs
33
+ Requires-Dist: myst-parser>=2.0; extra == 'docs'
34
+ Requires-Dist: sphinx-autodoc-typehints>=2.0; extra == 'docs'
35
+ Requires-Dist: sphinx-rtd-theme>=2.0; extra == 'docs'
36
+ Requires-Dist: sphinx>=7.0; extra == 'docs'
37
+ Requires-Dist: sphinxcontrib-mermaid>=1.0; extra == 'docs'
38
+ Provides-Extra: migration
39
+ Requires-Dist: asqueel-migration>=0.1.2; extra == 'migration'
40
+ Provides-Extra: postgresql
41
+ Requires-Dist: psycopg[binary]>=3.3.6; extra == 'postgresql'
42
+ Description-Content-Type: text/markdown
43
+
44
+ # Asqueel
45
+
46
+ <picture>
47
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/asqueel-org/asqueel/main/assets/asqueel/svg/asqueel-wordmark-inverse.svg">
48
+ <img src="https://raw.githubusercontent.com/asqueel-org/asqueel/main/assets/asqueel/svg/asqueel-wordmark-primary.svg" alt="Asqueel" width="360">
49
+ </picture>
50
+
51
+ Define SQL models in Python, compile parameterized queries, and work with
52
+ PostgreSQL through a synchronous API. Asqueel keeps logical names, physical
53
+ database names, relationships, and column UI metadata in a shared model.
54
+
55
+ The developer manual describes the intended delivery contract, including designed
56
+ features. See [Current status](docs/guide/limitations.md) for implementation
57
+ availability and open decisions.
58
+
59
+ ## Install
60
+
61
+ ```sh
62
+ python -m pip install "asqueel[postgresql]"
63
+ ```
64
+
65
+ Use `asqueel` for model building and offline compilation only. Add the
66
+ `migration` extra to use the separate schema migration integration. From a
67
+ checkout, run `python -m pip install -e ".[postgresql]"` in the repository root.
68
+
69
+ ## Build an application database
70
+
71
+ Declare the model and connection configuration in one recipe:
72
+
73
+ ```python
74
+ from asqueel import SqlDatabaseConfig, build_database
75
+
76
+
77
+ class Shop(SqlDatabaseConfig):
78
+ def main(self, root):
79
+ db = root.db("shop", conninfo="dbname=shop")
80
+ customer = db.schemas().schema("sales").tables().table("customer", pkey="id")
81
+ columns = customer.columns()
82
+ columns.column("id", dtype="L")
83
+ columns.column("name", dtype="T", x_ui={"label": "Customer name"})
84
+
85
+
86
+ with build_database(Shop) as db:
87
+ customer = db.table("sales.customer")
88
+ query = customer.query(
89
+ columns="$id, $name", where="$id >= :minimum_id",
90
+ params={"minimum_id": 1}, order_by="$id",
91
+ )
92
+ print(query.sqltext) # Compiles without opening a connection.
93
+ ```
94
+
95
+ Against an existing `sales.customer` table, call `query.fetch()` to get a list
96
+ of dictionaries. Table writes and reads share a lazy session. Use `db.commit()`
97
+ and `db.rollback()`, or group operations with `with db.transaction():`.
98
+ Closing the database rolls back pending work; `with db:` does not commit it.
99
+
100
+ Construction does not connect or create tables. The
101
+ [runnable quickstart](docs/guide/quickstart.md) includes explicit disposable
102
+ schema setup and cleanup. [Configuration](docs/guide/configuration.md) explains
103
+ layered recipes and live table objects. The separate compiler and low-level
104
+ runtime remain available for advanced integrations.
105
+
106
+ Query expressions are application code; pass external values through parameters
107
+ rather than SQL interpolation.
108
+
109
+ ## Learn and use Asqueel
110
+
111
+ Start with [What is Asqueel?](docs/guide/overview.md) and
112
+ [the object model](docs/guide/concepts.md), run the
113
+ [quickstart](docs/guide/quickstart.md), then follow the
114
+ [customers and invoices tutorial](docs/guide/tutorial.md). The tutorial includes a
115
+ [complete runnable script](docs/guide/_examples/shop_tutorial.py) with assertions,
116
+ transaction examples and disposable-schema cleanup.
117
+
118
+ | You want to… | Read |
119
+ |---|---|
120
+ | Configure an application and render live objects | [Configuration](docs/guide/configuration.md) |
121
+ | Declare names, relations, aliases and UI metadata | [Models](docs/guide/models.md) |
122
+ | Read data or load exactly one record | [Queries](docs/guide/queries.md) |
123
+ | Insert, update or delete | [Writes](docs/guide/writes.md) and [transactions](docs/guide/transactions.md) |
124
+ | Add business behavior | [Table hooks](docs/guide/hooks.md) |
125
+ | Define computed values and correlated subqueries | [Formulas](docs/guide/formulas.md) |
126
+ | Scope data by organization, draft or deletion state | [Environment](docs/guide/environment.md) and [row policies](docs/guide/row-policies.md) |
127
+ | Start from an existing database or manage its schema | [Importing](docs/guide/importing.md) and [migrations](docs/guide/migrations.md) |
128
+ | Come from Genropy | [For Genropy users](docs/guide/legacy.md), including agreed differences |
129
+ | Come from SQLAlchemy | [For SQLAlchemy users](docs/guide/for-sqlalchemy.md) |
130
+ | Come from Django | [For Django users](docs/guide/for-django.md) |
131
+ | Come from Peewee | [For Peewee users](docs/guide/for-peewee.md) |
132
+ | Look up a call or diagnose a problem | [API cheat sheet](docs/guide/cheatsheet.md) and [troubleshooting](docs/guide/troubleshooting.md) |
133
+
134
+ For advanced integration, see [cascading grammars](docs/guide/configuration-grammars.md),
135
+ [the compiler](docs/guide/compiler.md), [low-level execution](docs/guide/low-level-runtime.md)
136
+ and [adapters](docs/guide/adapters.md).
137
+
138
+ The public Sphinx site contains these English guides and the API reference.
139
+ To build it locally:
140
+
141
+ ```sh
142
+ python -m pip install -e ".[docs]"
143
+ python -m sphinx -W --keep-going -b html docs docs/_build/html
144
+ ```
145
+
146
+ Open `docs/_build/html/index.html`. Internal design notes remain in the repository
147
+ and are excluded from the public documentation build.
148
+
149
+ ## Development checkout
150
+
151
+ For development with the migration integration, install its checkout and Asqueel
152
+ with the development dependencies (replace the example path with your checkout):
153
+
154
+ ```sh
155
+ pip install -e "../asqueel-migration[postgresql,validation]" -e ".[dev]"
156
+ ```
157
+
158
+ ## License
159
+
160
+ Apache License 2.0 — Copyright Softwell S.r.l.
@@ -0,0 +1,117 @@
1
+ # Asqueel
2
+
3
+ <picture>
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/asqueel-org/asqueel/main/assets/asqueel/svg/asqueel-wordmark-inverse.svg">
5
+ <img src="https://raw.githubusercontent.com/asqueel-org/asqueel/main/assets/asqueel/svg/asqueel-wordmark-primary.svg" alt="Asqueel" width="360">
6
+ </picture>
7
+
8
+ Define SQL models in Python, compile parameterized queries, and work with
9
+ PostgreSQL through a synchronous API. Asqueel keeps logical names, physical
10
+ database names, relationships, and column UI metadata in a shared model.
11
+
12
+ The developer manual describes the intended delivery contract, including designed
13
+ features. See [Current status](docs/guide/limitations.md) for implementation
14
+ availability and open decisions.
15
+
16
+ ## Install
17
+
18
+ ```sh
19
+ python -m pip install "asqueel[postgresql]"
20
+ ```
21
+
22
+ Use `asqueel` for model building and offline compilation only. Add the
23
+ `migration` extra to use the separate schema migration integration. From a
24
+ checkout, run `python -m pip install -e ".[postgresql]"` in the repository root.
25
+
26
+ ## Build an application database
27
+
28
+ Declare the model and connection configuration in one recipe:
29
+
30
+ ```python
31
+ from asqueel import SqlDatabaseConfig, build_database
32
+
33
+
34
+ class Shop(SqlDatabaseConfig):
35
+ def main(self, root):
36
+ db = root.db("shop", conninfo="dbname=shop")
37
+ customer = db.schemas().schema("sales").tables().table("customer", pkey="id")
38
+ columns = customer.columns()
39
+ columns.column("id", dtype="L")
40
+ columns.column("name", dtype="T", x_ui={"label": "Customer name"})
41
+
42
+
43
+ with build_database(Shop) as db:
44
+ customer = db.table("sales.customer")
45
+ query = customer.query(
46
+ columns="$id, $name", where="$id >= :minimum_id",
47
+ params={"minimum_id": 1}, order_by="$id",
48
+ )
49
+ print(query.sqltext) # Compiles without opening a connection.
50
+ ```
51
+
52
+ Against an existing `sales.customer` table, call `query.fetch()` to get a list
53
+ of dictionaries. Table writes and reads share a lazy session. Use `db.commit()`
54
+ and `db.rollback()`, or group operations with `with db.transaction():`.
55
+ Closing the database rolls back pending work; `with db:` does not commit it.
56
+
57
+ Construction does not connect or create tables. The
58
+ [runnable quickstart](docs/guide/quickstart.md) includes explicit disposable
59
+ schema setup and cleanup. [Configuration](docs/guide/configuration.md) explains
60
+ layered recipes and live table objects. The separate compiler and low-level
61
+ runtime remain available for advanced integrations.
62
+
63
+ Query expressions are application code; pass external values through parameters
64
+ rather than SQL interpolation.
65
+
66
+ ## Learn and use Asqueel
67
+
68
+ Start with [What is Asqueel?](docs/guide/overview.md) and
69
+ [the object model](docs/guide/concepts.md), run the
70
+ [quickstart](docs/guide/quickstart.md), then follow the
71
+ [customers and invoices tutorial](docs/guide/tutorial.md). The tutorial includes a
72
+ [complete runnable script](docs/guide/_examples/shop_tutorial.py) with assertions,
73
+ transaction examples and disposable-schema cleanup.
74
+
75
+ | You want to… | Read |
76
+ |---|---|
77
+ | Configure an application and render live objects | [Configuration](docs/guide/configuration.md) |
78
+ | Declare names, relations, aliases and UI metadata | [Models](docs/guide/models.md) |
79
+ | Read data or load exactly one record | [Queries](docs/guide/queries.md) |
80
+ | Insert, update or delete | [Writes](docs/guide/writes.md) and [transactions](docs/guide/transactions.md) |
81
+ | Add business behavior | [Table hooks](docs/guide/hooks.md) |
82
+ | Define computed values and correlated subqueries | [Formulas](docs/guide/formulas.md) |
83
+ | Scope data by organization, draft or deletion state | [Environment](docs/guide/environment.md) and [row policies](docs/guide/row-policies.md) |
84
+ | Start from an existing database or manage its schema | [Importing](docs/guide/importing.md) and [migrations](docs/guide/migrations.md) |
85
+ | Come from Genropy | [For Genropy users](docs/guide/legacy.md), including agreed differences |
86
+ | Come from SQLAlchemy | [For SQLAlchemy users](docs/guide/for-sqlalchemy.md) |
87
+ | Come from Django | [For Django users](docs/guide/for-django.md) |
88
+ | Come from Peewee | [For Peewee users](docs/guide/for-peewee.md) |
89
+ | Look up a call or diagnose a problem | [API cheat sheet](docs/guide/cheatsheet.md) and [troubleshooting](docs/guide/troubleshooting.md) |
90
+
91
+ For advanced integration, see [cascading grammars](docs/guide/configuration-grammars.md),
92
+ [the compiler](docs/guide/compiler.md), [low-level execution](docs/guide/low-level-runtime.md)
93
+ and [adapters](docs/guide/adapters.md).
94
+
95
+ The public Sphinx site contains these English guides and the API reference.
96
+ To build it locally:
97
+
98
+ ```sh
99
+ python -m pip install -e ".[docs]"
100
+ python -m sphinx -W --keep-going -b html docs docs/_build/html
101
+ ```
102
+
103
+ Open `docs/_build/html/index.html`. Internal design notes remain in the repository
104
+ and are excluded from the public documentation build.
105
+
106
+ ## Development checkout
107
+
108
+ For development with the migration integration, install its checkout and Asqueel
109
+ with the development dependencies (replace the example path with your checkout):
110
+
111
+ ```sh
112
+ pip install -e "../asqueel-migration[postgresql,validation]" -e ".[dev]"
113
+ ```
114
+
115
+ ## License
116
+
117
+ Apache License 2.0 — Copyright Softwell S.r.l.
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><title>Asqueel</title><rect width="512" height="512" rx="0" fill="#F5EBDD"/><g transform="translate(49 63) scale(4.7)"><title>Asqueel — monogramma a anguilla</title><g transform="translate(8 10)"><defs><mask id="eye-symbol-light" maskUnits="userSpaceOnUse" x="-10" y="-10" width="100" height="90"><rect x="-10" y="-10" width="100" height="90" fill="white"/><circle cx="13.7" cy="11.4" r="1.5" fill="black"/></mask></defs>
2
+ <g mask="url(#eye-symbol-light)">
3
+ <path d="M49 25 C32 28 7 29 6 46 C4 65 31 69 49 51 L49 43 C37 61 17 60 17 47 C17 36 32 32 49 30Z" fill="#571F2B"/>
4
+ <path d="M13 8 C20 -2 43 -5 54 7 C61 15 58 35 58 48 L48 49 L48 19 C48 6 41 3 32 3 C23 3 22 9 20 14Z" fill="#571F2B"/>
5
+ <path d="M48 46 L58 46 C57 56 64 58 72 53 L73 56 C63 66 48 63 48 51Z" fill="#C78249"/>
6
+ <path d="M14 5 C21 3 25 10 21 16 C18 22 10 24 9 17 C8 13 10 7 14 5Z" fill="#571F2B"/>
7
+ </g></g></g></svg>
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><title>Asqueel</title><rect width="512" height="512" rx="100" fill="#F5EBDD"/><g transform="translate(49 63) scale(4.7)"><title>Asqueel — monogramma a anguilla</title><g transform="translate(8 10)"><defs><mask id="eye-symbol-light" maskUnits="userSpaceOnUse" x="-10" y="-10" width="100" height="90"><rect x="-10" y="-10" width="100" height="90" fill="white"/><circle cx="13.7" cy="11.4" r="1.5" fill="black"/></mask></defs>
2
+ <g mask="url(#eye-symbol-light)">
3
+ <path d="M49 25 C32 28 7 29 6 46 C4 65 31 69 49 51 L49 43 C37 61 17 60 17 47 C17 36 32 32 49 30Z" fill="#571F2B"/>
4
+ <path d="M13 8 C20 -2 43 -5 54 7 C61 15 58 35 58 48 L48 49 L48 19 C48 6 41 3 32 3 C23 3 22 9 20 14Z" fill="#571F2B"/>
5
+ <path d="M48 46 L58 46 C57 56 64 58 72 53 L73 56 C63 66 48 63 48 51Z" fill="#C78249"/>
6
+ <path d="M14 5 C21 3 25 10 21 16 C18 22 10 24 9 17 C8 13 10 7 14 5Z" fill="#571F2B"/>
7
+ </g></g></g></svg>
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "Asqueel",
3
+ "short_name": "Asqueel",
4
+ "icons": [
5
+ {
6
+ "src": "android-chrome-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png",
9
+ "purpose": "any"
10
+ },
11
+ {
12
+ "src": "android-chrome-512x512.png",
13
+ "sizes": "512x512",
14
+ "type": "image/png",
15
+ "purpose": "any"
16
+ }
17
+ ],
18
+ "theme_color": "#571F2B",
19
+ "background_color": "#F5EBDD",
20
+ "display": "standalone"
21
+ }
@@ -0,0 +1,7 @@
1
+ <!doctype html><html lang="it"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Asqueel — Asset approvati</title><link rel="stylesheet" href="palette/asqueel-palette.css"><style>*{box-sizing:border-box}body{margin:0;background:#F5EBDD;color:#2C2223;font:16px/1.6 Arial,sans-serif}main{max-width:1100px;margin:auto;padding:48px 28px}h1,h2{font-family:Georgia,serif;font-weight:normal}h1{font-size:40px}h2{margin-top:45px}a{color:#79323D}img{max-width:100%;display:block}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.card{padding:32px;border-radius:12px;background:#fffaf3;border:1px solid #571F2B20}.dark{background:#2C2223;color:#F5EBDD}.dark a{color:#D5AE65}.symbol{width:150px;margin:10px auto 25px}.swatches{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}.color{height:90px;border:1px solid #0001;border-radius:8px}.small{font-size:13px}code,pre{font:13px/1.7 monospace}pre{overflow:auto;padding:20px;background:#fffaf3;border-radius:10px}table{border-collapse:collapse;width:100%}td,th{text-align:left;padding:10px;border-bottom:1px solid #571F2B20}@media(max-width:650px){.grid{grid-template-columns:1fr}.swatches{grid-template-columns:repeat(3,1fr)}} </style><main><p class="small">ASQUEEL / ASSET APPROVATI</p><h1>La scritta e la sua iniziale.</h1><p>La scritta è <strong>asqueel</strong>, tutta minuscola e compatta. Il logo autonomo è la stessa a-anguilla ingrandita: anellino a sinistra, testa sopra, corpo a destra e grazia rame.</p><p><a href="../asqueel-assets.zip">Scarica il pacchetto ZIP</a> · <a href="manifest.json">Elenco completo dei file</a></p><div class="grid"><div class="card"><img src="svg/asqueel-wordmark-primary.svg" alt="Scritta asqueel"><img class="symbol" src="svg/asqueel-monogram-primary.svg" alt="Logo a anguilla"><a href="svg/asqueel-wordmark-primary.svg">Scritta SVG</a> · <a href="svg/asqueel-monogram-primary.svg">Logo SVG</a></div><div class="card dark"><img src="svg/asqueel-wordmark-inverse.svg" alt="Scritta su fondo scuro"><img class="symbol" src="svg/asqueel-monogram-inverse.svg" alt="Logo su fondo scuro"><a href="svg/asqueel-wordmark-inverse.svg">Scritta inversa</a> · <a href="svg/asqueel-monogram-inverse.svg">Logo inverso</a></div></div><h2>File e formati</h2><table><tr><th>Cartella</th><th>Contenuto</th></tr><tr><td>svg/</td><td>Scritta e monogramma: primary, inverse, burgundy, black, white. Sfondo trasparente; lettering in tracciati.</td></tr><tr><td>png/</td><td>Scritta a 512, 1024 e 2048 px di larghezza. Logo su tela quadrata a 64, 128, 256, 512 e 1024 px. Cinque varianti, tutte trasparenti.</td></tr><tr><td>icons/</td><td>Favicon SVG e ICO (16, 32, 48 px), PNG 16/32/48, Apple Touch 180, icone 192 e 512, webmanifest. Fondo pergamena.</td></tr><tr><td>social/</td><td>Immagine 1200 × 630, SVG e PNG.</td></tr><tr><td>palette/</td><td>Cartella colori SVG, CSS, JSON e GIMP GPL.</td></tr><tr><td>preview/</td><td>Presentazione PNG e SVG.</td></tr></table><h2>Palette</h2><div class="swatches"><div><div class="color" style="background:#571F2B"></div><div class="small">oxblood<br><code>#571F2B</code></div></div><div><div class="color" style="background:#79323D"></div><div class="small">wine<br><code>#79323D</code></div></div><div><div class="color" style="background:#AD5036"></div><div class="small">rust<br><code>#AD5036</code></div></div><div><div class="color" style="background:#C78249"></div><div class="small">copper<br><code>#C78249</code></div></div><div><div class="color" style="background:#D5AE65"></div><div class="small">ochre<br><code>#D5AE65</code></div></div><div><div class="color" style="background:#F5EBDD"></div><div class="small">parchment<br><code>#F5EBDD</code></div></div><div><div class="color" style="background:#2C2223"></div><div class="small">ink<br><code>#2C2223</code></div></div></div><h2>Uso</h2><p>Usa <strong>primary</strong> su fondi chiari e <strong>inverse</strong> su fondi scuri. Le versioni burgundy, black e white servono per riproduzioni a un solo colore. La scritta e il monogramma sono due applicazioni della stessa forma: non aggiungere un secondo simbolo davanti alla scritta.</p><p>Mantieni le proporzioni e uno spazio libero intorno al marchio pari almeno all’altezza dell’anellino della a. Come punto di partenza usa la scritta da 160 px di larghezza e il monogramma da 32 px; a 16 px il piccolo occhio può perdere definizione.</p><p>Rosso cupo e rame identificano il marchio; pergamena è il fondo principale. Ruggine e ocra sono colori di supporto. Non usare gli accenti chiari per testo minuto su fondo pergamena.</p><h2>Integrazione web</h2><p>Adatta i percorsi alla posizione degli asset nel sito.</p><pre>&lt;img src="/assets/asqueel/svg/asqueel-wordmark-primary.svg"
2
+ alt="Asqueel" width="280"&gt;
3
+
4
+ &lt;link rel="icon" href="/assets/asqueel/icons/favicon.svg" type="image/svg+xml"&gt;
5
+ &lt;link rel="icon" href="/assets/asqueel/icons/favicon.ico" sizes="16x16 32x32 48x48"&gt;
6
+ &lt;link rel="apple-touch-icon" href="/assets/asqueel/icons/apple-touch-icon.png"&gt;
7
+ &lt;link rel="manifest" href="/assets/asqueel/icons/site.webmanifest"&gt;</pre><p class="small">Gli SVG della scritta e del monogramma non richiedono font. La tavola social contiene un sottotitolo in Arial/sans-serif; usa il PNG per una resa fissa. Se inserisci più copie di uno stesso SVG direttamente nell’HTML, rendi univoci gli identificatori delle maschere; con &lt;img&gt; non è necessario.</p></main></html>