plain 0.1.2__py3-none-any.whl → 0.2.1__py3-none-any.whl

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 (38) hide show
  1. plain/assets/README.md +69 -31
  2. plain/assets/__init__.py +0 -6
  3. plain/assets/compile.py +121 -0
  4. plain/assets/finders.py +26 -218
  5. plain/assets/fingerprints.py +38 -0
  6. plain/assets/urls.py +31 -0
  7. plain/assets/views.py +263 -0
  8. plain/cli/cli.py +67 -5
  9. plain/packages/config.py +5 -5
  10. plain/packages/registry.py +1 -7
  11. plain/preflight/urls.py +0 -10
  12. plain/runtime/README.md +0 -1
  13. plain/runtime/global_settings.py +5 -16
  14. plain/runtime/user_settings.py +0 -49
  15. plain/templates/jinja/globals.py +1 -1
  16. plain/test/__init__.py +0 -8
  17. plain/test/client.py +36 -16
  18. plain/views/base.py +5 -3
  19. plain/views/errors.py +7 -0
  20. {plain-0.1.2.dist-info → plain-0.2.1.dist-info}/LICENSE +0 -24
  21. {plain-0.1.2.dist-info → plain-0.2.1.dist-info}/METADATA +1 -1
  22. {plain-0.1.2.dist-info → plain-0.2.1.dist-info}/RECORD +24 -34
  23. plain/assets/preflight.py +0 -14
  24. plain/assets/storage.py +0 -916
  25. plain/assets/utils.py +0 -52
  26. plain/assets/whitenoise/__init__.py +0 -5
  27. plain/assets/whitenoise/base.py +0 -259
  28. plain/assets/whitenoise/compress.py +0 -189
  29. plain/assets/whitenoise/media_types.py +0 -137
  30. plain/assets/whitenoise/middleware.py +0 -197
  31. plain/assets/whitenoise/responders.py +0 -286
  32. plain/assets/whitenoise/storage.py +0 -178
  33. plain/assets/whitenoise/string_utils.py +0 -13
  34. plain/internal/legacy/management/commands/__init__.py +0 -0
  35. plain/internal/legacy/management/commands/collectstatic.py +0 -297
  36. plain/test/utils.py +0 -255
  37. {plain-0.1.2.dist-info → plain-0.2.1.dist-info}/WHEEL +0 -0
  38. {plain-0.1.2.dist-info → plain-0.2.1.dist-info}/entry_points.txt +0 -0
@@ -59,27 +59,3 @@ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
59
59
  ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
60
60
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
61
61
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
62
-
63
-
64
- ## This package contains code forked from github.com/evansd/whitenoise
65
-
66
- The MIT License (MIT)
67
-
68
- Copyright (c) 2013 David Evans
69
-
70
- Permission is hereby granted, free of charge, to any person obtaining a copy of
71
- this software and associated documentation files (the "Software"), to deal in
72
- the Software without restriction, including without limitation the rights to
73
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
74
- the Software, and to permit persons to whom the Software is furnished to do so,
75
- subject to the following conditions:
76
-
77
- The above copyright notice and this permission notice shall be included in all
78
- copies or substantial portions of the Software.
79
-
80
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
81
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
82
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
83
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
84
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
85
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain
3
- Version: 0.1.2
3
+ Version: 0.2.1
4
4
  Summary: A web framework for building products with Python.
5
5
  Author: Dave Gaeddert
6
6
  Author-email: dave.gaeddert@dropseed.dev
@@ -1,22 +1,15 @@
1
1
  plain/README.md,sha256=mFsLBpqiHvuznV98eewupvo1JoQeQG0q87wNlXit21A,1695
2
2
  plain/__main__.py,sha256=BiYbF-txGNbeRqp_CHQ9EZ_bCbbKq2iw51Z8RRUgIBY,105
3
- plain/assets/README.md,sha256=tjMoUWZHcpmdiinZgHbdyjH-jFmY4VWTDpasKA9rQ9k,1724
4
- plain/assets/__init__.py,sha256=C2Wv_uiaPpHuFX5nOm6fXPJsyl1IUaRPX1wXzDuadNo,131
5
- plain/assets/finders.py,sha256=fBfKM4CRE4W8LbWTqp40Dl_d_ddLk5-3AZL3ATK4eMY,7597
6
- plain/assets/preflight.py,sha256=3myaUKAVTh-szwCrAqib1MDblTPrJSBlUzT1x51ADOw,376
7
- plain/assets/storage.py,sha256=3tr6lP9yq68LBIjRY-seah5tXI5a6g_XpJzzM9WDKQo,35387
8
- plain/assets/utils.py,sha256=Z_FQXEZHUw_MxzpJgwXUnwfGrUUS3p9KO3NNr0JED6c,1567
9
- plain/assets/whitenoise/__init__.py,sha256=KkijLhLzq7g9HGOC-OcW8dWfNYEJFUrWqA3W1S7bHSY,91
10
- plain/assets/whitenoise/base.py,sha256=6-8nI1WPKiMdGW1iqwkQMoS4me9k8TMm9xJKeaTSy7Q,10100
11
- plain/assets/whitenoise/compress.py,sha256=UYUOYCkkhx82bmsoNDSxVbjGetGUGRLkBfthIpOJrDk,5471
12
- plain/assets/whitenoise/media_types.py,sha256=knZ-VEYwyuKanHERBT_wEGDMpawYzw13TnBZVm8ENjs,5195
13
- plain/assets/whitenoise/middleware.py,sha256=nzx8mgIR-gG6zqDCqVmffMjYOHbKmHwADueZ_QR1nQE,6849
14
- plain/assets/whitenoise/responders.py,sha256=RozpNG0JGgOPZD7OWUH6oqp8arxhXQT1HuxFf-t9-Co,9859
15
- plain/assets/whitenoise/storage.py,sha256=r2L_xM5_m4qcCUmAYhYst3wL8ZFOq5txoOJQbZKSYaE,6547
16
- plain/assets/whitenoise/string_utils.py,sha256=wUqhuc_3CFAu5VPg03IPSnUe4SBdILoP9cmKzBH-2zA,489
3
+ plain/assets/README.md,sha256=048BzyQ2-BcsRiv6NiuLHHijOw96RK-e6lJ_Eq7g2pc,2857
4
+ plain/assets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ plain/assets/compile.py,sha256=lsnciN85YjHe6d8VIKJi1L8r7NGHNzMOe9L87wObM5I,3287
6
+ plain/assets/finders.py,sha256=WEKAnXTmpuQ7UKLZz7vHPrKFdDOkuZSP6_JTKmIxrKg,1268
7
+ plain/assets/fingerprints.py,sha256=1NKAnnXVlncY5iimXztr0NL3RIjBKsNlZRIe6nmItJc,931
8
+ plain/assets/urls.py,sha256=ZTIoM1Zq35JaXZ3wFhXhfGa7VoITDNlH9i5RS0R5xow,933
9
+ plain/assets/views.py,sha256=y-ONVDwB64e1adc1dR41OPlYLnZRBRN5cb001Wy4358,8827
17
10
  plain/cli/README.md,sha256=bEp9B9C92YEa44wN2IywTmNZsYBv_uGq9AS_bBiAGdY,2580
18
11
  plain/cli/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
19
- plain/cli/cli.py,sha256=3jbK8Z1WzsahwDo2bQkRsjO8UQIR03YDbHzLBo6wbjs,13014
12
+ plain/cli/cli.py,sha256=JyPNQGlczqCyLxZq5Jh_591rKpBMN91JHGXdaTuPWJ0,14841
20
13
  plain/cli/formatting.py,sha256=1hZH13y1qwHcU2K2_Na388nw9uvoeQH8LrWL-O9h8Yc,2207
21
14
  plain/cli/packages.py,sha256=69VH1bIi1-5N5l2jlBcR5EP0pt-v16sPar9arO3gCSE,2052
22
15
  plain/cli/print.py,sha256=XraUYrgODOJquIiEv78wSCYGRBplHXtXSS9QtFG5hqY,217
@@ -57,8 +50,6 @@ plain/internal/legacy/__main__.py,sha256=DY5iMUCva6mC6sIjMMYluLWYzlbJv_za0gclISh
57
50
  plain/internal/legacy/management/__init__.py,sha256=RTZvasu5oeLdpJ5txMXEmBOXLNiLX22Q2OfrjdtBmug,16084
58
51
  plain/internal/legacy/management/base.py,sha256=1gcco3NvX52bv4ecyrjgicOjVENPgfG7QqHhMnhehKA,24400
59
52
  plain/internal/legacy/management/color.py,sha256=Oz4KsUwIfNtLZ6ecAPsoe2LaBGjt69pd3MEWMHkM2sU,2857
60
- plain/internal/legacy/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
- plain/internal/legacy/management/commands/collectstatic.py,sha256=_rwksdRbXXUzoWu6SMEtNw8XcI7TxExKtegmhyXTWOU,11639
62
53
  plain/internal/legacy/management/sql.py,sha256=Yp_E6fSdS9OAL7oWimqbzxCB6740GPqG6_gO6_QdL6g,2106
63
54
  plain/internal/legacy/management/utils.py,sha256=BeOiNnx26bkbq_OAOn5j1mxQ8UASnGCnZI5xuRwgnhU,5495
64
55
  plain/json.py,sha256=McJdsbMT1sYwkGRG--f2NSZz0hVXPMix9x3nKaaak2o,1262
@@ -75,8 +66,8 @@ plain/middleware/gzip.py,sha256=2NogLO6hPxVc3otxkhMDl7-r2Zw3vcIkAP29fx4j2eU,2383
75
66
  plain/middleware/security.py,sha256=r9UatFEaKVL1eZ5AxAuVX9uf5eLKwImEZmjL2t1slaY,2477
76
67
  plain/packages/README.md,sha256=Vq1Nw3mmEmZ2IriQavuVi4BjcQC2nb8k7YIbnm8QjIg,799
77
68
  plain/packages/__init__.py,sha256=DnHN1wwHXiXib4Y9BV__x9WrbUaTovoTIxW-tVyScTU,106
78
- plain/packages/config.py,sha256=sgRK2oaGXyJoDw3X5-gkp13i_oqEX5Q7dRYvX_m01AQ,11219
79
- plain/packages/registry.py,sha256=UlCreLfEvDid0JyCm2few2g5UroPHhOsrRUjxzapBcA,18209
69
+ plain/packages/config.py,sha256=6Vdf1TEQllZkkEvK0WK__zHJYT9nxmS3EyYrbuq0GkM,11201
70
+ plain/packages/registry.py,sha256=Bihdu1sOVslmb2CHAJbMqqzsLIPn0FkqwHoD_JrfZy4,17936
80
71
  plain/paginator.py,sha256=4v5SbYotJH9HoNdzf-1j-AEy4ZLbLPuysf-VME4-6e0,6055
81
72
  plain/preflight/README.md,sha256=fgcfVRD6rq7IO8AffQhk49c-6akxaE8MQidRp69InDQ,59
82
73
  plain/preflight/__init__.py,sha256=odGgSal4YeWjIG9N2aJzlF1WyEJMx1c7ZP853ZTrbKM,735
@@ -88,11 +79,11 @@ plain/preflight/registry.py,sha256=ZpxnZPIklXuT8xZVTxCUp_IER3zhd7DdfsmqIpAbLj4,2
88
79
  plain/preflight/security/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
89
80
  plain/preflight/security/base.py,sha256=MjY1HXfUD4fsGz1kGs0eI2hpoSmD57x_30CMbLpw3h4,8445
90
81
  plain/preflight/security/csrf.py,sha256=EZy_DkVqc1kUmBA-UbNmhVsKhRINfmqgWSRlatKy5AA,1237
91
- plain/preflight/urls.py,sha256=AsY2Y-IrHUSJBvS7NLOQaACMmxuoysEqklv12Py_Vdk,3273
92
- plain/runtime/README.md,sha256=l83rCKSmfYsUXyxTLM5r22qtzXT6Hwn5nl_r79p3_uQ,2333
82
+ plain/preflight/urls.py,sha256=O4PQ_v205VA2872fQlhPfxaihDDRCsVp0ZVKQ92aX4k,3019
83
+ plain/runtime/README.md,sha256=F5USETg445RX1RxC13y_1NrbOs3GHQI2Jl9idGdVFnk,2270
93
84
  plain/runtime/__init__.py,sha256=jKak9tK8MfcGNYOzqCOEmwSRAGOoji8r7e2IAwOymzE,1392
94
- plain/runtime/global_settings.py,sha256=gzgxH0a-jzct6_pLt0Fz-UumtnvcmM6erN28EGMtPng,6552
95
- plain/runtime/user_settings.py,sha256=1PQuPgO-D91Gf4mqiqS06NWwNVIfjnGw9sBam-5trtc,12862
85
+ plain/runtime/global_settings.py,sha256=PrJ5IAPk1nEr8U_XM3gLrItIVA4v2ig1t1bx_fV0NPE,6118
86
+ plain/runtime/user_settings.py,sha256=3016w7YiOkG85L1Y5BsobgxgCOAaRbZzFaBadzmHSZg,11315
96
87
  plain/signals/README.md,sha256=cd3tKEgH-xc88CUWyDxl4-qv-HBXx8VT32BXVwA5azA,230
97
88
  plain/signals/__init__.py,sha256=eAs0kLqptuP6I31dWXeAqRNji3svplpAV4Ez6ktjwXM,131
98
89
  plain/signals/dispatch/__init__.py,sha256=FzEygqV9HsM6gopio7O2Oh_X230nA4d5Q9s0sUjMq0E,292
@@ -107,11 +98,10 @@ plain/templates/jinja/__init__.py,sha256=1VAyXRHf2hDPniZfnKhiMWsOp4Gkg0Ss1xmAbuv
107
98
  plain/templates/jinja/defaults.py,sha256=AhGxp8X4UNC6CRD0XygQDV3ZeIs4KH2NaCjPtlgFeL0,3770
108
99
  plain/templates/jinja/extensions.py,sha256=AEmmmHDbdRW8fhjYDzq9eSSNbp9WHsXenD8tPthjc0s,1351
109
100
  plain/templates/jinja/filters.py,sha256=3KJKKbxcv9dLzUDWPcaa88k3NU2m1GG3iMIgFhzXrBA,860
110
- plain/templates/jinja/globals.py,sha256=hfgc1BDOQGYYi-EN_NkrBOuA7J4eGtU6tqXew3ZVtgk,474
101
+ plain/templates/jinja/globals.py,sha256=MRhkTVVH2iKWc_GPX5E2uoafBV-tDVxyY58d_S4Zgwo,479
111
102
  plain/test/README.md,sha256=Zso3Ir7a8vQerzKB6egjROQWkpveLAbscn7VTROPAiU,37
112
- plain/test/__init__.py,sha256=oo3mXAYB4Nh9ZJrV8aFyg12FbrJB_ZuhvEs0MsWBsa0,307
113
- plain/test/client.py,sha256=c3ccINnDA489TB8PB2ymYAh34rhFV2THrGG1WjC56EA,31971
114
- plain/test/utils.py,sha256=TELutP9vFYt6RtgX-7gTR0vbZV-UYTLZ7u46h3oXRwE,8546
103
+ plain/test/__init__.py,sha256=rXe88Y602NP8DBnReSyXb7dUzKoWweLuT43j-qwOUl4,138
104
+ plain/test/client.py,sha256=w8QxRE04ozCyF5TZRxrtg-R9ECiZ0VV105t9Ty89cXg,32412
115
105
  plain/urls/README.md,sha256=pWnCvgYkWN7rG7hSyBOtX4ZUP3iO7FhqM6lvwwYll6c,33
116
106
  plain/urls/__init__.py,sha256=3UzwIufXjIks2K_X_Vms2MV19IqvyPLrXUeHU3WP47c,753
117
107
  plain/urls/base.py,sha256=ECaOCEXs1ygKn4k1mt5XxSNPNlg5raJvx0aPaj7DFfE,3719
@@ -153,17 +143,17 @@ plain/utils/tree.py,sha256=wdWzmfsgc26YDF2wxhAY3yVxXTixQYqYDKE9mL3L3ZY,4383
153
143
  plain/validators.py,sha256=L9v9KtTe4iZhZVramZdKGf33R5Tt95FCdg2AJD2-2n0,19963
154
144
  plain/views/README.md,sha256=qndsXKyNMnipPlLaAvgQeGxqXknNQwlFh31Yxk8rHp8,5994
155
145
  plain/views/__init__.py,sha256=a-N1nkklVohJTtz0yD1MMaS0g66HviEjsKydNVVjvVc,392
156
- plain/views/base.py,sha256=8g21fvbZKR-Nrr_Sf2_R8CanylYMKgnZNSBEcg6m4Gs,3120
146
+ plain/views/base.py,sha256=WQy5btO4NNkEQAleII57oXUaDdd76a7OnFGdK7uFook,3160
157
147
  plain/views/csrf.py,sha256=gO9npd_Ut_LoYF_u7Qb_ZsPRfSeE3aTPG97XlMp4oEo,724
158
- plain/views/errors.py,sha256=h8r1mrQwPTTLzKTshYOKaQBx8peXZIJSJD4pjSGrUQw,781
148
+ plain/views/errors.py,sha256=Y4oGX4Z6D2COKcDEfINvXE1acE8Ad15KwNNWPs5BCfc,967
159
149
  plain/views/exceptions.py,sha256=b4euI49ZUKS9O8AGAcFfiDpstzkRAuuj_uYQXzWNHME,138
160
150
  plain/views/forms.py,sha256=hyi2yjPvl0f4thU3pcKUEjqzUAN95yIJSCZAOdgSlF8,2663
161
151
  plain/views/objects.py,sha256=9QBYyb8PgkRirXCQ8-Pms4_yMzP37dfeL30hWRYmtZg,7909
162
152
  plain/views/redirect.py,sha256=KLnlktzK6ZNMTlaEiZpMKQMEP5zeTgGLJ9BIkIJfwBo,1733
163
153
  plain/views/templates.py,sha256=nF9CcdhhjAyp3LB0RrSYnBaHpHzMfPSw719RCdcXk7o,2007
164
154
  plain/wsgi.py,sha256=R6k5FiAElvGDApEbMPTT0MPqSD7n2e2Az5chQqJZU0I,236
165
- plain-0.1.2.dist-info/LICENSE,sha256=Dz4Dapr9r65LuCGJkZzCFbOVcr5hfzFkLRcjXFQq2qU,4327
166
- plain-0.1.2.dist-info/METADATA,sha256=xCreNVwdpCt8QpnBH_cuPZeUlvL8hFoeHqdwm9Gzt7o,2716
167
- plain-0.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
168
- plain-0.1.2.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
169
- plain-0.1.2.dist-info/RECORD,,
155
+ plain-0.2.1.dist-info/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
156
+ plain-0.2.1.dist-info/METADATA,sha256=W6mobgEzSytu79MxBGjnB0SZBjlOiEMxKU_hVH4g5Ao,2716
157
+ plain-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
+ plain-0.2.1.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
159
+ plain-0.2.1.dist-info/RECORD,,
plain/assets/preflight.py DELETED
@@ -1,14 +0,0 @@
1
- from plain.assets.finders import get_finders
2
-
3
-
4
- def check_finders(package_configs=None, **kwargs):
5
- """Check all registered assets finders."""
6
- errors = []
7
- for finder in get_finders():
8
- try:
9
- finder_errors = finder.check()
10
- except NotImplementedError:
11
- pass
12
- else:
13
- errors.extend(finder_errors)
14
- return errors