Skip to content

Commit 16bb795

Browse files
committed
add results of nbdev_prepare
1 parent fa2db65 commit 16bb795

6 files changed

Lines changed: 93 additions & 355 deletions

File tree

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ python-schematized-config
33

44
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
55

6-
This file will become your README and also the index of your
7-
documentation.
8-
96
## Install
107

118
``` sh
@@ -17,7 +14,13 @@ pip install python_schematized_config
1714
Fill me in please! Don’t forget code examples:
1815

1916
``` python
20-
1+1
17+
from python_schematized_config.core import ConfigValidator
2118
```
2219

23-
2
20+
``` python
21+
import os
22+
import os.path as _p
23+
24+
if _p.exists('.env') and 'CONFIG_VALIDATOR_JSON_SCHEMA' in os.environ:
25+
ConfigValidator.load_dotenv() # use defaults of .env and CONFIG_VALIDATOR_JSON_SCHEMA
26+
```

nbs/00_core.ipynb

Lines changed: 31 additions & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,17 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 1,
15-
"metadata": {
16-
"ExecuteTime": {
17-
"end_time": "2023-06-17T05:12:49.148098Z",
18-
"start_time": "2023-06-17T05:12:49.144117Z"
19-
}
20-
},
14+
"execution_count": null,
15+
"metadata": {},
2116
"outputs": [],
2217
"source": [
2318
"#| default_exp core"
2419
]
2520
},
2621
{
2722
"cell_type": "code",
28-
"execution_count": 2,
29-
"metadata": {
30-
"ExecuteTime": {
31-
"end_time": "2023-06-17T05:12:49.306732Z",
32-
"start_time": "2023-06-17T05:12:49.152150Z"
33-
}
34-
},
23+
"execution_count": null,
24+
"metadata": {},
3525
"outputs": [],
3626
"source": [
3727
"#| export\n",
@@ -48,13 +38,8 @@
4838
},
4939
{
5040
"cell_type": "code",
51-
"execution_count": 3,
52-
"metadata": {
53-
"ExecuteTime": {
54-
"end_time": "2023-06-17T05:12:49.310427Z",
55-
"start_time": "2023-06-17T05:12:49.307880Z"
56-
}
57-
},
41+
"execution_count": null,
42+
"metadata": {},
5843
"outputs": [],
5944
"source": [
6045
"#| export\n",
@@ -72,13 +57,8 @@
7257
},
7358
{
7459
"cell_type": "code",
75-
"execution_count": 4,
76-
"metadata": {
77-
"ExecuteTime": {
78-
"end_time": "2023-06-17T05:12:49.315430Z",
79-
"start_time": "2023-06-17T05:12:49.311303Z"
80-
}
81-
},
60+
"execution_count": null,
61+
"metadata": {},
8262
"outputs": [],
8363
"source": [
8464
"#| export\n",
@@ -126,14 +106,8 @@
126106
},
127107
{
128108
"cell_type": "code",
129-
"execution_count": 5,
130-
"metadata": {
131-
"ExecuteTime": {
132-
"end_time": "2023-06-17T05:12:49.319205Z",
133-
"start_time": "2023-06-17T05:12:49.317113Z"
134-
},
135-
"pinned_outputs": []
136-
},
109+
"execution_count": null,
110+
"metadata": {},
137111
"outputs": [],
138112
"source": [
139113
"#| hide\n",
@@ -161,13 +135,8 @@
161135
},
162136
{
163137
"cell_type": "code",
164-
"execution_count": 6,
165-
"metadata": {
166-
"ExecuteTime": {
167-
"end_time": "2023-06-17T05:12:49.322084Z",
168-
"start_time": "2023-06-17T05:12:49.320023Z"
169-
}
170-
},
138+
"execution_count": null,
139+
"metadata": {},
171140
"outputs": [],
172141
"source": [
173142
"#|hide\n",
@@ -193,13 +162,8 @@
193162
},
194163
{
195164
"cell_type": "code",
196-
"execution_count": 7,
197-
"metadata": {
198-
"ExecuteTime": {
199-
"end_time": "2023-06-17T05:12:49.325021Z",
200-
"start_time": "2023-06-17T05:12:49.322745Z"
201-
}
202-
},
165+
"execution_count": null,
166+
"metadata": {},
203167
"outputs": [],
204168
"source": [
205169
"#| export\n",
@@ -226,13 +190,8 @@
226190
},
227191
{
228192
"cell_type": "code",
229-
"execution_count": 8,
230-
"metadata": {
231-
"ExecuteTime": {
232-
"end_time": "2023-06-17T05:12:49.327934Z",
233-
"start_time": "2023-06-17T05:12:49.325819Z"
234-
}
235-
},
193+
"execution_count": null,
194+
"metadata": {},
236195
"outputs": [],
237196
"source": [
238197
"#| hide\n",
@@ -256,13 +215,8 @@
256215
},
257216
{
258217
"cell_type": "code",
259-
"execution_count": 9,
260-
"metadata": {
261-
"ExecuteTime": {
262-
"end_time": "2023-06-17T05:12:49.334086Z",
263-
"start_time": "2023-06-17T05:12:49.328679Z"
264-
}
265-
},
218+
"execution_count": null,
219+
"metadata": {},
266220
"outputs": [],
267221
"source": [
268222
"#| export\n",
@@ -328,13 +282,8 @@
328282
},
329283
{
330284
"cell_type": "code",
331-
"execution_count": 10,
332-
"metadata": {
333-
"ExecuteTime": {
334-
"end_time": "2023-06-17T05:12:49.337746Z",
335-
"start_time": "2023-06-17T05:12:49.334968Z"
336-
}
337-
},
285+
"execution_count": null,
286+
"metadata": {},
338287
"outputs": [],
339288
"source": [
340289
"#| hide\n",
@@ -390,13 +339,8 @@
390339
},
391340
{
392341
"cell_type": "code",
393-
"execution_count": 11,
394-
"metadata": {
395-
"ExecuteTime": {
396-
"end_time": "2023-06-17T05:12:49.341480Z",
397-
"start_time": "2023-06-17T05:12:49.339998Z"
398-
}
399-
},
342+
"execution_count": null,
343+
"metadata": {},
400344
"outputs": [],
401345
"source": [
402346
"#| hide\n",
@@ -405,13 +349,8 @@
405349
},
406350
{
407351
"cell_type": "code",
408-
"execution_count": 12,
409-
"metadata": {
410-
"ExecuteTime": {
411-
"end_time": "2023-06-17T05:12:49.443764Z",
412-
"start_time": "2023-06-17T05:12:49.342258Z"
413-
}
414-
},
352+
"execution_count": null,
353+
"metadata": {},
415354
"outputs": [],
416355
"source": [
417356
"#| hide\n",
@@ -430,12 +369,7 @@
430369
{
431370
"cell_type": "code",
432371
"execution_count": null,
433-
"metadata": {
434-
"ExecuteTime": {
435-
"end_time": "2023-06-17T05:12:49.452038Z",
436-
"start_time": "2023-06-17T05:12:49.452031Z"
437-
}
438-
},
372+
"metadata": {},
439373
"outputs": [],
440374
"source": [
441375
"#| hide\n",
@@ -454,12 +388,7 @@
454388
{
455389
"cell_type": "code",
456390
"execution_count": null,
457-
"metadata": {
458-
"ExecuteTime": {
459-
"end_time": "2023-06-17T05:12:49.452651Z",
460-
"start_time": "2023-06-17T05:12:49.452646Z"
461-
}
462-
},
391+
"metadata": {},
463392
"outputs": [],
464393
"source": [
465394
"#| hide\n",
@@ -475,12 +404,7 @@
475404
{
476405
"cell_type": "code",
477406
"execution_count": null,
478-
"metadata": {
479-
"ExecuteTime": {
480-
"end_time": "2023-06-17T05:12:49.453084Z",
481-
"start_time": "2023-06-17T05:12:49.453079Z"
482-
}
483-
},
407+
"metadata": {},
484408
"outputs": [],
485409
"source": [
486410
"#| hide\n",
@@ -496,12 +420,7 @@
496420
{
497421
"cell_type": "code",
498422
"execution_count": null,
499-
"metadata": {
500-
"ExecuteTime": {
501-
"end_time": "2023-06-17T05:12:49.453715Z",
502-
"start_time": "2023-06-17T05:12:49.453708Z"
503-
}
504-
},
423+
"metadata": {},
505424
"outputs": [],
506425
"source": [
507426
"#| hide\n",
@@ -517,12 +436,7 @@
517436
{
518437
"cell_type": "code",
519438
"execution_count": null,
520-
"metadata": {
521-
"ExecuteTime": {
522-
"end_time": "2023-06-17T05:12:49.454953Z",
523-
"start_time": "2023-06-17T05:12:49.454943Z"
524-
}
525-
},
439+
"metadata": {},
526440
"outputs": [],
527441
"source": [
528442
"#| hide\n",
@@ -538,12 +452,7 @@
538452
{
539453
"cell_type": "code",
540454
"execution_count": null,
541-
"metadata": {
542-
"ExecuteTime": {
543-
"end_time": "2023-06-17T05:12:49.455383Z",
544-
"start_time": "2023-06-17T05:12:49.455376Z"
545-
}
546-
},
455+
"metadata": {},
547456
"outputs": [],
548457
"source": [
549458
"#| hide\n",
@@ -553,63 +462,9 @@
553462
],
554463
"metadata": {
555464
"kernelspec": {
556-
"display_name": "Python 3 (ipykernel)",
465+
"display_name": "python3",
557466
"language": "python",
558467
"name": "python3"
559-
},
560-
"language_info": {
561-
"codemirror_mode": {
562-
"name": "ipython",
563-
"version": 3
564-
},
565-
"file_extension": ".py",
566-
"mimetype": "text/x-python",
567-
"name": "python",
568-
"nbconvert_exporter": "python",
569-
"pygments_lexer": "ipython3",
570-
"version": "3.10.8"
571-
},
572-
"toc": {
573-
"base_numbering": 1,
574-
"nav_menu": {},
575-
"number_sections": true,
576-
"sideBar": true,
577-
"skip_h1_title": false,
578-
"title_cell": "Table of Contents",
579-
"title_sidebar": "Contents",
580-
"toc_cell": false,
581-
"toc_position": {},
582-
"toc_section_display": true,
583-
"toc_window_display": false
584-
},
585-
"varInspector": {
586-
"cols": {
587-
"lenName": 16,
588-
"lenType": 16,
589-
"lenVar": 40
590-
},
591-
"kernels_config": {
592-
"python": {
593-
"delete_cmd_postfix": "",
594-
"delete_cmd_prefix": "del ",
595-
"library": "var_list.py",
596-
"varRefreshCmd": "print(var_dic_list())"
597-
},
598-
"r": {
599-
"delete_cmd_postfix": ") ",
600-
"delete_cmd_prefix": "rm(",
601-
"library": "var_list.r",
602-
"varRefreshCmd": "cat(var_dic_list()) "
603-
}
604-
},
605-
"types_to_exclude": [
606-
"module",
607-
"function",
608-
"builtin_function_or_method",
609-
"instance",
610-
"_Feature"
611-
],
612-
"window_display": false
613468
}
614469
},
615470
"nbformat": 4,

0 commit comments

Comments
 (0)