wreath 0.1.0a1__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 (532) hide show
  1. wreath-0.1.0a1/LICENSE +373 -0
  2. wreath-0.1.0a1/PKG-INFO +141 -0
  3. wreath-0.1.0a1/README.md +126 -0
  4. wreath-0.1.0a1/pyproject.toml +237 -0
  5. wreath-0.1.0a1/setup.cfg +4 -0
  6. wreath-0.1.0a1/setup.py +243 -0
  7. wreath-0.1.0a1/src/wreath/__init__.py +16 -0
  8. wreath-0.1.0a1/src/wreath/__main__.py +7 -0
  9. wreath-0.1.0a1/src/wreath/_audit/__init__.py +20 -0
  10. wreath-0.1.0a1/src/wreath/_audit/cli.py +107 -0
  11. wreath-0.1.0a1/src/wreath/_audit/contrast.py +269 -0
  12. wreath-0.1.0a1/src/wreath/_audit/dom.py +100 -0
  13. wreath-0.1.0a1/src/wreath/_audit/fix.py +112 -0
  14. wreath-0.1.0a1/src/wreath/_audit/middleware.py +50 -0
  15. wreath-0.1.0a1/src/wreath/_audit/model.py +75 -0
  16. wreath-0.1.0a1/src/wreath/_audit/rules/__init__.py +12 -0
  17. wreath-0.1.0a1/src/wreath/_audit/rules/a11y.py +373 -0
  18. wreath-0.1.0a1/src/wreath/_audit/rules/perf.py +117 -0
  19. wreath-0.1.0a1/src/wreath/_audit/rules/security.py +180 -0
  20. wreath-0.1.0a1/src/wreath/_audit/runtime.py +93 -0
  21. wreath-0.1.0a1/src/wreath/_audit/sources.py +83 -0
  22. wreath-0.1.0a1/src/wreath/_auth/__init__.py +23 -0
  23. wreath-0.1.0a1/src/wreath/_auth/_ecverify.py +206 -0
  24. wreath-0.1.0a1/src/wreath/_auth/backends.py +54 -0
  25. wreath-0.1.0a1/src/wreath/_auth/cedar.py +167 -0
  26. wreath-0.1.0a1/src/wreath/_auth/cedar_engine.py +941 -0
  27. wreath-0.1.0a1/src/wreath/_auth/decorators.py +173 -0
  28. wreath-0.1.0a1/src/wreath/_auth/jwks.py +187 -0
  29. wreath-0.1.0a1/src/wreath/_auth/jwt.py +724 -0
  30. wreath-0.1.0a1/src/wreath/_auth/models.py +28 -0
  31. wreath-0.1.0a1/src/wreath/_auth/oauth2.py +235 -0
  32. wreath-0.1.0a1/src/wreath/_auth/oidc.py +148 -0
  33. wreath-0.1.0a1/src/wreath/_auth/permissions.py +745 -0
  34. wreath-0.1.0a1/src/wreath/_auth/requirements.py +128 -0
  35. wreath-0.1.0a1/src/wreath/_auth/session_backend.py +111 -0
  36. wreath-0.1.0a1/src/wreath/_busbridge.py +220 -0
  37. wreath-0.1.0a1/src/wreath/_cli.py +1862 -0
  38. wreath-0.1.0a1/src/wreath/_client_codec.py +65 -0
  39. wreath-0.1.0a1/src/wreath/_cloudwatch_emf.py +145 -0
  40. wreath-0.1.0a1/src/wreath/_codecs.py +14 -0
  41. wreath-0.1.0a1/src/wreath/_devserver.py +272 -0
  42. wreath-0.1.0a1/src/wreath/_devtools/__init__.py +6 -0
  43. wreath-0.1.0a1/src/wreath/_devtools/bench_report.py +1164 -0
  44. wreath-0.1.0a1/src/wreath/_devtools/build_lint.py +179 -0
  45. wreath-0.1.0a1/src/wreath/_devtools/complexity_probe.py +2189 -0
  46. wreath-0.1.0a1/src/wreath/_devtools/decomp.py +402 -0
  47. wreath-0.1.0a1/src/wreath/_devtools/dup_scan.py +229 -0
  48. wreath-0.1.0a1/src/wreath/_devtools/map_lint.py +513 -0
  49. wreath-0.1.0a1/src/wreath/_devtools/measure.py +245 -0
  50. wreath-0.1.0a1/src/wreath/_devtools/native_boundary_lint.py +281 -0
  51. wreath-0.1.0a1/src/wreath/_devtools/native_error_lint.py +164 -0
  52. wreath-0.1.0a1/src/wreath/_devtools/native_gil_lint.py +185 -0
  53. wreath-0.1.0a1/src/wreath/_devtools/native_gil_status.py +120 -0
  54. wreath-0.1.0a1/src/wreath/_devtools/native_lint.py +605 -0
  55. wreath-0.1.0a1/src/wreath/_devtools/native_memory_lint.py +200 -0
  56. wreath-0.1.0a1/src/wreath/_devtools/native_profile.py +242 -0
  57. wreath-0.1.0a1/src/wreath/_devtools/port_golden.py +211 -0
  58. wreath-0.1.0a1/src/wreath/_devtools/quiet.py +1262 -0
  59. wreath-0.1.0a1/src/wreath/_devtools/request_trace.py +500 -0
  60. wreath-0.1.0a1/src/wreath/_devtools/roadmap_lint.py +178 -0
  61. wreath-0.1.0a1/src/wreath/_devtools/sample_app.py +260 -0
  62. wreath-0.1.0a1/src/wreath/_devtools/sanitize.py +361 -0
  63. wreath-0.1.0a1/src/wreath/_devtools/sql_lint.py +402 -0
  64. wreath-0.1.0a1/src/wreath/_devtools/tape_decomp.py +428 -0
  65. wreath-0.1.0a1/src/wreath/_devtools/tasks.py +603 -0
  66. wreath-0.1.0a1/src/wreath/_docs/__init__.py +18 -0
  67. wreath-0.1.0a1/src/wreath/_docs/_fenced.py +78 -0
  68. wreath-0.1.0a1/src/wreath/_docs/apidoc.py +362 -0
  69. wreath-0.1.0a1/src/wreath/_docs/charts.py +308 -0
  70. wreath-0.1.0a1/src/wreath/_docs/codeblocks.py +670 -0
  71. wreath-0.1.0a1/src/wreath/_docs/config.py +247 -0
  72. wreath-0.1.0a1/src/wreath/_docs/figures.py +335 -0
  73. wreath-0.1.0a1/src/wreath/_docs/hero.py +108 -0
  74. wreath-0.1.0a1/src/wreath/_docs/highlight.py +89 -0
  75. wreath-0.1.0a1/src/wreath/_docs/markdown.py +472 -0
  76. wreath-0.1.0a1/src/wreath/_docs/scripts.py +552 -0
  77. wreath-0.1.0a1/src/wreath/_docs/site.py +479 -0
  78. wreath-0.1.0a1/src/wreath/_docs/theme.py +1067 -0
  79. wreath-0.1.0a1/src/wreath/_docs_cli.py +146 -0
  80. wreath-0.1.0a1/src/wreath/_doorbell.py +196 -0
  81. wreath-0.1.0a1/src/wreath/_export.py +254 -0
  82. wreath-0.1.0a1/src/wreath/_flight_markers.py +84 -0
  83. wreath-0.1.0a1/src/wreath/_flight_metadata.py +392 -0
  84. wreath-0.1.0a1/src/wreath/_flight_schema.py +834 -0
  85. wreath-0.1.0a1/src/wreath/_fsguard.py +91 -0
  86. wreath-0.1.0a1/src/wreath/_graphql/__init__.py +0 -0
  87. wreath-0.1.0a1/src/wreath/_graphql/ast.py +115 -0
  88. wreath-0.1.0a1/src/wreath/_graphql/execute.py +451 -0
  89. wreath-0.1.0a1/src/wreath/_graphql/parser.py +589 -0
  90. wreath-0.1.0a1/src/wreath/_graphql/resolvers.py +199 -0
  91. wreath-0.1.0a1/src/wreath/_graphql/schema.py +285 -0
  92. wreath-0.1.0a1/src/wreath/_graphql/typegen.py +123 -0
  93. wreath-0.1.0a1/src/wreath/_h2_codec.py +386 -0
  94. wreath-0.1.0a1/src/wreath/_headers.py +16 -0
  95. wreath-0.1.0a1/src/wreath/_http.py +44 -0
  96. wreath-0.1.0a1/src/wreath/_jobcore.py +258 -0
  97. wreath-0.1.0a1/src/wreath/_json.py +91 -0
  98. wreath-0.1.0a1/src/wreath/_livedoc.py +480 -0
  99. wreath-0.1.0a1/src/wreath/_locks.py +504 -0
  100. wreath-0.1.0a1/src/wreath/_metricdelta.py +26 -0
  101. wreath-0.1.0a1/src/wreath/_migrations/__init__.py +4 -0
  102. wreath-0.1.0a1/src/wreath/_migrations/deferred.py +336 -0
  103. wreath-0.1.0a1/src/wreath/_migrations/scan.py +745 -0
  104. wreath-0.1.0a1/src/wreath/_migrations_cli.py +513 -0
  105. wreath-0.1.0a1/src/wreath/_multipart.py +74 -0
  106. wreath-0.1.0a1/src/wreath/_native/__init__.py +39 -0
  107. wreath-0.1.0a1/src/wreath/_native/_clientmodule.c +35 -0
  108. wreath-0.1.0a1/src/wreath/_native/_coremodule.c +190 -0
  109. wreath-0.1.0a1/src/wreath/_native/_flightmodule.c +635 -0
  110. wreath-0.1.0a1/src/wreath/_native/_postgresmodule.c +76 -0
  111. wreath-0.1.0a1/src/wreath/_native/_reactormodule.c +207 -0
  112. wreath-0.1.0a1/src/wreath/_native/_servermodule.c +151 -0
  113. wreath-0.1.0a1/src/wreath/_native/authz.c +159 -0
  114. wreath-0.1.0a1/src/wreath/_native/cedar.c +967 -0
  115. wreath-0.1.0a1/src/wreath/_native/client_http1.c +994 -0
  116. wreath-0.1.0a1/src/wreath/_native/codecs.c +202 -0
  117. wreath-0.1.0a1/src/wreath/_native/dtbitset.c +1724 -0
  118. wreath-0.1.0a1/src/wreath/_native/dtrouter.c +1628 -0
  119. wreath-0.1.0a1/src/wreath/_native/env.c +137 -0
  120. wreath-0.1.0a1/src/wreath/_native/flight.c +1292 -0
  121. wreath-0.1.0a1/src/wreath/_native/flight.h +227 -0
  122. wreath-0.1.0a1/src/wreath/_native/flight_schema.h +250 -0
  123. wreath-0.1.0a1/src/wreath/_native/headers.c +99 -0
  124. wreath-0.1.0a1/src/wreath/_native/http.c +683 -0
  125. wreath-0.1.0a1/src/wreath/_native/jose.c +488 -0
  126. wreath-0.1.0a1/src/wreath/_native/json.c +1106 -0
  127. wreath-0.1.0a1/src/wreath/_native/msgpack.c +407 -0
  128. wreath-0.1.0a1/src/wreath/_native/multipart.c +237 -0
  129. wreath-0.1.0a1/src/wreath/_native/observability.c +79 -0
  130. wreath-0.1.0a1/src/wreath/_native/orm_shape.c +811 -0
  131. wreath-0.1.0a1/src/wreath/_native/postgres/buffer.c +128 -0
  132. wreath-0.1.0a1/src/wreath/_native/postgres/buffer.h +24 -0
  133. wreath-0.1.0a1/src/wreath/_native/postgres/codec.c +1543 -0
  134. wreath-0.1.0a1/src/wreath/_native/postgres/codec.h +31 -0
  135. wreath-0.1.0a1/src/wreath/_native/postgres/connection.c +190 -0
  136. wreath-0.1.0a1/src/wreath/_native/postgres/connection.h +6 -0
  137. wreath-0.1.0a1/src/wreath/_native/postgres/decode.c +592 -0
  138. wreath-0.1.0a1/src/wreath/_native/postgres/decode.h +54 -0
  139. wreath-0.1.0a1/src/wreath/_native/postgres/hydrate.c +709 -0
  140. wreath-0.1.0a1/src/wreath/_native/postgres/hydrate.h +18 -0
  141. wreath-0.1.0a1/src/wreath/_native/postgres/migration_artifact.c +609 -0
  142. wreath-0.1.0a1/src/wreath/_native/postgres/migration_artifact.h +11 -0
  143. wreath-0.1.0a1/src/wreath/_native/postgres/migration_image.c +1227 -0
  144. wreath-0.1.0a1/src/wreath/_native/postgres/migration_image.h +22 -0
  145. wreath-0.1.0a1/src/wreath/_native/postgres/migration_resolver.c +116 -0
  146. wreath-0.1.0a1/src/wreath/_native/postgres/migration_resolver.h +8 -0
  147. wreath-0.1.0a1/src/wreath/_native/postgres/migration_runner.c +201 -0
  148. wreath-0.1.0a1/src/wreath/_native/postgres/migration_runner.h +8 -0
  149. wreath-0.1.0a1/src/wreath/_native/postgres/migration_sql.c +1087 -0
  150. wreath-0.1.0a1/src/wreath/_native/postgres/migration_sql.h +14 -0
  151. wreath-0.1.0a1/src/wreath/_native/postgres/model.c +1492 -0
  152. wreath-0.1.0a1/src/wreath/_native/postgres/model.h +76 -0
  153. wreath-0.1.0a1/src/wreath/_native/postgres/operation.c +36 -0
  154. wreath-0.1.0a1/src/wreath/_native/postgres/operation.h +9 -0
  155. wreath-0.1.0a1/src/wreath/_native/postgres/plan.c +122 -0
  156. wreath-0.1.0a1/src/wreath/_native/postgres/plan.h +18 -0
  157. wreath-0.1.0a1/src/wreath/_native/postgres/pool.c +8 -0
  158. wreath-0.1.0a1/src/wreath/_native/postgres/pool.h +5 -0
  159. wreath-0.1.0a1/src/wreath/_native/postgres/protocol.c +1608 -0
  160. wreath-0.1.0a1/src/wreath/_native/postgres/protocol.h +9 -0
  161. wreath-0.1.0a1/src/wreath/_native/postgres/record.c +249 -0
  162. wreath-0.1.0a1/src/wreath/_native/postgres/record.h +12 -0
  163. wreath-0.1.0a1/src/wreath/_native/postgres/slab.c +207 -0
  164. wreath-0.1.0a1/src/wreath/_native/postgres/slab.h +22 -0
  165. wreath-0.1.0a1/src/wreath/_native/postgres/tape.c +370 -0
  166. wreath-0.1.0a1/src/wreath/_native/postgres/tape.h +67 -0
  167. wreath-0.1.0a1/src/wreath/_native/proxy.c +571 -0
  168. wreath-0.1.0a1/src/wreath/_native/ratelimit.c +423 -0
  169. wreath-0.1.0a1/src/wreath/_native/reactor_buffers.c +148 -0
  170. wreath-0.1.0a1/src/wreath/_native/reactor_internal.h +76 -0
  171. wreath-0.1.0a1/src/wreath/_native/reactor_poller.c +3025 -0
  172. wreath-0.1.0a1/src/wreath/_native/reactor_ring.c +762 -0
  173. wreath-0.1.0a1/src/wreath/_native/reactor_transport.c +1915 -0
  174. wreath-0.1.0a1/src/wreath/_native/reactor_wheel.c +1282 -0
  175. wreath-0.1.0a1/src/wreath/_native/router.c +475 -0
  176. wreath-0.1.0a1/src/wreath/_native/scheduler.c +186 -0
  177. wreath-0.1.0a1/src/wreath/_native/security.c +345 -0
  178. wreath-0.1.0a1/src/wreath/_native/server.h +439 -0
  179. wreath-0.1.0a1/src/wreath/_native/server_common.c +551 -0
  180. wreath-0.1.0a1/src/wreath/_native/server_hpack.c +655 -0
  181. wreath-0.1.0a1/src/wreath/_native/server_http1.c +4461 -0
  182. wreath-0.1.0a1/src/wreath/_native/server_http2.c +2780 -0
  183. wreath-0.1.0a1/src/wreath/_native/server_request.c +438 -0
  184. wreath-0.1.0a1/src/wreath/_native/sse.c +234 -0
  185. wreath-0.1.0a1/src/wreath/_native/templates.c +460 -0
  186. wreath-0.1.0a1/src/wreath/_native/validate.c +480 -0
  187. wreath-0.1.0a1/src/wreath/_native/webpolicy.c +570 -0
  188. wreath-0.1.0a1/src/wreath/_native/wreath_stream.h +41 -0
  189. wreath-0.1.0a1/src/wreath/_native/wreathcore.h +302 -0
  190. wreath-0.1.0a1/src/wreath/_native/ws.c +239 -0
  191. wreath-0.1.0a1/src/wreath/_nplusone.py +271 -0
  192. wreath-0.1.0a1/src/wreath/_orm_events.py +304 -0
  193. wreath-0.1.0a1/src/wreath/_otlp.py +437 -0
  194. wreath-0.1.0a1/src/wreath/_passes/__init__.py +1 -0
  195. wreath-0.1.0a1/src/wreath/_passes/buckets.py +275 -0
  196. wreath-0.1.0a1/src/wreath/_passes/driver.py +787 -0
  197. wreath-0.1.0a1/src/wreath/_passes/duration.py +48 -0
  198. wreath-0.1.0a1/src/wreath/_passes/gate.py +337 -0
  199. wreath-0.1.0a1/src/wreath/_passes/keyset.py +401 -0
  200. wreath-0.1.0a1/src/wreath/_passes/ledger.py +1088 -0
  201. wreath-0.1.0a1/src/wreath/_passes/pace.py +61 -0
  202. wreath-0.1.0a1/src/wreath/_passes/progress.py +439 -0
  203. wreath-0.1.0a1/src/wreath/_passes/stores.py +83 -0
  204. wreath-0.1.0a1/src/wreath/_port/__init__.py +26 -0
  205. wreath-0.1.0a1/src/wreath/_port/analyzer.py +1564 -0
  206. wreath-0.1.0a1/src/wreath/_port/cli.py +196 -0
  207. wreath-0.1.0a1/src/wreath/_port/emit.py +1082 -0
  208. wreath-0.1.0a1/src/wreath/_port/ir.py +252 -0
  209. wreath-0.1.0a1/src/wreath/_port/rules.py +233 -0
  210. wreath-0.1.0a1/src/wreath/_projector.py +493 -0
  211. wreath-0.1.0a1/src/wreath/_prometheus.py +374 -0
  212. wreath-0.1.0a1/src/wreath/_pure/__init__.py +6 -0
  213. wreath-0.1.0a1/src/wreath/_pure/authz.py +29 -0
  214. wreath-0.1.0a1/src/wreath/_pure/bounded.py +142 -0
  215. wreath-0.1.0a1/src/wreath/_pure/cedar.py +372 -0
  216. wreath-0.1.0a1/src/wreath/_pure/codecs.py +72 -0
  217. wreath-0.1.0a1/src/wreath/_pure/compression.py +44 -0
  218. wreath-0.1.0a1/src/wreath/_pure/dtbitset.py +282 -0
  219. wreath-0.1.0a1/src/wreath/_pure/dtrouter.py +320 -0
  220. wreath-0.1.0a1/src/wreath/_pure/env.py +32 -0
  221. wreath-0.1.0a1/src/wreath/_pure/flight.py +870 -0
  222. wreath-0.1.0a1/src/wreath/_pure/headers.py +33 -0
  223. wreath-0.1.0a1/src/wreath/_pure/http.py +57 -0
  224. wreath-0.1.0a1/src/wreath/_pure/http_client.py +158 -0
  225. wreath-0.1.0a1/src/wreath/_pure/json.py +63 -0
  226. wreath-0.1.0a1/src/wreath/_pure/msgpack.py +170 -0
  227. wreath-0.1.0a1/src/wreath/_pure/multipart.py +93 -0
  228. wreath-0.1.0a1/src/wreath/_pure/observability.py +24 -0
  229. wreath-0.1.0a1/src/wreath/_pure/postgres.py +2001 -0
  230. wreath-0.1.0a1/src/wreath/_pure/proxy.py +111 -0
  231. wreath-0.1.0a1/src/wreath/_pure/ratelimit.py +83 -0
  232. wreath-0.1.0a1/src/wreath/_pure/response.py +131 -0
  233. wreath-0.1.0a1/src/wreath/_pure/router.py +110 -0
  234. wreath-0.1.0a1/src/wreath/_pure/security.py +71 -0
  235. wreath-0.1.0a1/src/wreath/_pure/server.py +1356 -0
  236. wreath-0.1.0a1/src/wreath/_pure/snapshot.py +149 -0
  237. wreath-0.1.0a1/src/wreath/_pure/templates.py +341 -0
  238. wreath-0.1.0a1/src/wreath/_pure/typegen.py +349 -0
  239. wreath-0.1.0a1/src/wreath/_pure/webpolicy.py +212 -0
  240. wreath-0.1.0a1/src/wreath/_pure/ws.py +82 -0
  241. wreath-0.1.0a1/src/wreath/_recording_format.py +425 -0
  242. wreath-0.1.0a1/src/wreath/_replay_adapters.py +973 -0
  243. wreath-0.1.0a1/src/wreath/_replay_plan.py +280 -0
  244. wreath-0.1.0a1/src/wreath/_routing.py +168 -0
  245. wreath-0.1.0a1/src/wreath/_series/__init__.py +6 -0
  246. wreath-0.1.0a1/src/wreath/_series/compile.py +463 -0
  247. wreath-0.1.0a1/src/wreath/_series/envelope.py +112 -0
  248. wreath-0.1.0a1/src/wreath/_series/settle.py +366 -0
  249. wreath-0.1.0a1/src/wreath/_series/tiers.py +454 -0
  250. wreath-0.1.0a1/src/wreath/_sigv4.py +183 -0
  251. wreath-0.1.0a1/src/wreath/_statsd.py +205 -0
  252. wreath-0.1.0a1/src/wreath/_userkit.py +492 -0
  253. wreath-0.1.0a1/src/wreath/_webpolicy.py +49 -0
  254. wreath-0.1.0a1/src/wreath/_websocket.py +34 -0
  255. wreath-0.1.0a1/src/wreath/app.py +2840 -0
  256. wreath-0.1.0a1/src/wreath/auth.py +46 -0
  257. wreath-0.1.0a1/src/wreath/authorization.py +46 -0
  258. wreath-0.1.0a1/src/wreath/background.py +94 -0
  259. wreath-0.1.0a1/src/wreath/binding.py +1879 -0
  260. wreath-0.1.0a1/src/wreath/cache.py +183 -0
  261. wreath-0.1.0a1/src/wreath/cache_control.py +79 -0
  262. wreath-0.1.0a1/src/wreath/cli.py +19 -0
  263. wreath-0.1.0a1/src/wreath/compression.py +30 -0
  264. wreath-0.1.0a1/src/wreath/config.py +191 -0
  265. wreath-0.1.0a1/src/wreath/crud.py +618 -0
  266. wreath-0.1.0a1/src/wreath/doctor.py +131 -0
  267. wreath-0.1.0a1/src/wreath/exceptions.py +228 -0
  268. wreath-0.1.0a1/src/wreath/flags.py +214 -0
  269. wreath-0.1.0a1/src/wreath/graphql.py +468 -0
  270. wreath-0.1.0a1/src/wreath/health.py +362 -0
  271. wreath-0.1.0a1/src/wreath/http_client.py +1603 -0
  272. wreath-0.1.0a1/src/wreath/inspector.py +971 -0
  273. wreath-0.1.0a1/src/wreath/jobs.py +1066 -0
  274. wreath-0.1.0a1/src/wreath/messaging.py +942 -0
  275. wreath-0.1.0a1/src/wreath/middleware/__init__.py +87 -0
  276. wreath-0.1.0a1/src/wreath/middleware/base.py +510 -0
  277. wreath-0.1.0a1/src/wreath/middleware/cache.py +59 -0
  278. wreath-0.1.0a1/src/wreath/middleware/compression.py +159 -0
  279. wreath-0.1.0a1/src/wreath/middleware/cors.py +257 -0
  280. wreath-0.1.0a1/src/wreath/middleware/csrf.py +511 -0
  281. wreath-0.1.0a1/src/wreath/middleware/idempotency.py +570 -0
  282. wreath-0.1.0a1/src/wreath/middleware/proxy.py +147 -0
  283. wreath-0.1.0a1/src/wreath/middleware/ratelimit.py +656 -0
  284. wreath-0.1.0a1/src/wreath/middleware/request_id.py +140 -0
  285. wreath-0.1.0a1/src/wreath/middleware/security.py +201 -0
  286. wreath-0.1.0a1/src/wreath/middleware/sessions.py +386 -0
  287. wreath-0.1.0a1/src/wreath/middleware/timing.py +121 -0
  288. wreath-0.1.0a1/src/wreath/migrations.py +1602 -0
  289. wreath-0.1.0a1/src/wreath/negotiation.py +205 -0
  290. wreath-0.1.0a1/src/wreath/objects.py +1924 -0
  291. wreath-0.1.0a1/src/wreath/openapi.py +425 -0
  292. wreath-0.1.0a1/src/wreath/orm/__init__.py +138 -0
  293. wreath-0.1.0a1/src/wreath/orm/_index_predicate.py +178 -0
  294. wreath-0.1.0a1/src/wreath/orm/compiler.py +1333 -0
  295. wreath-0.1.0a1/src/wreath/orm/constraints.py +610 -0
  296. wreath-0.1.0a1/src/wreath/orm/errors.py +93 -0
  297. wreath-0.1.0a1/src/wreath/orm/expressions.py +698 -0
  298. wreath-0.1.0a1/src/wreath/orm/fields.py +359 -0
  299. wreath-0.1.0a1/src/wreath/orm/introspection.py +440 -0
  300. wreath-0.1.0a1/src/wreath/orm/model.py +670 -0
  301. wreath-0.1.0a1/src/wreath/orm/query.py +170 -0
  302. wreath-0.1.0a1/src/wreath/orm/registry.py +582 -0
  303. wreath-0.1.0a1/src/wreath/orm/relations.py +236 -0
  304. wreath-0.1.0a1/src/wreath/orm/schema.py +317 -0
  305. wreath-0.1.0a1/src/wreath/orm/session.py +1548 -0
  306. wreath-0.1.0a1/src/wreath/orm/table.py +238 -0
  307. wreath-0.1.0a1/src/wreath/orm/types.py +347 -0
  308. wreath-0.1.0a1/src/wreath/orm/validation.py +247 -0
  309. wreath-0.1.0a1/src/wreath/pagination.py +303 -0
  310. wreath-0.1.0a1/src/wreath/passes.py +1347 -0
  311. wreath-0.1.0a1/src/wreath/port.py +40 -0
  312. wreath-0.1.0a1/src/wreath/postgres.py +672 -0
  313. wreath-0.1.0a1/src/wreath/progress.py +364 -0
  314. wreath-0.1.0a1/src/wreath/queries.py +479 -0
  315. wreath-0.1.0a1/src/wreath/reactor.py +858 -0
  316. wreath-0.1.0a1/src/wreath/recording.py +588 -0
  317. wreath-0.1.0a1/src/wreath/replay.py +1361 -0
  318. wreath-0.1.0a1/src/wreath/request.py +1098 -0
  319. wreath-0.1.0a1/src/wreath/response.py +1240 -0
  320. wreath-0.1.0a1/src/wreath/response_cache.py +297 -0
  321. wreath-0.1.0a1/src/wreath/rooms.py +286 -0
  322. wreath-0.1.0a1/src/wreath/router.py +403 -0
  323. wreath-0.1.0a1/src/wreath/schema.py +538 -0
  324. wreath-0.1.0a1/src/wreath/series.py +2072 -0
  325. wreath-0.1.0a1/src/wreath/server.py +1520 -0
  326. wreath-0.1.0a1/src/wreath/service_client.py +196 -0
  327. wreath-0.1.0a1/src/wreath/services.py +225 -0
  328. wreath-0.1.0a1/src/wreath/session_store.py +212 -0
  329. wreath-0.1.0a1/src/wreath/state.py +85 -0
  330. wreath-0.1.0a1/src/wreath/staticfiles.py +252 -0
  331. wreath-0.1.0a1/src/wreath/storage.py +61 -0
  332. wreath-0.1.0a1/src/wreath/store.py +697 -0
  333. wreath-0.1.0a1/src/wreath/telemetry.py +505 -0
  334. wreath-0.1.0a1/src/wreath/templates.py +139 -0
  335. wreath-0.1.0a1/src/wreath/temporal.py +722 -0
  336. wreath-0.1.0a1/src/wreath/testing.py +687 -0
  337. wreath-0.1.0a1/src/wreath/typegen/__init__.py +16 -0
  338. wreath-0.1.0a1/src/wreath/typegen/cli.py +128 -0
  339. wreath-0.1.0a1/src/wreath/typegen/inspect.py +571 -0
  340. wreath-0.1.0a1/src/wreath/typegen/model.py +221 -0
  341. wreath-0.1.0a1/src/wreath/typegen/render.py +35 -0
  342. wreath-0.1.0a1/src/wreath/typegen/targets/__init__.py +1 -0
  343. wreath-0.1.0a1/src/wreath/typegen/targets/typescript.py +506 -0
  344. wreath-0.1.0a1/src/wreath/users.py +590 -0
  345. wreath-0.1.0a1/src/wreath/validation_errors.py +236 -0
  346. wreath-0.1.0a1/src/wreath/versioning.py +151 -0
  347. wreath-0.1.0a1/src/wreath/webhooks.py +2578 -0
  348. wreath-0.1.0a1/src/wreath/websocket.py +305 -0
  349. wreath-0.1.0a1/src/wreath.egg-info/PKG-INFO +141 -0
  350. wreath-0.1.0a1/src/wreath.egg-info/SOURCES.txt +530 -0
  351. wreath-0.1.0a1/src/wreath.egg-info/dependency_links.txt +1 -0
  352. wreath-0.1.0a1/src/wreath.egg-info/entry_points.txt +25 -0
  353. wreath-0.1.0a1/src/wreath.egg-info/top_level.txt +1 -0
  354. wreath-0.1.0a1/tests/test_api_docs.py +143 -0
  355. wreath-0.1.0a1/tests/test_app.py +326 -0
  356. wreath-0.1.0a1/tests/test_app_factories.py +55 -0
  357. wreath-0.1.0a1/tests/test_auth_pipeline.py +174 -0
  358. wreath-0.1.0a1/tests/test_auth_routing.py +167 -0
  359. wreath-0.1.0a1/tests/test_auth_verifier_call_count.py +52 -0
  360. wreath-0.1.0a1/tests/test_authentication.py +175 -0
  361. wreath-0.1.0a1/tests/test_authorization_complexity.py +115 -0
  362. wreath-0.1.0a1/tests/test_authz_native.py +57 -0
  363. wreath-0.1.0a1/tests/test_background.py +339 -0
  364. wreath-0.1.0a1/tests/test_bench_quiet.py +617 -0
  365. wreath-0.1.0a1/tests/test_benchmark_protocols.py +373 -0
  366. wreath-0.1.0a1/tests/test_benchmark_scenarios.py +139 -0
  367. wreath-0.1.0a1/tests/test_binding.py +454 -0
  368. wreath-0.1.0a1/tests/test_binding_complexity.py +52 -0
  369. wreath-0.1.0a1/tests/test_binding_sources.py +204 -0
  370. wreath-0.1.0a1/tests/test_binding_unresolvable_annotations.py +146 -0
  371. wreath-0.1.0a1/tests/test_bounded_cache.py +75 -0
  372. wreath-0.1.0a1/tests/test_busbridge.py +292 -0
  373. wreath-0.1.0a1/tests/test_cache_control.py +59 -0
  374. wreath-0.1.0a1/tests/test_cache_invalidation.py +726 -0
  375. wreath-0.1.0a1/tests/test_cedar.py +141 -0
  376. wreath-0.1.0a1/tests/test_cedar_engine.py +425 -0
  377. wreath-0.1.0a1/tests/test_cedar_entity_layering.py +314 -0
  378. wreath-0.1.0a1/tests/test_cedar_set_dedupe.py +142 -0
  379. wreath-0.1.0a1/tests/test_cli.py +287 -0
  380. wreath-0.1.0a1/tests/test_client_sessions_forms.py +311 -0
  381. wreath-0.1.0a1/tests/test_cloudwatch_emf.py +138 -0
  382. wreath-0.1.0a1/tests/test_complexity_probe.py +203 -0
  383. wreath-0.1.0a1/tests/test_compression_middleware.py +93 -0
  384. wreath-0.1.0a1/tests/test_compression_parity.py +19 -0
  385. wreath-0.1.0a1/tests/test_config.py +54 -0
  386. wreath-0.1.0a1/tests/test_cpu_pressure_red.py +103 -0
  387. wreath-0.1.0a1/tests/test_crud.py +265 -0
  388. wreath-0.1.0a1/tests/test_crud_sensitive_names.py +89 -0
  389. wreath-0.1.0a1/tests/test_csrf_fetch_metadata.py +253 -0
  390. wreath-0.1.0a1/tests/test_csrf_middleware.py +127 -0
  391. wreath-0.1.0a1/tests/test_csrf_native_parity.py +196 -0
  392. wreath-0.1.0a1/tests/test_declaration_refusals.py +180 -0
  393. wreath-0.1.0a1/tests/test_decomp.py +108 -0
  394. wreath-0.1.0a1/tests/test_dependency_and_path_refusals.py +320 -0
  395. wreath-0.1.0a1/tests/test_dependency_scopes.py +319 -0
  396. wreath-0.1.0a1/tests/test_dev_environment.py +35 -0
  397. wreath-0.1.0a1/tests/test_devserver.py +184 -0
  398. wreath-0.1.0a1/tests/test_devtool_tasks.py +229 -0
  399. wreath-0.1.0a1/tests/test_devtools_claim_lints.py +240 -0
  400. wreath-0.1.0a1/tests/test_docs_api_shapes.py +80 -0
  401. wreath-0.1.0a1/tests/test_docs_codeblocks.py +251 -0
  402. wreath-0.1.0a1/tests/test_docs_ssg.py +1269 -0
  403. wreath-0.1.0a1/tests/test_doctor.py +496 -0
  404. wreath-0.1.0a1/tests/test_dup_scan.py +193 -0
  405. wreath-0.1.0a1/tests/test_exactly_once.py +355 -0
  406. wreath-0.1.0a1/tests/test_flight_bridge.py +107 -0
  407. wreath-0.1.0a1/tests/test_flight_capture.py +317 -0
  408. wreath-0.1.0a1/tests/test_flight_capture_control.py +291 -0
  409. wreath-0.1.0a1/tests/test_flight_capture_live.py +409 -0
  410. wreath-0.1.0a1/tests/test_flight_export.py +268 -0
  411. wreath-0.1.0a1/tests/test_flight_inspector.py +352 -0
  412. wreath-0.1.0a1/tests/test_flight_inspector_projection.py +192 -0
  413. wreath-0.1.0a1/tests/test_flight_markers.py +366 -0
  414. wreath-0.1.0a1/tests/test_flight_native.py +578 -0
  415. wreath-0.1.0a1/tests/test_flight_otlp.py +424 -0
  416. wreath-0.1.0a1/tests/test_flight_projector.py +461 -0
  417. wreath-0.1.0a1/tests/test_flight_projector_stress.py +187 -0
  418. wreath-0.1.0a1/tests/test_flight_propagation.py +102 -0
  419. wreath-0.1.0a1/tests/test_flight_recording.py +285 -0
  420. wreath-0.1.0a1/tests/test_flight_recording_format.py +252 -0
  421. wreath-0.1.0a1/tests/test_flight_schema.py +503 -0
  422. wreath-0.1.0a1/tests/test_flight_server.py +566 -0
  423. wreath-0.1.0a1/tests/test_flight_server_lifecycle.py +251 -0
  424. wreath-0.1.0a1/tests/test_form_model_binding.py +88 -0
  425. wreath-0.1.0a1/tests/test_format_round_trip_sweeps.py +408 -0
  426. wreath-0.1.0a1/tests/test_framework_features.py +538 -0
  427. wreath-0.1.0a1/tests/test_fsguard.py +64 -0
  428. wreath-0.1.0a1/tests/test_gated_skips.py +251 -0
  429. wreath-0.1.0a1/tests/test_graphql.py +812 -0
  430. wreath-0.1.0a1/tests/test_http_client.py +1035 -0
  431. wreath-0.1.0a1/tests/test_http_client_native_stream.py +160 -0
  432. wreath-0.1.0a1/tests/test_http_client_protocol.py +243 -0
  433. wreath-0.1.0a1/tests/test_http_client_rate_retry.py +105 -0
  434. wreath-0.1.0a1/tests/test_idempotency.py +304 -0
  435. wreath-0.1.0a1/tests/test_json_temporal.py +161 -0
  436. wreath-0.1.0a1/tests/test_jwt.py +316 -0
  437. wreath-0.1.0a1/tests/test_lazy_scope.py +209 -0
  438. wreath-0.1.0a1/tests/test_lifespan_teardown.py +174 -0
  439. wreath-0.1.0a1/tests/test_live_progress.py +402 -0
  440. wreath-0.1.0a1/tests/test_livedoc.py +450 -0
  441. wreath-0.1.0a1/tests/test_map_lint.py +347 -0
  442. wreath-0.1.0a1/tests/test_memory_pressure_red.py +119 -0
  443. wreath-0.1.0a1/tests/test_middleware.py +208 -0
  444. wreath-0.1.0a1/tests/test_middleware_fusion.py +424 -0
  445. wreath-0.1.0a1/tests/test_migration_benchmark.py +37 -0
  446. wreath-0.1.0a1/tests/test_msgpack_parity.py +227 -0
  447. wreath-0.1.0a1/tests/test_native_boundary_lint.py +207 -0
  448. wreath-0.1.0a1/tests/test_native_error_lint.py +143 -0
  449. wreath-0.1.0a1/tests/test_native_gil_lint.py +162 -0
  450. wreath-0.1.0a1/tests/test_native_gil_status.py +59 -0
  451. wreath-0.1.0a1/tests/test_native_hot_path_red.py +217 -0
  452. wreath-0.1.0a1/tests/test_native_interpreter_state.py +354 -0
  453. wreath-0.1.0a1/tests/test_native_lint.py +260 -0
  454. wreath-0.1.0a1/tests/test_native_lint_attribution.py +73 -0
  455. wreath-0.1.0a1/tests/test_native_lint_readability.py +63 -0
  456. wreath-0.1.0a1/tests/test_native_memory_lint.py +102 -0
  457. wreath-0.1.0a1/tests/test_native_parity.py +554 -0
  458. wreath-0.1.0a1/tests/test_native_perf.py +260 -0
  459. wreath-0.1.0a1/tests/test_native_profile.py +82 -0
  460. wreath-0.1.0a1/tests/test_native_response_regressions.py +28 -0
  461. wreath-0.1.0a1/tests/test_native_runtime_primitives.py +48 -0
  462. wreath-0.1.0a1/tests/test_native_validate_parity.py +118 -0
  463. wreath-0.1.0a1/tests/test_negotiation.py +95 -0
  464. wreath-0.1.0a1/tests/test_openapi.py +182 -0
  465. wreath-0.1.0a1/tests/test_optimized_mode.py +67 -0
  466. wreath-0.1.0a1/tests/test_performance_theses_red.py +151 -0
  467. wreath-0.1.0a1/tests/test_permissions.py +1163 -0
  468. wreath-0.1.0a1/tests/test_port_golden.py +115 -0
  469. wreath-0.1.0a1/tests/test_problem_details.py +48 -0
  470. wreath-0.1.0a1/tests/test_progress.py +142 -0
  471. wreath-0.1.0a1/tests/test_prometheus.py +256 -0
  472. wreath-0.1.0a1/tests/test_proxy_middleware.py +397 -0
  473. wreath-0.1.0a1/tests/test_queries.py +295 -0
  474. wreath-0.1.0a1/tests/test_ratelimit_middleware.py +364 -0
  475. wreath-0.1.0a1/tests/test_rbac.py +64 -0
  476. wreath-0.1.0a1/tests/test_replay.py +259 -0
  477. wreath-0.1.0a1/tests/test_replay_adversarial.py +343 -0
  478. wreath-0.1.0a1/tests/test_replay_container_format.py +364 -0
  479. wreath-0.1.0a1/tests/test_replay_corpus_properties.py +378 -0
  480. wreath-0.1.0a1/tests/test_replay_fault_corpus.py +474 -0
  481. wreath-0.1.0a1/tests/test_replay_faults.py +345 -0
  482. wreath-0.1.0a1/tests/test_replay_live_faults.py +444 -0
  483. wreath-0.1.0a1/tests/test_replay_owned_recovery.py +685 -0
  484. wreath-0.1.0a1/tests/test_replay_robustness.py +240 -0
  485. wreath-0.1.0a1/tests/test_replay_stage7.py +155 -0
  486. wreath-0.1.0a1/tests/test_replay_to_test.py +448 -0
  487. wreath-0.1.0a1/tests/test_request.py +389 -0
  488. wreath-0.1.0a1/tests/test_request_id_middleware.py +137 -0
  489. wreath-0.1.0a1/tests/test_request_pipeline.py +433 -0
  490. wreath-0.1.0a1/tests/test_request_trace.py +84 -0
  491. wreath-0.1.0a1/tests/test_response.py +256 -0
  492. wreath-0.1.0a1/tests/test_response_cache.py +140 -0
  493. wreath-0.1.0a1/tests/test_response_fast_path.py +104 -0
  494. wreath-0.1.0a1/tests/test_rooms.py +314 -0
  495. wreath-0.1.0a1/tests/test_router_complexity.py +41 -0
  496. wreath-0.1.0a1/tests/test_router_modules.py +127 -0
  497. wreath-0.1.0a1/tests/test_routing_modes.py +102 -0
  498. wreath-0.1.0a1/tests/test_routing_parity.py +256 -0
  499. wreath-0.1.0a1/tests/test_security_middleware.py +99 -0
  500. wreath-0.1.0a1/tests/test_server.py +702 -0
  501. wreath-0.1.0a1/tests/test_server_env.py +115 -0
  502. wreath-0.1.0a1/tests/test_server_fuzz.py +179 -0
  503. wreath-0.1.0a1/tests/test_server_protocol.py +1346 -0
  504. wreath-0.1.0a1/tests/test_server_protocols.py +350 -0
  505. wreath-0.1.0a1/tests/test_server_tls_ingress.py +140 -0
  506. wreath-0.1.0a1/tests/test_server_websocket.py +907 -0
  507. wreath-0.1.0a1/tests/test_service_client.py +145 -0
  508. wreath-0.1.0a1/tests/test_session_store.py +370 -0
  509. wreath-0.1.0a1/tests/test_snapshot_parity.py +127 -0
  510. wreath-0.1.0a1/tests/test_sse_frame_parity.py +101 -0
  511. wreath-0.1.0a1/tests/test_sse_response.py +55 -0
  512. wreath-0.1.0a1/tests/test_state.py +18 -0
  513. wreath-0.1.0a1/tests/test_staticfiles.py +140 -0
  514. wreath-0.1.0a1/tests/test_statsd.py +181 -0
  515. wreath-0.1.0a1/tests/test_store.py +417 -0
  516. wreath-0.1.0a1/tests/test_supervisor_drain.py +95 -0
  517. wreath-0.1.0a1/tests/test_tape_decomp.py +91 -0
  518. wreath-0.1.0a1/tests/test_template_parity.py +216 -0
  519. wreath-0.1.0a1/tests/test_temporal.py +474 -0
  520. wreath-0.1.0a1/tests/test_temporal_surfaces.py +290 -0
  521. wreath-0.1.0a1/tests/test_tiered_ratelimit.py +181 -0
  522. wreath-0.1.0a1/tests/test_timing_middleware.py +112 -0
  523. wreath-0.1.0a1/tests/test_typegen.py +290 -0
  524. wreath-0.1.0a1/tests/test_typegen_cli.py +114 -0
  525. wreath-0.1.0a1/tests/test_userkit.py +115 -0
  526. wreath-0.1.0a1/tests/test_users_router.py +67 -0
  527. wreath-0.1.0a1/tests/test_validation_errors.py +188 -0
  528. wreath-0.1.0a1/tests/test_webhooks.py +1268 -0
  529. wreath-0.1.0a1/tests/test_webhooks_postgres.py +334 -0
  530. wreath-0.1.0a1/tests/test_webpolicy_parity.py +119 -0
  531. wreath-0.1.0a1/tests/test_workloads.py +80 -0
  532. wreath-0.1.0a1/tests/test_wreath_schema.py +384 -0
wreath-0.1.0a1/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
@@ -0,0 +1,141 @@
1
+ Metadata-Version: 2.4
2
+ Name: wreath
3
+ Version: 0.1.0a1
4
+ Summary: A Python 3.14-first, dependency-free ASGI framework core
5
+ Author: Wreath contributors
6
+ License-Expression: MPL-2.0
7
+ Classifier: Development Status :: 2 - Pre-Alpha
8
+ Classifier: Framework :: AsyncIO
9
+ Classifier: Programming Language :: Python :: 3.14
10
+ Classifier: Typing :: Typed
11
+ Requires-Python: >=3.14
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Dynamic: license-file
15
+
16
+ # Wreath
17
+
18
+ A wreath is a circle of separate things — leaves, branches, small flowers —
19
+ gathered and woven until they hold a single shape. That is the idea behind this
20
+ framework. A web application is made of many parts: routing, validation,
21
+ authentication, data access, and the server that carries it all. Wreath gathers
22
+ those parts into one coherent whole and gives each of them a clear, honest place
23
+ to live.
24
+
25
+ **The brand is allowed to be poetic. The API is not.** A middleware is called a
26
+ middleware. A dependency is a dependency. Routes are routes, startup is startup,
27
+ a connection pool is a connection pool. You should be able to guess where a
28
+ feature lives without first learning our vocabulary.
29
+
30
+ Wreath is a Python 3.14-first ASGI framework. It runs behind any ASGI server you
31
+ already use, and it also brings its own: a native HTTP/1.1, HTTP/2, and HTTP/3
32
+ server that moves the hot path into C when you want the speed — without asking
33
+ you to change a line of your application.
34
+
35
+ > **Status:** pre-1.0. The feature set below is implemented and tested; expect
36
+ > additions, and expect what already works to keep working as it grows.
37
+
38
+ ```python
39
+ from wreath import Wreath, Request
40
+
41
+ app = Wreath()
42
+
43
+ @app.get("/hello/{name}")
44
+ async def hello(request: Request, name: str) -> dict:
45
+ return {"hello": name}
46
+ ```
47
+
48
+ ```bash
49
+ wreath run app:app # the native Wreath server
50
+ uvicorn app:app # or any ASGI server you prefer
51
+ ```
52
+
53
+ ## What's in the circle
54
+
55
+ Everything you need to build a real service, each part kept in its own
56
+ clearly-named module:
57
+
58
+ - **Routing & binding** — decorator routes on the app or composable `Router`
59
+ modules; typed parameters validated at startup-compiled speed (`wreath.router`,
60
+ `wreath.binding`).
61
+ - **Requests & responses** — JSON, text, HTML, streaming, file, redirect, and
62
+ RFC 9457 problem responses (`wreath.request`, `wreath.response`).
63
+ - **Middleware** — CORS, security headers, compression, rate limiting, request
64
+ IDs, timing, proxy headers, CSRF, sessions, trusted hosts (`wreath.middleware`).
65
+ - **Auth** — authentication (identity) and authorization (roles, permissions, a
66
+ Cedar policy engine), kept firmly apart (`wreath.auth`, `wreath.authorization`).
67
+ - **Data** — a native PostgreSQL driver and an ORM built on it, in a strict
68
+ one-way relationship (`wreath.postgres`, `wreath.orm`).
69
+ - **More of the whole** — WebSockets, an outbound HTTP client, signed webhooks,
70
+ templates, an application cache, OpenAPI with typed client generation, and an
71
+ in-process test client.
72
+ - **A native server** — HTTP/1.1, HTTP/2, and optional HTTP/3, with a pure-Python
73
+ reference always in agreement (`wreath.server`; force pure with `WREATH_PURE=1`).
74
+
75
+ ## Install
76
+
77
+ Wreath targets Python 3.14 and newer.
78
+
79
+ ```bash
80
+ pip install wreath
81
+ # or
82
+ uv add wreath
83
+ ```
84
+
85
+ Installing from source builds the native C extensions automatically, and falls
86
+ back to the pure-Python implementation when no compiler is available.
87
+
88
+ ## Documentation
89
+
90
+ - **Getting started** — install and build your first app.
91
+ - **Guides** — a page for each part of the framework, with the reasoning behind
92
+ it.
93
+ - **Cookbook** — recipes for developers, and a set written for coding agents.
94
+ - **API reference** — every public module, generated from the source.
95
+
96
+ Build the docs locally:
97
+
98
+ ```bash
99
+ uv run wreath-docs # strict build; --serve to watch
100
+ ```
101
+
102
+ ## Development
103
+
104
+ ```bash
105
+ uv sync # dev group; builds the native extensions
106
+ uv run wreath-check # ruff, ty, pytest, native lints, trace baseline
107
+ uv run pytest # the default suite (~3.5s, run serially)
108
+ uv run pytest -m '' -n 4 # everything, including network/fuzz/performance
109
+ ```
110
+
111
+ Contributing — including the invariants a change must preserve and how to verify
112
+ one — is documented in [`AGENTS.md`](AGENTS.md) and the cookbook's
113
+ [section for coding agents](docs/cookbook/agents/index.md).
114
+
115
+ ## Benchmarks
116
+
117
+ Wreath ships equivalent applications across several frameworks and a renderer
118
+ that reports medians with their run-to-run range, so a real win can be told from
119
+ noise. Results are regenerated locally; render the holistic report with:
120
+
121
+ ```bash
122
+ uv run wreath-bench-report # one report across every benchmark family
123
+ ```
124
+
125
+ See [`benchmarks/README.md`](benchmarks/README.md) for methodology.
126
+
127
+ ## License
128
+
129
+ Wreath is licensed under the [Mozilla Public License 2.0](LICENSE) (MPL-2.0).
130
+
131
+ In practice: use it freely, commercially, as a dependency of anything —
132
+ proprietary applications and closed-source SaaS included. Your own code is
133
+ never affected. The only obligation is that if you ship a product containing
134
+ *modified copies of wreath's own files*, those file changes must remain
135
+ source-available to your recipients.
136
+
137
+ **The spirit of this release** (a request, not a license term): if you make
138
+ substantial improvements to wreath — bug fixes, features, performance work —
139
+ we'd love to see them upstream rather than living in a fork. Massive divergent
140
+ forks are legal; they're just not the point. The MPL grants no rights to the
141
+ "wreath" name (§2.3), so a fork should pick its own.
@@ -0,0 +1,126 @@
1
+ # Wreath
2
+
3
+ A wreath is a circle of separate things — leaves, branches, small flowers —
4
+ gathered and woven until they hold a single shape. That is the idea behind this
5
+ framework. A web application is made of many parts: routing, validation,
6
+ authentication, data access, and the server that carries it all. Wreath gathers
7
+ those parts into one coherent whole and gives each of them a clear, honest place
8
+ to live.
9
+
10
+ **The brand is allowed to be poetic. The API is not.** A middleware is called a
11
+ middleware. A dependency is a dependency. Routes are routes, startup is startup,
12
+ a connection pool is a connection pool. You should be able to guess where a
13
+ feature lives without first learning our vocabulary.
14
+
15
+ Wreath is a Python 3.14-first ASGI framework. It runs behind any ASGI server you
16
+ already use, and it also brings its own: a native HTTP/1.1, HTTP/2, and HTTP/3
17
+ server that moves the hot path into C when you want the speed — without asking
18
+ you to change a line of your application.
19
+
20
+ > **Status:** pre-1.0. The feature set below is implemented and tested; expect
21
+ > additions, and expect what already works to keep working as it grows.
22
+
23
+ ```python
24
+ from wreath import Wreath, Request
25
+
26
+ app = Wreath()
27
+
28
+ @app.get("/hello/{name}")
29
+ async def hello(request: Request, name: str) -> dict:
30
+ return {"hello": name}
31
+ ```
32
+
33
+ ```bash
34
+ wreath run app:app # the native Wreath server
35
+ uvicorn app:app # or any ASGI server you prefer
36
+ ```
37
+
38
+ ## What's in the circle
39
+
40
+ Everything you need to build a real service, each part kept in its own
41
+ clearly-named module:
42
+
43
+ - **Routing & binding** — decorator routes on the app or composable `Router`
44
+ modules; typed parameters validated at startup-compiled speed (`wreath.router`,
45
+ `wreath.binding`).
46
+ - **Requests & responses** — JSON, text, HTML, streaming, file, redirect, and
47
+ RFC 9457 problem responses (`wreath.request`, `wreath.response`).
48
+ - **Middleware** — CORS, security headers, compression, rate limiting, request
49
+ IDs, timing, proxy headers, CSRF, sessions, trusted hosts (`wreath.middleware`).
50
+ - **Auth** — authentication (identity) and authorization (roles, permissions, a
51
+ Cedar policy engine), kept firmly apart (`wreath.auth`, `wreath.authorization`).
52
+ - **Data** — a native PostgreSQL driver and an ORM built on it, in a strict
53
+ one-way relationship (`wreath.postgres`, `wreath.orm`).
54
+ - **More of the whole** — WebSockets, an outbound HTTP client, signed webhooks,
55
+ templates, an application cache, OpenAPI with typed client generation, and an
56
+ in-process test client.
57
+ - **A native server** — HTTP/1.1, HTTP/2, and optional HTTP/3, with a pure-Python
58
+ reference always in agreement (`wreath.server`; force pure with `WREATH_PURE=1`).
59
+
60
+ ## Install
61
+
62
+ Wreath targets Python 3.14 and newer.
63
+
64
+ ```bash
65
+ pip install wreath
66
+ # or
67
+ uv add wreath
68
+ ```
69
+
70
+ Installing from source builds the native C extensions automatically, and falls
71
+ back to the pure-Python implementation when no compiler is available.
72
+
73
+ ## Documentation
74
+
75
+ - **Getting started** — install and build your first app.
76
+ - **Guides** — a page for each part of the framework, with the reasoning behind
77
+ it.
78
+ - **Cookbook** — recipes for developers, and a set written for coding agents.
79
+ - **API reference** — every public module, generated from the source.
80
+
81
+ Build the docs locally:
82
+
83
+ ```bash
84
+ uv run wreath-docs # strict build; --serve to watch
85
+ ```
86
+
87
+ ## Development
88
+
89
+ ```bash
90
+ uv sync # dev group; builds the native extensions
91
+ uv run wreath-check # ruff, ty, pytest, native lints, trace baseline
92
+ uv run pytest # the default suite (~3.5s, run serially)
93
+ uv run pytest -m '' -n 4 # everything, including network/fuzz/performance
94
+ ```
95
+
96
+ Contributing — including the invariants a change must preserve and how to verify
97
+ one — is documented in [`AGENTS.md`](AGENTS.md) and the cookbook's
98
+ [section for coding agents](docs/cookbook/agents/index.md).
99
+
100
+ ## Benchmarks
101
+
102
+ Wreath ships equivalent applications across several frameworks and a renderer
103
+ that reports medians with their run-to-run range, so a real win can be told from
104
+ noise. Results are regenerated locally; render the holistic report with:
105
+
106
+ ```bash
107
+ uv run wreath-bench-report # one report across every benchmark family
108
+ ```
109
+
110
+ See [`benchmarks/README.md`](benchmarks/README.md) for methodology.
111
+
112
+ ## License
113
+
114
+ Wreath is licensed under the [Mozilla Public License 2.0](LICENSE) (MPL-2.0).
115
+
116
+ In practice: use it freely, commercially, as a dependency of anything —
117
+ proprietary applications and closed-source SaaS included. Your own code is
118
+ never affected. The only obligation is that if you ship a product containing
119
+ *modified copies of wreath's own files*, those file changes must remain
120
+ source-available to your recipients.
121
+
122
+ **The spirit of this release** (a request, not a license term): if you make
123
+ substantial improvements to wreath — bug fixes, features, performance work —
124
+ we'd love to see them upstream rather than living in a fork. Massive divergent
125
+ forks are legal; they're just not the point. The MPL grants no rights to the
126
+ "wreath" name (§2.3), so a fork should pick its own.