arthexis 0.1.7__py3-none-any.whl → 0.1.9__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.

Potentially problematic release.


This version of arthexis might be problematic. Click here for more details.

Files changed (82) hide show
  1. arthexis-0.1.9.dist-info/METADATA +168 -0
  2. arthexis-0.1.9.dist-info/RECORD +92 -0
  3. arthexis-0.1.9.dist-info/licenses/LICENSE +674 -0
  4. config/__init__.py +0 -1
  5. config/auth_app.py +0 -1
  6. config/celery.py +1 -2
  7. config/context_processors.py +1 -1
  8. config/offline.py +2 -0
  9. config/settings.py +134 -16
  10. config/urls.py +71 -3
  11. core/admin.py +1331 -165
  12. core/admin_history.py +50 -0
  13. core/admindocs.py +151 -0
  14. core/apps.py +158 -3
  15. core/backends.py +46 -4
  16. core/entity.py +62 -48
  17. core/fields.py +6 -1
  18. core/github_helper.py +25 -0
  19. core/github_issues.py +172 -0
  20. core/lcd_screen.py +1 -0
  21. core/liveupdate.py +25 -0
  22. core/log_paths.py +100 -0
  23. core/mailer.py +83 -0
  24. core/middleware.py +57 -0
  25. core/models.py +1136 -259
  26. core/notifications.py +11 -1
  27. core/public_wifi.py +227 -0
  28. core/release.py +27 -20
  29. core/sigil_builder.py +131 -0
  30. core/sigil_context.py +20 -0
  31. core/sigil_resolver.py +284 -0
  32. core/system.py +129 -10
  33. core/tasks.py +118 -19
  34. core/test_system_info.py +22 -0
  35. core/tests.py +445 -58
  36. core/tests_liveupdate.py +17 -0
  37. core/urls.py +2 -2
  38. core/user_data.py +329 -167
  39. core/views.py +383 -57
  40. core/widgets.py +51 -0
  41. core/workgroup_urls.py +17 -0
  42. core/workgroup_views.py +94 -0
  43. nodes/actions.py +0 -2
  44. nodes/admin.py +159 -284
  45. nodes/apps.py +9 -15
  46. nodes/backends.py +53 -0
  47. nodes/lcd.py +24 -10
  48. nodes/models.py +375 -178
  49. nodes/tasks.py +1 -5
  50. nodes/tests.py +524 -129
  51. nodes/utils.py +13 -2
  52. nodes/views.py +66 -23
  53. ocpp/admin.py +150 -61
  54. ocpp/apps.py +4 -3
  55. ocpp/consumers.py +432 -69
  56. ocpp/evcs.py +25 -8
  57. ocpp/models.py +408 -68
  58. ocpp/simulator.py +13 -6
  59. ocpp/store.py +258 -30
  60. ocpp/tasks.py +11 -7
  61. ocpp/test_export_import.py +8 -7
  62. ocpp/test_rfid.py +211 -16
  63. ocpp/tests.py +1198 -135
  64. ocpp/transactions_io.py +68 -22
  65. ocpp/urls.py +35 -2
  66. ocpp/views.py +654 -101
  67. pages/admin.py +173 -13
  68. pages/checks.py +0 -1
  69. pages/context_processors.py +19 -6
  70. pages/middleware.py +153 -0
  71. pages/models.py +37 -9
  72. pages/tests.py +759 -40
  73. pages/urls.py +3 -0
  74. pages/utils.py +0 -1
  75. pages/views.py +576 -25
  76. arthexis-0.1.7.dist-info/METADATA +0 -126
  77. arthexis-0.1.7.dist-info/RECORD +0 -77
  78. arthexis-0.1.7.dist-info/licenses/LICENSE +0 -21
  79. config/workgroup_app.py +0 -7
  80. core/checks.py +0 -29
  81. {arthexis-0.1.7.dist-info → arthexis-0.1.9.dist-info}/WHEEL +0 -0
  82. {arthexis-0.1.7.dist-info → arthexis-0.1.9.dist-info}/top_level.txt +0 -0
ocpp/evcs.py CHANGED
@@ -176,6 +176,8 @@ async def simulate_cp(
176
176
  rfid: str,
177
177
  vin: str,
178
178
  cp_path: str,
179
+ serial_number: str,
180
+ connector_id: int,
179
181
  duration: int,
180
182
  kw_min: float,
181
183
  kw_max: float,
@@ -273,6 +275,7 @@ async def simulate_cp(
273
275
  {
274
276
  "chargePointModel": "Simulator",
275
277
  "chargePointVendor": "SimVendor",
278
+ "serialNumber": serial_number,
276
279
  },
277
280
  ]
278
281
  )
@@ -310,7 +313,7 @@ async def simulate_cp(
310
313
  "meter",
311
314
  "MeterValues",
312
315
  {
313
- "connectorId": 1,
316
+ "connectorId": connector_id,
314
317
  "meterValue": [
315
318
  {
316
319
  "timestamp": time.strftime(
@@ -364,6 +367,7 @@ async def simulate_cp(
364
367
  {
365
368
  "chargePointModel": "Simulator",
366
369
  "chargePointVendor": "SimVendor",
370
+ "serialNumber": serial_number,
367
371
  },
368
372
  ]
369
373
  )
@@ -401,7 +405,7 @@ async def simulate_cp(
401
405
  "meter",
402
406
  "MeterValues",
403
407
  {
404
- "connectorId": 1,
408
+ "connectorId": connector_id,
405
409
  "meterValue": [
406
410
  {
407
411
  "timestamp": time.strftime(
@@ -431,7 +435,7 @@ async def simulate_cp(
431
435
  "start",
432
436
  "StartTransaction",
433
437
  {
434
- "connectorId": 1,
438
+ "connectorId": connector_id,
435
439
  "idTag": rfid,
436
440
  "meterStart": meter_start,
437
441
  "vin": vin,
@@ -459,7 +463,7 @@ async def simulate_cp(
459
463
  "meter",
460
464
  "MeterValues",
461
465
  {
462
- "connectorId": 1,
466
+ "connectorId": connector_id,
463
467
  "transactionId": tx_id,
464
468
  "meterValue": [
465
469
  {
@@ -522,7 +526,7 @@ async def simulate_cp(
522
526
  "meter",
523
527
  "MeterValues",
524
528
  {
525
- "connectorId": 1,
529
+ "connectorId": connector_id,
526
530
  "meterValue": [
527
531
  {
528
532
  "timestamp": time.strftime("%Y-%m-%dT%H:%M:%S")
@@ -578,10 +582,12 @@ async def simulate_cp(
578
582
  def simulate(
579
583
  *,
580
584
  host: str = "127.0.0.1",
581
- ws_port: int = 9000,
585
+ ws_port: int = 8000,
582
586
  rfid: str = "FFFFFFFF",
583
587
  cp_path: str = "CPX",
584
588
  vin: str = "",
589
+ serial_number: str = "",
590
+ connector_id: int = 1,
585
591
  duration: int = 600,
586
592
  kw_min: float = 30.0,
587
593
  kw_max: float = 60.0,
@@ -614,6 +620,8 @@ def simulate(
614
620
  "rfid": rfid,
615
621
  "cp_path": cp_path,
616
622
  "vin": vin,
623
+ "serial_number": serial_number,
624
+ "connector_id": connector_id,
617
625
  "duration": duration,
618
626
  "kw_min": kw_min,
619
627
  "kw_max": kw_max,
@@ -642,6 +650,8 @@ def simulate(
642
650
  rfid,
643
651
  vin,
644
652
  this_cp_path,
653
+ serial_number,
654
+ connector_id,
645
655
  duration,
646
656
  kw_min,
647
657
  kw_max,
@@ -662,6 +672,8 @@ def simulate(
662
672
  rfid,
663
673
  vin,
664
674
  this_cp_path,
675
+ serial_number,
676
+ connector_id,
665
677
  duration,
666
678
  kw_min,
667
679
  kw_max,
@@ -712,6 +724,8 @@ def simulate(
712
724
  rfid,
713
725
  vin,
714
726
  cp_path,
727
+ serial_number,
728
+ connector_id,
715
729
  duration,
716
730
  kw_min,
717
731
  kw_max,
@@ -736,6 +750,8 @@ def simulate(
736
750
  rfid,
737
751
  vin,
738
752
  this_cp_path,
753
+ serial_number,
754
+ connector_id,
739
755
  duration,
740
756
  kw_min,
741
757
  kw_max,
@@ -850,7 +866,9 @@ def _simulator_status_json(cp: Optional[int] = None) -> str:
850
866
 
851
867
  if cp is not None:
852
868
  return json.dumps(_export_state(_simulators[cp]), indent=2)
853
- return json.dumps({str(idx): _export_state(st) for idx, st in _simulators.items()}, indent=2)
869
+ return json.dumps(
870
+ {str(idx): _export_state(st) for idx, st in _simulators.items()}, indent=2
871
+ )
854
872
 
855
873
 
856
874
  def get_simulator_state(cp: Optional[int] = None, refresh_file: bool = False):
@@ -908,4 +926,3 @@ __all__ = [
908
926
  "view_cp_simulator",
909
927
  "view_simulator",
910
928
  ]
911
-