Commit 8544cc2
authored
v0.38: Introducing
* add `v1/env.py`
* update env.py
* minor updates
* minor updates
* minor updates
* minor updates
* minor updates
* planned for #206
* add Env Precedence and Secrets Dir + Dotenv Support for `v1` of `EnvWizard`
* minor changes
* cache secrets and dotenv
* add helper methods
* Add `v1_field_to_env_load` and support `Alias(env=...)` for `EnvWizard`
* Add `Env(...)` to support setting env vars for fields in `EnvWizard` subclasses
* minor fix
* Add `v1_pre_decoder` so `EnvWizard` can decode JSON or comma-separated strings into `dict`/`list`
* Add tests and bugfix
* add E2E tests
* bugfix and functional updates
* Add tests and bugfix
* add EnvWizard E2E tests
* bugfix and functional updates
* Add tests
* should fix #206
* v1: Decode `date` and `datetime` as UTC by default (via `fromtimestamp`)
* update tests
* update tests
* update tests
* EnvWizard: update tests and support bytes/bytearray/dataclass (when already same type)
* update tests
* update logging
* fix for Windows: provide `tz` extra to install `tzdata` for `ZoneInfo`
* v1: Fix loader/dumper codegen and subclass inheritance issues
* Support `kw_only` dataclass fields in loaders
* Fix dumper codegen when dataclass defines no fields
* Fix incorrect caching of `to_dict` on subclasses
* Ensure EnvWizard passes `kw_only=True` to dataclass
* Fix FunctionBuilder globals not being merged
* Accept bytes/bytearray inputs unchanged in loaders
* Pin default `from_dict` and `to_dict` on subclasses
(prevents lazy codegen inheritance poisoning; fixes #209)
* Refresh dataclass metadata when new annotations are present
* clean up imports
* minor changes
* v1: Rename env.py to _env.py
* v1: Add tests for better coverage
* v1: Support `__post_init__()` in `EnvWizard.__init__()` codegen
* minor changes
* v1: Support `AliasPath()` in `EnvWizard.__init__()` codegen
* fix for Python 3.9
* add type checks on CI as per #234
* fix tests on Python 3.9
* add type checks on CI as per #234
* rename to underscored
* add docs
* minor changes
* update HISTORY.rst
* optimize imports
* optimize importsEnvWizard (v1) (#235)1 parent b939485 commit 8544cc2
File tree
63 files changed
+4491
-305
lines changed- .github/workflows
- dataclass_wizard
- environ
- utils
- v1
- docs
- common_use_cases
- tests
- unit
- environ
- v1
- environ
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+4491
-305
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
5 | 59 | | |
6 | 60 | | |
7 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | | - | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
| 129 | + | |
| 130 | + | |
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | | - | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | | - | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
| |||
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
274 | 286 | | |
275 | 287 | | |
276 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
445 | 452 | | |
446 | 453 | | |
447 | 454 | | |
| |||
0 commit comments