Commit c43a583
Add global Request Adapter (#6)
* ∙ - remove contextvar from flask and quart only FastApi now relies on that
∙ - backend __init__ now holds the global request adapter and backend which get set on app initialisation
∙ request adapter and server can now be call from everywhere after the app initialised
∙ - added normal top level imports because the modules get matching loaded - but bad Import Error message when quart or equivilent are not installed
∙ - added _ as prefix to backends to avoid importing errors with their underlying
∙ - Can now move to remove unnecessary passing of the server object
∙
* Moved get_server_type to backends
* ∙ moved async validation to validation
∙ replaced request.get_path with request.path
∙
* Moved custom backend check to _validation.py
* Removed server injection of server methods - they use self.server now
* removed use_async from dispatch server methods and use dash_app._use_async
removed remaining set request process from flask
* adding custom error handling per backend, tests and adjustments to the flow. Made endpoints for downloading the reqs
* adjusments for formatting
* adjustment to retest backend
* Added Dash app as type to servers
* adding missing reqs association
* Addedd basic typing to servers
* fixing minor linting issues
* Fixed weird AI shit
* Cleanup before heavy pull
* Merged latest changes
* f rebase
* f rebase
* Added Dash app as type to servers
* Addedd basic typing to servers
---------
Co-authored-by: Christian Giessel <cgiessel@tesla.com>
Co-authored-by: BSd3v <82055130+BSd3v@users.noreply.github.com>1 parent 465e45e commit c43a583
14 files changed
Lines changed: 831 additions & 592 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 5 | | |
9 | | - | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
| 41 | + | |
| 42 | + | |
46 | 43 | | |
47 | 44 | | |
48 | 45 | | |
| |||
176 | 173 | | |
177 | 174 | | |
178 | 175 | | |
179 | | - | |
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
| |||
376 | 372 | | |
377 | 373 | | |
378 | 374 | | |
379 | | - | |
| 375 | + | |
| 376 | + | |
380 | 377 | | |
381 | 378 | | |
382 | 379 | | |
| |||
390 | 387 | | |
391 | 388 | | |
392 | 389 | | |
| 390 | + | |
| 391 | + | |
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
399 | 398 | | |
400 | | - | |
401 | 399 | | |
402 | 400 | | |
403 | 401 | | |
404 | 402 | | |
405 | | - | |
406 | 403 | | |
407 | | - | |
408 | 404 | | |
409 | 405 | | |
410 | 406 | | |
| |||
436 | 432 | | |
437 | 433 | | |
438 | 434 | | |
439 | | - | |
| 435 | + | |
| 436 | + | |
440 | 437 | | |
441 | 438 | | |
442 | 439 | | |
| |||
453 | 450 | | |
454 | 451 | | |
455 | 452 | | |
456 | | - | |
457 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
458 | 456 | | |
459 | 457 | | |
460 | 458 | | |
| |||
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
477 | | - | |
478 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
479 | 478 | | |
480 | 479 | | |
481 | 480 | | |
| |||
688 | 687 | | |
689 | 688 | | |
690 | 689 | | |
691 | | - | |
| 690 | + | |
692 | 691 | | |
693 | 692 | | |
694 | | - | |
| 693 | + | |
| 694 | + | |
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
765 | | - | |
| 765 | + | |
| 766 | + | |
766 | 767 | | |
767 | 768 | | |
768 | 769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| |||
390 | 394 | | |
391 | 395 | | |
392 | 396 | | |
393 | | - | |
| 397 | + | |
394 | 398 | | |
395 | 399 | | |
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
413 | 415 | | |
414 | 416 | | |
415 | 417 | | |
416 | | - | |
| 418 | + | |
417 | 419 | | |
418 | 420 | | |
419 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
585 | 586 | | |
586 | 587 | | |
587 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments