piccolo 1.26.1__tar.gz → 1.27.1__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 (397) hide show
  1. {piccolo-1.26.1 → piccolo-1.27.1}/PKG-INFO +1 -1
  2. piccolo-1.27.1/piccolo/__init__.py +1 -0
  3. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/serialisation.py +1 -1
  4. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/piccolo_migrations/2019-11-14T21-52-21.py +5 -10
  5. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/piccolo_migrations/2020-06-11T21-38-55.py +2 -4
  6. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/piccolo_migrations/2021-04-30T16-14-15.py +2 -4
  7. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/base.py +17 -4
  8. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/column_types.py +55 -46
  9. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo.egg-info/PKG-INFO +1 -1
  10. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/test_migration_manager.py +5 -10
  11. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_migrations/2020-03-31T20-38-22.py +1 -2
  12. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_boolean.py +1 -1
  13. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_primary_key.py +2 -2
  14. piccolo-1.26.1/piccolo/__init__.py +0 -1
  15. {piccolo-1.26.1 → piccolo-1.27.1}/LICENSE +0 -0
  16. {piccolo-1.26.1 → piccolo-1.27.1}/README.md +0 -0
  17. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/__init__.py +0 -0
  18. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/__init__.py +0 -0
  19. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/commands/__init__.py +0 -0
  20. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/commands/new.py +0 -0
  21. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/commands/show_all.py +0 -0
  22. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/commands/templates/piccolo_app.py.jinja +0 -0
  23. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/commands/templates/tables.py.jinja +0 -0
  24. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/app/piccolo_app.py +0 -0
  25. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/__init__.py +0 -0
  26. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/__init__.py +0 -0
  27. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/new.py +0 -0
  28. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/README.md.jinja +0 -0
  29. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_blacksheep_app.py.jinja +0 -0
  30. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_esmerald_app.py.jinja +0 -0
  31. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_falcon_app.py.jinja +0 -0
  32. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_fastapi_app.py.jinja +0 -0
  33. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_lilya_app.py.jinja +0 -0
  34. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_litestar_app.py.jinja +0 -0
  35. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_quart_app.py.jinja +0 -0
  36. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_sanic_app.py.jinja +0 -0
  37. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/_starlette_app.py.jinja +0 -0
  38. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/app.py.jinja +0 -0
  39. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/conftest.py.jinja +0 -0
  40. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/__init__.py.jinja +0 -0
  41. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_blacksheep_endpoints.py.jinja +0 -0
  42. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_esmerald_endpoints.py.jinja +0 -0
  43. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_falcon_endpoints.py.jinja +0 -0
  44. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_lilya_endpoints.py.jinja +0 -0
  45. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_litestar_endpoints.py.jinja +0 -0
  46. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_quart_endpoints.py.jinja +0 -0
  47. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_sanic_endpoints.py.jinja +0 -0
  48. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/_starlette_endpoints.py.jinja +0 -0
  49. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/endpoints.py.jinja +0 -0
  50. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/piccolo_app.py.jinja +0 -0
  51. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/piccolo_migrations/README.md +0 -0
  52. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/tables.py.jinja +0 -0
  53. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/templates/base.html.jinja_raw +0 -0
  54. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/home/templates/home.html.jinja_raw +0 -0
  55. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/main.py.jinja +0 -0
  56. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/piccolo_conf.py.jinja +0 -0
  57. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/piccolo_conf_test.py.jinja +0 -0
  58. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/requirements.txt.jinja +0 -0
  59. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/static/favicon.ico +0 -0
  60. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/commands/templates/app/static/main.css +0 -0
  61. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/asgi/piccolo_app.py +0 -0
  62. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/fixtures/__init__.py +0 -0
  63. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/fixtures/commands/__init__.py +0 -0
  64. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/fixtures/commands/dump.py +0 -0
  65. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/fixtures/commands/load.py +0 -0
  66. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/fixtures/commands/shared.py +0 -0
  67. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/fixtures/piccolo_app.py +0 -0
  68. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/meta/__init__.py +0 -0
  69. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/meta/commands/__init__.py +0 -0
  70. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/meta/commands/version.py +0 -0
  71. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/meta/piccolo_app.py +0 -0
  72. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/__init__.py +0 -0
  73. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/__init__.py +0 -0
  74. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/diffable_table.py +0 -0
  75. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/migration_manager.py +0 -0
  76. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/operations.py +0 -0
  77. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/schema_differ.py +0 -0
  78. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/schema_snapshot.py +0 -0
  79. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/auto/serialisation_legacy.py +0 -0
  80. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/__init__.py +0 -0
  81. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/backwards.py +0 -0
  82. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/base.py +0 -0
  83. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/check.py +0 -0
  84. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/clean.py +0 -0
  85. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/forwards.py +0 -0
  86. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/new.py +0 -0
  87. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/commands/templates/migration.py.jinja +0 -0
  88. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/piccolo_app.py +0 -0
  89. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/migrations/tables.py +0 -0
  90. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/playground/__init__.py +0 -0
  91. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/playground/commands/__init__.py +0 -0
  92. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/playground/commands/run.py +0 -0
  93. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/playground/piccolo_app.py +0 -0
  94. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/project/__init__.py +0 -0
  95. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/project/commands/__init__.py +0 -0
  96. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/project/commands/new.py +0 -0
  97. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/project/commands/templates/piccolo_conf.py.jinja +0 -0
  98. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/project/piccolo_app.py +0 -0
  99. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/__init__.py +0 -0
  100. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/commands/__init__.py +0 -0
  101. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/commands/exceptions.py +0 -0
  102. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/commands/generate.py +0 -0
  103. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/commands/graph.py +0 -0
  104. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/commands/templates/graphviz.dot.jinja +0 -0
  105. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/schema/piccolo_app.py +0 -0
  106. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/shell/__init__.py +0 -0
  107. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/shell/commands/__init__.py +0 -0
  108. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/shell/commands/run.py +0 -0
  109. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/shell/piccolo_app.py +0 -0
  110. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/sql_shell/__init__.py +0 -0
  111. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/sql_shell/commands/__init__.py +0 -0
  112. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/sql_shell/commands/run.py +0 -0
  113. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/sql_shell/piccolo_app.py +0 -0
  114. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/tester/__init__.py +0 -0
  115. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/tester/commands/__init__.py +0 -0
  116. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/tester/commands/run.py +0 -0
  117. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/tester/piccolo_app.py +0 -0
  118. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/__init__.py +0 -0
  119. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/commands/__init__.py +0 -0
  120. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/commands/change_password.py +0 -0
  121. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/commands/change_permissions.py +0 -0
  122. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/commands/create.py +0 -0
  123. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/commands/list.py +0 -0
  124. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/piccolo_app.py +0 -0
  125. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/piccolo_migrations/__init__.py +0 -0
  126. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/apps/user/tables.py +0 -0
  127. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/__init__.py +0 -0
  128. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/choices.py +0 -0
  129. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/combination.py +0 -0
  130. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/__init__.py +0 -0
  131. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/base.py +0 -0
  132. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/date.py +0 -0
  133. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/interval.py +0 -0
  134. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/time.py +0 -0
  135. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/timestamp.py +0 -0
  136. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/timestamptz.py +0 -0
  137. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/defaults/uuid.py +0 -0
  138. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/indexes.py +0 -0
  139. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/m2m.py +0 -0
  140. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/operators/__init__.py +0 -0
  141. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/operators/base.py +0 -0
  142. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/operators/comparison.py +0 -0
  143. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/operators/math.py +0 -0
  144. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/operators/string.py +0 -0
  145. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/readable.py +0 -0
  146. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/columns/reference.py +0 -0
  147. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/conf/__init__.py +0 -0
  148. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/conf/apps.py +0 -0
  149. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/custom_types.py +0 -0
  150. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/__init__.py +0 -0
  151. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/base.py +0 -0
  152. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/cockroach.py +0 -0
  153. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/exceptions.py +0 -0
  154. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/finder.py +0 -0
  155. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/postgres.py +0 -0
  156. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/engine/sqlite.py +0 -0
  157. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/main.py +0 -0
  158. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/py.typed +0 -0
  159. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/__init__.py +0 -0
  160. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/base.py +0 -0
  161. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/constraints.py +0 -0
  162. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/__init__.py +0 -0
  163. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/aggregate.py +0 -0
  164. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/base.py +0 -0
  165. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/datetime.py +0 -0
  166. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/math.py +0 -0
  167. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/string.py +0 -0
  168. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/functions/type_conversion.py +0 -0
  169. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/__init__.py +0 -0
  170. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/alter.py +0 -0
  171. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/count.py +0 -0
  172. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/create.py +0 -0
  173. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/create_index.py +0 -0
  174. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/delete.py +0 -0
  175. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/drop_index.py +0 -0
  176. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/exists.py +0 -0
  177. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/indexes.py +0 -0
  178. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/insert.py +0 -0
  179. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/objects.py +0 -0
  180. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/raw.py +0 -0
  181. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/refresh.py +0 -0
  182. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/select.py +0 -0
  183. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/table_exists.py +0 -0
  184. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/methods/update.py +0 -0
  185. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/mixins.py +0 -0
  186. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/operators/__init__.py +0 -0
  187. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/operators/json.py +0 -0
  188. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/query/proxy.py +0 -0
  189. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/querystring.py +0 -0
  190. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/schema.py +0 -0
  191. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/table.py +0 -0
  192. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/table_reflection.py +0 -0
  193. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/testing/__init__.py +0 -0
  194. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/testing/model_builder.py +0 -0
  195. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/testing/random_builder.py +0 -0
  196. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/testing/test_case.py +0 -0
  197. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/__init__.py +0 -0
  198. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/dictionary.py +0 -0
  199. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/encoding.py +0 -0
  200. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/graphlib/__init__.py +0 -0
  201. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/graphlib/_graphlib.py +0 -0
  202. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/lazy_loader.py +0 -0
  203. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/list.py +0 -0
  204. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/naming.py +0 -0
  205. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/objects.py +0 -0
  206. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/printing.py +0 -0
  207. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/pydantic.py +0 -0
  208. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/repr.py +0 -0
  209. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/sql_values.py +0 -0
  210. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/sync.py +0 -0
  211. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo/utils/warnings.py +0 -0
  212. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo.egg-info/SOURCES.txt +0 -0
  213. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo.egg-info/dependency_links.txt +0 -0
  214. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo.egg-info/entry_points.txt +0 -0
  215. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo.egg-info/requires.txt +0 -0
  216. {piccolo-1.26.1 → piccolo-1.27.1}/piccolo.egg-info/top_level.txt +0 -0
  217. {piccolo-1.26.1 → piccolo-1.27.1}/profiling/__init__.py +0 -0
  218. {piccolo-1.26.1 → piccolo-1.27.1}/profiling/run_profile.py +0 -0
  219. {piccolo-1.26.1 → piccolo-1.27.1}/pyproject.toml +0 -0
  220. {piccolo-1.26.1 → piccolo-1.27.1}/setup.cfg +0 -0
  221. {piccolo-1.26.1 → piccolo-1.27.1}/setup.py +0 -0
  222. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/__init__.py +0 -0
  223. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/app/__init__.py +0 -0
  224. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/app/commands/__init__.py +0 -0
  225. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/app/commands/test_new.py +0 -0
  226. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/app/commands/test_show_all.py +0 -0
  227. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/asgi/__init__.py +0 -0
  228. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/asgi/commands/__init__.py +0 -0
  229. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/asgi/commands/test_new.py +0 -0
  230. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/fixtures/__init__.py +0 -0
  231. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/fixtures/commands/__init__.py +0 -0
  232. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/fixtures/commands/test_dump_load.py +0 -0
  233. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/fixtures/commands/test_shared.py +0 -0
  234. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/meta/__init__.py +0 -0
  235. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/meta/commands/__init__.py +0 -0
  236. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/meta/commands/test_version.py +0 -0
  237. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/__init__.py +0 -0
  238. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/__init__.py +0 -0
  239. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/integration/__init__.py +0 -0
  240. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/integration/test_migrations.py +0 -0
  241. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/test_diffable_table.py +0 -0
  242. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/test_schema_differ.py +0 -0
  243. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/test_schema_snapshot.py +0 -0
  244. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/auto/test_serialisation.py +0 -0
  245. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/__init__.py +0 -0
  246. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_base.py +0 -0
  247. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_check.py +0 -0
  248. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_clean.py +0 -0
  249. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_forwards_backwards.py +0 -0
  250. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_migrations/__init__.py +0 -0
  251. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/commands/test_new.py +0 -0
  252. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/migrations/test_migration.py +0 -0
  253. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/project/__init__.py +0 -0
  254. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/project/commands/__init__.py +0 -0
  255. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/project/commands/test_new.py +0 -0
  256. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/schema/__init__.py +0 -0
  257. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/shell/__init__.py +0 -0
  258. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/shell/commands/__init__.py +0 -0
  259. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/shell/commands/test_run.py +0 -0
  260. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/sql_shell/__init__.py +0 -0
  261. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/sql_shell/commands/__init__.py +0 -0
  262. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/sql_shell/commands/test_run.py +0 -0
  263. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/tester/__init__.py +0 -0
  264. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/__init__.py +0 -0
  265. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/commands/__init__.py +0 -0
  266. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/commands/test_change_password.py +0 -0
  267. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/commands/test_change_permissions.py +0 -0
  268. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/commands/test_create.py +0 -0
  269. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/commands/test_list.py +0 -0
  270. {piccolo-1.26.1 → piccolo-1.27.1}/tests/apps/user/test_tables.py +0 -0
  271. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/__init__.py +0 -0
  272. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/m2m/__init__.py +0 -0
  273. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/m2m/base.py +0 -0
  274. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/m2m/test_m2m.py +0 -0
  275. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/m2m/test_m2m_schema.py +0 -0
  276. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_array.py +0 -0
  277. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_base.py +0 -0
  278. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_bigint.py +0 -0
  279. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_bytea.py +0 -0
  280. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_choices.py +0 -0
  281. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_combination.py +0 -0
  282. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_date.py +0 -0
  283. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_db_column_name.py +0 -0
  284. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_defaults.py +0 -0
  285. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_double_precision.py +0 -0
  286. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_get_sql_value.py +0 -0
  287. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_integer.py +0 -0
  288. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_interval.py +0 -0
  289. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_json.py +0 -0
  290. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_jsonb.py +0 -0
  291. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_numeric.py +0 -0
  292. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_readable.py +0 -0
  293. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_real.py +0 -0
  294. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_reference.py +0 -0
  295. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_reserved_column_names.py +0 -0
  296. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_smallint.py +0 -0
  297. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_time.py +0 -0
  298. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_timestamp.py +0 -0
  299. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_timestamptz.py +0 -0
  300. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_uuid.py +0 -0
  301. {piccolo-1.26.1 → piccolo-1.27.1}/tests/columns/test_varchar.py +0 -0
  302. {piccolo-1.26.1 → piccolo-1.27.1}/tests/conf/__init__.py +0 -0
  303. {piccolo-1.26.1 → piccolo-1.27.1}/tests/conf/example.py +0 -0
  304. {piccolo-1.26.1 → piccolo-1.27.1}/tests/conf/test_apps.py +0 -0
  305. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/__init__.py +0 -0
  306. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/test_extra_nodes.py +0 -0
  307. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/test_logging.py +0 -0
  308. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/test_nested_transaction.py +0 -0
  309. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/test_pool.py +0 -0
  310. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/test_transaction.py +0 -0
  311. {piccolo-1.26.1 → piccolo-1.27.1}/tests/engine/test_version_parsing.py +0 -0
  312. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/__init__.py +0 -0
  313. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/mega/__init__.py +0 -0
  314. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/mega/piccolo_app.py +0 -0
  315. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/mega/piccolo_migrations/2021-09-20T21-23-25-698988.py +0 -0
  316. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/mega/piccolo_migrations/__init__.py +0 -0
  317. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/mega/tables.py +0 -0
  318. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/music/__init__.py +0 -0
  319. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/music/piccolo_app.py +0 -0
  320. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/music/tables.py +0 -0
  321. {piccolo-1.26.1 → piccolo-1.27.1}/tests/example_apps/music/tables_detailed.py +0 -0
  322. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/__init__.py +0 -0
  323. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/__init__.py +0 -0
  324. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/base.py +0 -0
  325. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/test_datetime.py +0 -0
  326. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/test_functions.py +0 -0
  327. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/test_math.py +0 -0
  328. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/test_string.py +0 -0
  329. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/functions/test_type_conversion.py +0 -0
  330. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/mixins/__init__.py +0 -0
  331. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/mixins/test_columns_delegate.py +0 -0
  332. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/mixins/test_order_by_delegate.py +0 -0
  333. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/operators/__init__.py +0 -0
  334. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/operators/test_json.py +0 -0
  335. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/test_await.py +0 -0
  336. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/test_camelcase.py +0 -0
  337. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/test_freeze.py +0 -0
  338. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/test_gather.py +0 -0
  339. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/test_querystring.py +0 -0
  340. {piccolo-1.26.1 → piccolo-1.27.1}/tests/query/test_slots.py +0 -0
  341. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/__init__.py +0 -0
  342. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/__init__.py +0 -0
  343. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_create.py +0 -0
  344. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_get_related.py +0 -0
  345. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_get_related_readable.py +0 -0
  346. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_instantiate.py +0 -0
  347. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_remove.py +0 -0
  348. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_save.py +0 -0
  349. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/instance/test_to_dict.py +0 -0
  350. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_all_columns.py +0 -0
  351. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_alter.py +0 -0
  352. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_batch.py +0 -0
  353. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_callback.py +0 -0
  354. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_constructor.py +0 -0
  355. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_count.py +0 -0
  356. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_create.py +0 -0
  357. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_create_db_tables.py +0 -0
  358. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_create_table_class.py +0 -0
  359. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_delete.py +0 -0
  360. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_drop_db_tables.py +0 -0
  361. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_exists.py +0 -0
  362. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_from_dict.py +0 -0
  363. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_indexes.py +0 -0
  364. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_inheritance.py +0 -0
  365. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_insert.py +0 -0
  366. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_join.py +0 -0
  367. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_join_on.py +0 -0
  368. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_metaclass.py +0 -0
  369. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_objects.py +0 -0
  370. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_output.py +0 -0
  371. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_raw.py +0 -0
  372. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_ref.py +0 -0
  373. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_refresh.py +0 -0
  374. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_repr.py +0 -0
  375. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_select.py +0 -0
  376. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_str.py +0 -0
  377. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_table_exists.py +0 -0
  378. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_update.py +0 -0
  379. {piccolo-1.26.1 → piccolo-1.27.1}/tests/table/test_update_self.py +0 -0
  380. {piccolo-1.26.1 → piccolo-1.27.1}/tests/test_main.py +0 -0
  381. {piccolo-1.26.1 → piccolo-1.27.1}/tests/test_schema.py +0 -0
  382. {piccolo-1.26.1 → piccolo-1.27.1}/tests/testing/__init__.py +0 -0
  383. {piccolo-1.26.1 → piccolo-1.27.1}/tests/testing/test_model_builder.py +0 -0
  384. {piccolo-1.26.1 → piccolo-1.27.1}/tests/testing/test_random_builder.py +0 -0
  385. {piccolo-1.26.1 → piccolo-1.27.1}/tests/testing/test_test_case.py +0 -0
  386. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/__init__.py +0 -0
  387. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_dictionary.py +0 -0
  388. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_encoding.py +0 -0
  389. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_lazy_loader.py +0 -0
  390. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_list.py +0 -0
  391. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_naming.py +0 -0
  392. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_printing.py +0 -0
  393. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_pydantic.py +0 -0
  394. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_sql_values.py +0 -0
  395. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_sync.py +0 -0
  396. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_table_reflection.py +0 -0
  397. {piccolo-1.26.1 → piccolo-1.27.1}/tests/utils/test_warnings.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piccolo
3
- Version: 1.26.1
3
+ Version: 1.27.1
4
4
  Summary: A fast, user friendly ORM and query builder which supports asyncio.
5
5
  Home-page: https://github.com/piccolo-orm/piccolo
6
6
  Author: Daniel Townsend
@@ -0,0 +1 @@
1
+ __VERSION__ = "1.27.1"
@@ -61,7 +61,7 @@ class UniqueGlobalNamesMeta(type):
61
61
 
62
62
  @staticmethod
63
63
  def get_unique_class_attribute_values(
64
- class_attributes: t.Dict[str, t.Any]
64
+ class_attributes: t.Dict[str, t.Any],
65
65
  ) -> t.Set[t.Any]:
66
66
  """
67
67
  Return class attribute values.
@@ -15,8 +15,7 @@ async def forwards():
15
15
  "length": 100,
16
16
  "default": "",
17
17
  "null": False,
18
- "primary": False,
19
- "key": False,
18
+ "primary_key": False,
20
19
  "unique": True,
21
20
  "index": False,
22
21
  },
@@ -30,8 +29,7 @@ async def forwards():
30
29
  "length": 255,
31
30
  "default": "",
32
31
  "null": False,
33
- "primary": False,
34
- "key": False,
32
+ "primary_key": False,
35
33
  "unique": False,
36
34
  "index": False,
37
35
  },
@@ -45,8 +43,7 @@ async def forwards():
45
43
  "length": 255,
46
44
  "default": "",
47
45
  "null": False,
48
- "primary": False,
49
- "key": False,
46
+ "primary_key": False,
50
47
  "unique": True,
51
48
  "index": False,
52
49
  },
@@ -59,8 +56,7 @@ async def forwards():
59
56
  params={
60
57
  "default": False,
61
58
  "null": False,
62
- "primary": False,
63
- "key": False,
59
+ "primary_key": False,
64
60
  "unique": False,
65
61
  "index": False,
66
62
  },
@@ -73,8 +69,7 @@ async def forwards():
73
69
  params={
74
70
  "default": False,
75
71
  "null": False,
76
- "primary": False,
77
- "key": False,
72
+ "primary_key": False,
78
73
  "unique": False,
79
74
  "index": False,
80
75
  },
@@ -15,8 +15,7 @@ async def forwards():
15
15
  "length": 255,
16
16
  "default": "",
17
17
  "null": True,
18
- "primary": False,
19
- "key": False,
18
+ "primary_key": False,
20
19
  "unique": False,
21
20
  "index": False,
22
21
  },
@@ -31,8 +30,7 @@ async def forwards():
31
30
  "length": 255,
32
31
  "default": "",
33
32
  "null": True,
34
- "primary": False,
35
- "key": False,
33
+ "primary_key": False,
36
34
  "unique": False,
37
35
  "index": False,
38
36
  },
@@ -18,8 +18,7 @@ async def forwards():
18
18
  params={
19
19
  "default": False,
20
20
  "null": False,
21
- "primary": False,
22
- "key": False,
21
+ "primary_key": False,
23
22
  "unique": False,
24
23
  "index": False,
25
24
  "index_method": IndexMethod.btree,
@@ -35,8 +34,7 @@ async def forwards():
35
34
  params={
36
35
  "default": None,
37
36
  "null": True,
38
- "primary": False,
39
- "key": False,
37
+ "primary_key": False,
40
38
  "unique": False,
41
39
  "index": False,
42
40
  "index_method": IndexMethod.btree,
@@ -350,6 +350,20 @@ class ColumnMeta:
350
350
  return self.copy()
351
351
 
352
352
 
353
+ class ColumnKwargs(t.TypedDict, total=False):
354
+ null: bool
355
+ primary_key: bool
356
+ unique: bool
357
+ index: bool
358
+ index_method: IndexMethod
359
+ required: bool
360
+ help_text: t.Optional[str]
361
+ choices: t.Optional[t.Type[Enum]]
362
+ db_column_name: t.Optional[str]
363
+ secret: bool
364
+ auto_update: t.Any
365
+
366
+
353
367
  class Column(Selectable):
354
368
  """
355
369
  All other columns inherit from ``Column``. Don't use it directly.
@@ -467,10 +481,9 @@ class Column(Selectable):
467
481
  auto_update: t.Any = ...,
468
482
  **kwargs,
469
483
  ) -> None:
470
- # This is for backwards compatibility - originally there were two
471
- # separate arguments `primary` and `key`, but they have now been merged
472
- # into `primary_key`.
473
- if (kwargs.get("primary") is True) and (kwargs.get("key") is True):
484
+ # This is for backwards compatibility - originally the `primary_key`
485
+ # argument was called `primary`.
486
+ if kwargs.get("primary") is True:
474
487
  primary_key = True
475
488
 
476
489
  # Used for migrations.
@@ -35,8 +35,11 @@ from dataclasses import dataclass
35
35
  from datetime import date, datetime, time, timedelta
36
36
  from enum import Enum
37
37
 
38
+ from typing_extensions import Unpack
39
+
38
40
  from piccolo.columns.base import (
39
41
  Column,
42
+ ColumnKwargs,
40
43
  ForeignKeyMeta,
41
44
  OnDelete,
42
45
  OnUpdate,
@@ -317,14 +320,13 @@ class Varchar(Column):
317
320
  self,
318
321
  length: t.Optional[int] = 255,
319
322
  default: t.Union[str, Enum, t.Callable[[], str], None] = "",
320
- **kwargs,
323
+ **kwargs: Unpack[ColumnKwargs],
321
324
  ) -> None:
322
325
  self._validate_default(default, (str, None))
323
326
 
324
327
  self.length = length
325
328
  self.default = default
326
- kwargs.update({"length": length, "default": default})
327
- super().__init__(**kwargs)
329
+ super().__init__(length=length, default=default, **kwargs)
328
330
 
329
331
  @property
330
332
  def column_type(self):
@@ -426,12 +428,11 @@ class Text(Column):
426
428
  def __init__(
427
429
  self,
428
430
  default: t.Union[str, Enum, None, t.Callable[[], str]] = "",
429
- **kwargs,
431
+ **kwargs: Unpack[ColumnKwargs],
430
432
  ) -> None:
431
433
  self._validate_default(default, (str, None))
432
434
  self.default = default
433
- kwargs.update({"default": default})
434
- super().__init__(**kwargs)
435
+ super().__init__(default=default, **kwargs)
435
436
 
436
437
  ###########################################################################
437
438
  # For update queries
@@ -490,7 +491,11 @@ class UUID(Column):
490
491
 
491
492
  value_type = uuid.UUID
492
493
 
493
- def __init__(self, default: UUIDArg = UUID4(), **kwargs) -> None:
494
+ def __init__(
495
+ self,
496
+ default: UUIDArg = UUID4(),
497
+ **kwargs: Unpack[ColumnKwargs],
498
+ ) -> None:
494
499
  if default is UUID4:
495
500
  # In case the class is passed in, instead of an instance.
496
501
  default = UUID4()
@@ -509,8 +514,7 @@ class UUID(Column):
509
514
  ) from e
510
515
 
511
516
  self.default = default
512
- kwargs.update({"default": default})
513
- super().__init__(**kwargs)
517
+ super().__init__(default=default, **kwargs)
514
518
 
515
519
  ###########################################################################
516
520
  # Descriptors
@@ -553,12 +557,11 @@ class Integer(Column):
553
557
  def __init__(
554
558
  self,
555
559
  default: t.Union[int, Enum, t.Callable[[], int], None] = 0,
556
- **kwargs,
560
+ **kwargs: Unpack[ColumnKwargs],
557
561
  ) -> None:
558
562
  self._validate_default(default, (int, None))
559
563
  self.default = default
560
- kwargs.update({"default": default})
561
- super().__init__(**kwargs)
564
+ super().__init__(default=default, **kwargs)
562
565
 
563
566
  ###########################################################################
564
567
  # For update queries
@@ -833,7 +836,10 @@ class BigSerial(Serial):
833
836
 
834
837
 
835
838
  class PrimaryKey(Serial):
836
- def __init__(self, **kwargs) -> None:
839
+ def __init__(
840
+ self,
841
+ **kwargs: Unpack[ColumnKwargs],
842
+ ) -> None:
837
843
  # Set the index to False, as a database should automatically create
838
844
  # an index for a PrimaryKey column.
839
845
  kwargs.update({"primary_key": True, "index": False})
@@ -896,7 +902,9 @@ class Timestamp(Column):
896
902
  timedelta_delegate = TimedeltaDelegate()
897
903
 
898
904
  def __init__(
899
- self, default: TimestampArg = TimestampNow(), **kwargs
905
+ self,
906
+ default: TimestampArg = TimestampNow(),
907
+ **kwargs: Unpack[ColumnKwargs],
900
908
  ) -> None:
901
909
  self._validate_default(default, TimestampArg.__args__) # type: ignore
902
910
 
@@ -912,8 +920,7 @@ class Timestamp(Column):
912
920
  default = TimestampNow()
913
921
 
914
922
  self.default = default
915
- kwargs.update({"default": default})
916
- super().__init__(**kwargs)
923
+ super().__init__(default=default, **kwargs)
917
924
 
918
925
  ###########################################################################
919
926
  # For update queries
@@ -994,7 +1001,9 @@ class Timestamptz(Column):
994
1001
  timedelta_delegate = TimedeltaDelegate()
995
1002
 
996
1003
  def __init__(
997
- self, default: TimestamptzArg = TimestamptzNow(), **kwargs
1004
+ self,
1005
+ default: TimestamptzArg = TimestamptzNow(),
1006
+ **kwargs: Unpack[ColumnKwargs],
998
1007
  ) -> None:
999
1008
  self._validate_default(
1000
1009
  default, TimestamptzArg.__args__ # type: ignore
@@ -1007,8 +1016,7 @@ class Timestamptz(Column):
1007
1016
  default = TimestamptzNow()
1008
1017
 
1009
1018
  self.default = default
1010
- kwargs.update({"default": default})
1011
- super().__init__(**kwargs)
1019
+ super().__init__(default=default, **kwargs)
1012
1020
 
1013
1021
  ###########################################################################
1014
1022
  # For update queries
@@ -1075,7 +1083,11 @@ class Date(Column):
1075
1083
  value_type = date
1076
1084
  timedelta_delegate = TimedeltaDelegate()
1077
1085
 
1078
- def __init__(self, default: DateArg = DateNow(), **kwargs) -> None:
1086
+ def __init__(
1087
+ self,
1088
+ default: DateArg = DateNow(),
1089
+ **kwargs: Unpack[ColumnKwargs],
1090
+ ) -> None:
1079
1091
  self._validate_default(default, DateArg.__args__) # type: ignore
1080
1092
 
1081
1093
  if isinstance(default, date):
@@ -1085,8 +1097,7 @@ class Date(Column):
1085
1097
  default = DateNow()
1086
1098
 
1087
1099
  self.default = default
1088
- kwargs.update({"default": default})
1089
- super().__init__(**kwargs)
1100
+ super().__init__(default=default, **kwargs)
1090
1101
 
1091
1102
  ###########################################################################
1092
1103
  # For update queries
@@ -1153,15 +1164,18 @@ class Time(Column):
1153
1164
  value_type = time
1154
1165
  timedelta_delegate = TimedeltaDelegate()
1155
1166
 
1156
- def __init__(self, default: TimeArg = TimeNow(), **kwargs) -> None:
1167
+ def __init__(
1168
+ self,
1169
+ default: TimeArg = TimeNow(),
1170
+ **kwargs: Unpack[ColumnKwargs],
1171
+ ) -> None:
1157
1172
  self._validate_default(default, TimeArg.__args__) # type: ignore
1158
1173
 
1159
1174
  if isinstance(default, time):
1160
1175
  default = TimeCustom.from_time(default)
1161
1176
 
1162
1177
  self.default = default
1163
- kwargs.update({"default": default})
1164
- super().__init__(**kwargs)
1178
+ super().__init__(default=default, **kwargs)
1165
1179
 
1166
1180
  ###########################################################################
1167
1181
  # For update queries
@@ -1229,7 +1243,9 @@ class Interval(Column):
1229
1243
  timedelta_delegate = TimedeltaDelegate()
1230
1244
 
1231
1245
  def __init__(
1232
- self, default: IntervalArg = IntervalCustom(), **kwargs
1246
+ self,
1247
+ default: IntervalArg = IntervalCustom(),
1248
+ **kwargs: Unpack[ColumnKwargs],
1233
1249
  ) -> None:
1234
1250
  self._validate_default(default, IntervalArg.__args__) # type: ignore
1235
1251
 
@@ -1237,8 +1253,7 @@ class Interval(Column):
1237
1253
  default = IntervalCustom.from_timedelta(default)
1238
1254
 
1239
1255
  self.default = default
1240
- kwargs.update({"default": default})
1241
- super().__init__(**kwargs)
1256
+ super().__init__(default=default, **kwargs)
1242
1257
 
1243
1258
  @property
1244
1259
  def column_type(self):
@@ -1319,12 +1334,11 @@ class Boolean(Column):
1319
1334
  def __init__(
1320
1335
  self,
1321
1336
  default: t.Union[bool, Enum, t.Callable[[], bool], None] = False,
1322
- **kwargs,
1337
+ **kwargs: Unpack[ColumnKwargs],
1323
1338
  ) -> None:
1324
1339
  self._validate_default(default, (bool, None))
1325
1340
  self.default = default
1326
- kwargs.update({"default": default})
1327
- super().__init__(**kwargs)
1341
+ super().__init__(default=default, **kwargs)
1328
1342
 
1329
1343
  def eq(self, value) -> Where:
1330
1344
  """
@@ -1448,7 +1462,7 @@ class Numeric(Column):
1448
1462
  default: t.Union[
1449
1463
  decimal.Decimal, Enum, t.Callable[[], decimal.Decimal], None
1450
1464
  ] = decimal.Decimal(0.0),
1451
- **kwargs,
1465
+ **kwargs: Unpack[ColumnKwargs],
1452
1466
  ) -> None:
1453
1467
  if isinstance(digits, tuple):
1454
1468
  if len(digits) != 2:
@@ -1464,8 +1478,7 @@ class Numeric(Column):
1464
1478
 
1465
1479
  self.default = default
1466
1480
  self.digits = digits
1467
- kwargs.update({"default": default, "digits": digits})
1468
- super().__init__(**kwargs)
1481
+ super().__init__(default=default, digits=digits, **kwargs)
1469
1482
 
1470
1483
  ###########################################################################
1471
1484
  # Descriptors
@@ -1530,12 +1543,11 @@ class Real(Column):
1530
1543
  def __init__(
1531
1544
  self,
1532
1545
  default: t.Union[float, Enum, t.Callable[[], float], None] = 0.0,
1533
- **kwargs,
1546
+ **kwargs: Unpack[ColumnKwargs],
1534
1547
  ) -> None:
1535
1548
  self._validate_default(default, (float, None))
1536
1549
  self.default = default
1537
- kwargs.update({"default": default})
1538
- super().__init__(**kwargs)
1550
+ super().__init__(default=default, **kwargs)
1539
1551
 
1540
1552
  ###########################################################################
1541
1553
  # Descriptors
@@ -2302,7 +2314,7 @@ class JSON(Column):
2302
2314
  t.Callable[[], t.Union[str, t.List, t.Dict]],
2303
2315
  None,
2304
2316
  ] = "{}",
2305
- **kwargs,
2317
+ **kwargs: Unpack[ColumnKwargs],
2306
2318
  ) -> None:
2307
2319
  self._validate_default(default, (str, list, dict, None))
2308
2320
 
@@ -2310,8 +2322,7 @@ class JSON(Column):
2310
2322
  default = dump_json(default)
2311
2323
 
2312
2324
  self.default = default
2313
- kwargs.update({"default": default})
2314
- super().__init__(**kwargs)
2325
+ super().__init__(default=default, **kwargs)
2315
2326
 
2316
2327
  self.json_operator: t.Optional[str] = None
2317
2328
 
@@ -2486,7 +2497,7 @@ class Bytea(Column):
2486
2497
  t.Callable[[], bytearray],
2487
2498
  None,
2488
2499
  ] = b"",
2489
- **kwargs,
2500
+ **kwargs: Unpack[ColumnKwargs],
2490
2501
  ) -> None:
2491
2502
  self._validate_default(default, (bytes, bytearray, None))
2492
2503
 
@@ -2494,8 +2505,7 @@ class Bytea(Column):
2494
2505
  default = bytes(default)
2495
2506
 
2496
2507
  self.default = default
2497
- kwargs.update({"default": default})
2498
- super().__init__(**kwargs)
2508
+ super().__init__(default=default, **kwargs)
2499
2509
 
2500
2510
  ###########################################################################
2501
2511
  # Descriptors
@@ -2587,7 +2597,7 @@ class Array(Column):
2587
2597
  default: t.Union[
2588
2598
  t.List, Enum, t.Callable[[], t.List], None
2589
2599
  ] = ListProxy(),
2590
- **kwargs,
2600
+ **kwargs: Unpack[ColumnKwargs],
2591
2601
  ) -> None:
2592
2602
  if isinstance(base_column, ForeignKey):
2593
2603
  raise ValueError("Arrays of ForeignKeys aren't allowed.")
@@ -2613,8 +2623,7 @@ class Array(Column):
2613
2623
  self.base_column = base_column
2614
2624
  self.default = default
2615
2625
  self.index: t.Optional[int] = None
2616
- kwargs.update({"base_column": base_column, "default": default})
2617
- super().__init__(**kwargs)
2626
+ super().__init__(default=default, base_column=base_column, **kwargs)
2618
2627
 
2619
2628
  @property
2620
2629
  def column_type(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piccolo
3
- Version: 1.26.1
3
+ Version: 1.27.1
4
4
  Summary: A fast, user friendly ORM and query builder which supports asyncio.
5
5
  Home-page: https://github.com/piccolo-orm/piccolo
6
6
  Author: Daniel Townsend
@@ -286,8 +286,7 @@ class TestMigrationManager(DBTestCase):
286
286
  "length": 100,
287
287
  "default": "",
288
288
  "null": True,
289
- "primary": False,
290
- "key": False,
289
+ "primary_key": False,
291
290
  "unique": True,
292
291
  "index": False,
293
292
  },
@@ -355,8 +354,7 @@ class TestMigrationManager(DBTestCase):
355
354
  "length": 100,
356
355
  "default": "",
357
356
  "null": True,
358
- "primary": False,
359
- "key": False,
357
+ "primary_key": False,
360
358
  "unique": True,
361
359
  "index": True,
362
360
  },
@@ -402,8 +400,7 @@ class TestMigrationManager(DBTestCase):
402
400
  "on_update": OnUpdate.cascade,
403
401
  "default": None,
404
402
  "null": True,
405
- "primary": False,
406
- "key": False,
403
+ "primary_key": False,
407
404
  "unique": False,
408
405
  "index": False,
409
406
  },
@@ -449,8 +446,7 @@ class TestMigrationManager(DBTestCase):
449
446
  "on_update": OnUpdate.cascade,
450
447
  "default": None,
451
448
  "null": True,
452
- "primary": False,
453
- "key": False,
449
+ "primary_key": False,
454
450
  "unique": False,
455
451
  "index": False,
456
452
  },
@@ -505,8 +501,7 @@ class TestMigrationManager(DBTestCase):
505
501
  "length": 100,
506
502
  "default": "",
507
503
  "null": False,
508
- "primary": False,
509
- "key": False,
504
+ "primary_key": False,
510
505
  "unique": True,
511
506
  "index": False,
512
507
  },
@@ -15,8 +15,7 @@ async def forwards():
15
15
  "length": 150,
16
16
  "default": "",
17
17
  "null": True,
18
- "primary": False,
19
- "key": False,
18
+ "primary_key": False,
20
19
  "unique": False,
21
20
  "index": False,
22
21
  },
@@ -6,7 +6,7 @@ from piccolo.testing.test_case import TableTest
6
6
 
7
7
 
8
8
  class MyTable(Table):
9
- boolean = Boolean(boolean=False, null=True)
9
+ boolean = Boolean(default=False, null=True)
10
10
 
11
11
 
12
12
  class TestBoolean(TableTest):
@@ -75,12 +75,12 @@ class TestPrimaryKeyUUID(TableTest):
75
75
 
76
76
 
77
77
  class Manager(Table):
78
- pk = UUID(primary=True, key=True)
78
+ pk = UUID(primary_key=True)
79
79
  name = Varchar()
80
80
 
81
81
 
82
82
  class Band(Table):
83
- pk = UUID(primary=True, key=True)
83
+ pk = UUID(primary_key=True)
84
84
  name = Varchar()
85
85
  manager = ForeignKey(Manager)
86
86
 
@@ -1 +0,0 @@
1
- __VERSION__ = "1.26.1"
File without changes
File without changes