dmart 1.4.1__py3-none-any.whl → 1.4.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dmart
3
- Version: 1.4.1
3
+ Version: 1.4.2
4
4
  Requires-Python: >=3.11
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -1,8 +1,8 @@
1
1
  bundler.py,sha256=so8ZJResb1PcOH5vboa_mpFAdYr_T8u8DbbFXd570Lg,1704
2
2
  data_generator.py,sha256=CnE-VHEeX7-lAXtqCgbRqR9WHjTuOgeiZcviYrHAmho,2287
3
- dmart.py,sha256=QZQvR0q3CGOJy8KzXh7m8wW51JqILw--xvC0N4akjnY,21683
3
+ dmart.py,sha256=WugBannLMtYISbGPfK5Lak-2BPm14cFHNyJwkD-26RM,21711
4
4
  get_settings.py,sha256=Sbe2WCoiK398E7HY4SNLfDN_GmE8knR4M-YJWF31jcg,153
5
- main.py,sha256=0jguG9WZMYJgYAR_JO95GrSFM8Hu5qbInABMxWvoY3I,19526
5
+ main.py,sha256=3UqzJUoiaZmcoL4yFInka5DMfh_-Agl-gHRCHELL2UM,19551
6
6
  migrate.py,sha256=hn1MZoVby_Jjqhc7y3CrLcGD619QmVZv3PONNvO7VKQ,665
7
7
  password_gen.py,sha256=xjx8wi105ZYvhLBBQj7_rugACpxifGXHse6f7YlGXWQ,196
8
8
  run_notification_campaign.py,sha256=ZCvHfaimK4W6q4XuHs2r6wavMGipYYw4aUkNlxmGUd8,2652
@@ -135,15 +135,15 @@ utils/query_policies_helper.py,sha256=jBcNI_15P6LqVeWz6w9UMreLuNIc50GxqAf17KzxE8
135
135
  utils/regex.py,sha256=cv9b_l_e8tz42mKckeeyDgypKqh2e71E28co2iuEVxA,2286
136
136
  utils/repository.py,sha256=9L-IvQ0Js0SQ5OR-Rh0i2Wdu4H9H06r8eE84hfBIu7Q,18313
137
137
  utils/router_helper.py,sha256=Tgoq3oakejdEeyeVieTNk38JsPZ8x5RuR0kw2THc1mI,604
138
- utils/settings.py,sha256=SIunwTJF0Ac9fUWRt3sUsgWzMkWk0RUryEANYuOJQ9k,5660
138
+ utils/settings.py,sha256=eWsIKxyFzeCO7Jte0U5SR8SiCLSXz0dD0vO0x-R-y2k,5686
139
139
  utils/sms_notifier.py,sha256=04D6D_ldk3S9SojI7_381pqLc8v9lligeNHAysohz7w,550
140
140
  utils/social_sso.py,sha256=Dm1W6U9OwKbAeUwM-kwJBHFEoreeoN-s-RHdOZ1-cNg,2216
141
141
  utils/ticket_sys_utils.py,sha256=9QAlW2iiy8KyxQRBDj_WmzS5kKb0aYJmGwd4qzmGVqo,7005
142
142
  utils/web_notifier.py,sha256=QM87VVid2grC5lK3NdS1yzz0z1wXljr4GChJOeK86W4,843
143
143
  utils/templates/activation.html.j2,sha256=XAMKCdoqONoc4ZQucD0yV-Pg5DlHHASZrTVItNS-iBE,640
144
144
  utils/templates/reminder.html.j2,sha256=aoS8bTs56q4hjAZKsb0jV9c-PIURBELuBOpT_qPZNVU,639
145
- dmart-1.4.1.dist-info/METADATA,sha256=Xx4kYj7woXX61a2PqjZnthP2Ud5fVUpbly5mCg6xWCk,2068
146
- dmart-1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
147
- dmart-1.4.1.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
148
- dmart-1.4.1.dist-info/top_level.txt,sha256=JTypu1r5v9v7ru-60JSSbnSMEESHFRMacpcz-rPJx_U,262
149
- dmart-1.4.1.dist-info/RECORD,,
145
+ dmart-1.4.2.dist-info/METADATA,sha256=Kyjoer4hkgh3VhudnHtnbyuJO5ZJzjfheq2QihC6sPI,2068
146
+ dmart-1.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
147
+ dmart-1.4.2.dist-info/entry_points.txt,sha256=GjfoGh1bpxuU9HHGJzbtCFPNptHv9TryxHMN3uBSKpg,37
148
+ dmart-1.4.2.dist-info/top_level.txt,sha256=JTypu1r5v9v7ru-60JSSbnSMEESHFRMacpcz-rPJx_U,262
149
+ dmart-1.4.2.dist-info/RECORD,,
dmart.py CHANGED
@@ -360,7 +360,7 @@ def hypercorn_main() -> int:
360
360
  except:
361
361
  pass
362
362
 
363
- url = f"http://{host}:{port}/cxb/"
363
+ url = f"http://{host}:{port}{settings.cxb_url}/"
364
364
 
365
365
  def open_browser():
366
366
  time.sleep(2) # Give server a moment to start
@@ -397,7 +397,7 @@ def main():
397
397
  sys.argv.pop(idx)
398
398
 
399
399
  if open_cxb:
400
- url = f"http://{settings.listening_host}:{settings.listening_port}/cxb/"
400
+ url = f"http://{settings.listening_host}:{settings.listening_port}{settings.cxb_url}/"
401
401
  def open_browser():
402
402
  time.sleep(2) # Give server a moment to start
403
403
  webbrowser.open(url)
main.py CHANGED
@@ -474,7 +474,7 @@ if not os.path.exists(cxb_path):
474
474
  cxb_path = cxb_dist_path
475
475
 
476
476
  if os.path.isdir(cxb_path):
477
- @app.get("/cxb/config.json", include_in_schema=False)
477
+ @app.get(f"{settings.cxb_url}/config.json", include_in_schema=False)
478
478
  async def get_cxb_config():
479
479
  # Priority 0: Explicit path from flag
480
480
  cxb_config = os.getenv("DMART_CXB_CONFIG")
@@ -508,7 +508,7 @@ if os.path.isdir(cxb_path):
508
508
  "websocket": settings.websocket_url if settings.websocket_url else f"ws://{settings.listening_host}:{settings.websocket_port}/ws"
509
509
  }
510
510
 
511
- app.mount("/cxb", StaticFiles(directory=cxb_path, html=True), name="cxb")
511
+ app.mount(settings.cxb_url, StaticFiles(directory=cxb_path, html=True), name="cxb")
512
512
 
513
513
  @app.options("/{x:path}", include_in_schema=False)
514
514
  async def myoptions():
utils/settings.py CHANGED
@@ -16,6 +16,7 @@ class Settings(BaseSettings):
16
16
  """Main settings class"""
17
17
 
18
18
  app_url: str = ""
19
+ cxb_url: str = "/cxb"
19
20
  public_app_url: str = ""
20
21
  app_name: str = "dmart"
21
22
  websocket_url: str = "" #"http://127.0.0.1:8484"
File without changes