streamlit-nightly 1.22.1.dev20230530__py2.py3-none-any.whl → 1.23.2.dev20230602__py2.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.
@@ -197,6 +197,31 @@ def _fix_pydeck_mapbox_api_warning() -> None:
197
197
  os.environ["MAPBOX_API_KEY"] = config.get_option("mapbox.token")
198
198
 
199
199
 
200
+ def _fix_pydantic_duplicate_validators_error():
201
+ """Pydantic by default disallows to reuse of validators with the same name,
202
+ this combined with the Streamlit execution model leads to an error on the second
203
+ Streamlit script rerun if the Pydantic validator is registered
204
+ in the streamlit script.
205
+
206
+ It is important to note that the same issue exists for Pydantic validators inside
207
+ Jupyter notebooks, https://github.com/pydantic/pydantic/issues/312 and in order
208
+ to fix that in Pydantic they use the `in_ipython` function that checks that
209
+ Pydantic runs not in `ipython` environment.
210
+
211
+ Inside this function we patch `in_ipython` function to always return `True`.
212
+
213
+ This change will relax rules for writing Pydantic validators inside
214
+ Streamlit script a little bit, similar to how it works in jupyter,
215
+ which should not be critical.
216
+ """
217
+ try:
218
+ from pydantic import class_validators
219
+
220
+ class_validators.in_ipython = lambda: True # type: ignore[attr-defined]
221
+ except ImportError:
222
+ pass
223
+
224
+
200
225
  def _print_new_version_message() -> None:
201
226
  if version.should_show_new_version_notice():
202
227
  click.secho(NEW_VERSION_TEXT)
@@ -381,6 +406,7 @@ def run(
381
406
  _fix_tornado_crash()
382
407
  _fix_sys_argv(main_script_path, args)
383
408
  _fix_pydeck_mapbox_api_warning()
409
+ _fix_pydantic_duplicate_validators_error()
384
410
  _install_config_watchers(flag_options)
385
411
  _install_pages_watcher(main_script_path)
386
412
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: streamlit-nightly
3
- Version: 1.22.1.dev20230530
3
+ Version: 1.23.2.dev20230602
4
4
  Summary: A faster way to build and share data apps
5
5
  Home-page: https://streamlit.io
6
6
  Author: Snowflake Inc
@@ -22,6 +22,7 @@ Classifier: Programming Language :: Python :: 3.7
22
22
  Classifier: Programming Language :: Python :: 3.8
23
23
  Classifier: Programming Language :: Python :: 3.9
24
24
  Classifier: Programming Language :: Python :: 3.10
25
+ Classifier: Programming Language :: Python :: 3.11
25
26
  Classifier: Topic :: Database :: Front-Ends
26
27
  Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
27
28
  Classifier: Topic :: Scientific/Engineering :: Information Analysis
@@ -47,7 +48,7 @@ Requires-Dist: requests (<3,>=2.4)
47
48
  Requires-Dist: rich (<14,>=10.11.0)
48
49
  Requires-Dist: tenacity (<9,>=8.0.0)
49
50
  Requires-Dist: toml (<2)
50
- Requires-Dist: typing-extensions (>=3.10.0.0)
51
+ Requires-Dist: typing-extensions (<5,>=4.0.1)
51
52
  Requires-Dist: tzlocal (<5,>=1.1)
52
53
  Requires-Dist: validators (<1,>=0.2)
53
54
  Requires-Dist: gitpython (!=3.1.19,<4,>=3)
@@ -55,7 +55,7 @@ streamlit/elements/camera_input.py,sha256=u9sinM7e94EEqVALxWBSHTXmZHWyDsbGm5OQsK
55
55
  streamlit/elements/checkbox.py,sha256=HFBc7NDmaQnEr3t7OQ0aK9OvESAY7GAA2OL43B1tU1s,7500
56
56
  streamlit/elements/code.py,sha256=MWmsSNPtYtVuaqD-GJFIeoc8GETXyz6Xgu5AiBFlqYo,2452
57
57
  streamlit/elements/color_picker.py,sha256=FQGSNvfxdsyG9AQAhOOuJKAcamqWA6fy34pZclWh6OU,8647
58
- streamlit/elements/data_editor.py,sha256=yHoafDcTkm4sSRtE53bHcBp2rznsCaBCppAn_e-w424,31883
58
+ streamlit/elements/data_editor.py,sha256=4wEFt-H0YcNm0gna8aH2rL_HHs8DVGMe5_B32fYOoMk,31885
59
59
  streamlit/elements/dataframe_selector.py,sha256=weajM9eP-i6LYhtoXhJSNhzUVUPaTPSN6OI6yNX33yw,26487
60
60
  streamlit/elements/deck_gl_json_chart.py,sha256=ew_NJlW0r7zWwwNjW5Fgi_WzKtfWkGEpMLeQStX26f4,5900
61
61
  streamlit/elements/doc_string.py,sha256=4FicKk0nkE1QaqZtharJDQpn5-ErQLh9LFFbjZySjRo,16515
@@ -220,9 +220,9 @@ streamlit/runtime/state/safe_session_state.py,sha256=YhQ-9fXjx-geJ6d-1OlPyjuFIuR
220
220
  streamlit/runtime/state/session_state.py,sha256=eA1Z5reOWfAhAmVF-fCHtVaWFnfD1ZhWtrPormxiZeA,24794
221
221
  streamlit/runtime/state/session_state_proxy.py,sha256=1Yvldnacr_ZEF4wl8Y8y685pCE8_DKRN02W52tzLBFc,5098
222
222
  streamlit/runtime/state/widgets.py,sha256=I1ymzjLpUDLlIpD89vixOF0WQPzFXNmCwAAtiRF2ruc,10808
223
- streamlit/static/asset-manifest.json,sha256=-sJPW-LanMt_cAZY9-75eaz2wiDRpl7SiM1eeMCX7sw,13509
223
+ streamlit/static/asset-manifest.json,sha256=ZxaF0wJ3wiPZVP-pLFruAaLS_v1xVQBiMZCg_91ypQ4,13509
224
224
  streamlit/static/favicon.png,sha256=if5cVgw7azxKOvV5FpGixga7JLn23rfnHcy1CdWI1-E,1019
225
- streamlit/static/index.html,sha256=8Xiv54uIRaz6b_mf2w2NWo08ZDGXozhW3h9HWc1KkUE,500
225
+ streamlit/static/index.html,sha256=dTSHcRWvsaKF-3UzAdVWK7Xs8o6UfEE1IuUgAQvBMrg,500
226
226
  streamlit/static/static/css/57.23fa976d.chunk.css,sha256=wTLAsR9ibK_P5AK6uV-UyJSIbSMhcNkmjRnvqAQAh9Q,8081
227
227
  streamlit/static/static/css/623.af907718.chunk.css,sha256=nl89I_d3KDq_jwcq2KPtgyeEx-2FZradbzd_oO4mIk0,33925
228
228
  streamlit/static/static/css/main.f4a8738f.css,sha256=6w8nQ2k81xtfgbI9edRJkxj8Y3d1oUu4S5HxLVsjfDo,28981
@@ -282,8 +282,8 @@ streamlit/static/static/js/861.3e3b3455.chunk.js,sha256=e1Qj1AQl614Yx8hCwQitCTSc
282
282
  streamlit/static/static/js/888.58eecc49.chunk.js,sha256=CpscRvzI_Unkl8rodWUnQDN3SMRPRVjNGuFcWM4j-8M,9190
283
283
  streamlit/static/static/js/888.58eecc49.chunk.js.LICENSE.txt,sha256=igkibNn8txupcmLBAXVBW26Sb88LgmTdgCd4fgTQu-E,487
284
284
  streamlit/static/static/js/998.983f28f4.chunk.js,sha256=lhm23_YOU5SPzwketXGysIZzzXNQBGnu2-FDK2B5rIU,22312
285
- streamlit/static/static/js/main.4e910df2.js,sha256=y8COerCkgH9HKqj1JazEHhQn729EA0mM20Tx8PHToiY,4724921
286
- streamlit/static/static/js/main.4e910df2.js.LICENSE.txt,sha256=q1l0Izm-OXKer0iK5AlXdQfQTUTynJJBWb9R8kkn-qM,4214
285
+ streamlit/static/static/js/main.996c736c.js,sha256=darECmaeEee5riAkkY0Ym_iO979uOOJHXGQgXPUK7rU,4724093
286
+ streamlit/static/static/js/main.996c736c.js.LICENSE.txt,sha256=q1l0Izm-OXKer0iK5AlXdQfQTUTynJJBWb9R8kkn-qM,4214
287
287
  streamlit/static/static/media/KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2,sha256=DN04fJWQoan5eUVgAi27WWVKfYbxh6oMgUla1C06cwg,28076
288
288
  streamlit/static/static/media/KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf,sha256=aFNIQLz90r_7bw6N60hoTdAefwTqKBMmdXevuQbeHRM,63632
289
289
  streamlit/static/static/media/KaTeX_AMS-Regular.d562e886c52f12660a41.woff,sha256=MNqR6EyJP4deJSaJ-uvcWQsocRReitx_mp1NvYzgslE,33516
@@ -388,7 +388,7 @@ streamlit/watcher/path_watcher.py,sha256=jNxJEwTVBvownESuGZlwtp_Wpm886LZ70Uok1_g
388
388
  streamlit/watcher/polling_path_watcher.py,sha256=1socDMoxQylGeR3Us_mUrSwQMCP3lFx4-aAs1LRoXq8,3570
389
389
  streamlit/watcher/util.py,sha256=2cH6u2pJvdp5V9JSqQdd4hmo1Q1f85Q3sOPtrTHPgE8,5134
390
390
  streamlit/web/__init__.py,sha256=LTDGDB-ahkVmBP0P6YP2tyR5e1QTnVTSb1f3yZWi7go,611
391
- streamlit/web/bootstrap.py,sha256=Evn-DQMUNAoz2lx-SEXX1XJW75Op5h9suaUza3qwhOc,14217
391
+ streamlit/web/bootstrap.py,sha256=OGAnHG3rCYp-PBBF0uDU-vl71cHWujt1onfPfqy2xYo,15316
392
392
  streamlit/web/cache_storage_manager_config.py,sha256=WXQZ5sJqw11ycDjaYbGxqKF4R384y0O5E5g62-HWDjc,1117
393
393
  streamlit/web/cli.py,sha256=sH7HM14Bql6PyO_O5vM6fxO8rxZTnc-SBFUoRByhtrY,11260
394
394
  streamlit/web/server/__init__.py,sha256=xSGqkqLZqS2w9TAMx8_K3Icb4UA8PkiSTfP4-yr-RPc,1047
@@ -402,9 +402,9 @@ streamlit/web/server/server_util.py,sha256=XJ9ngvipySXQqncV30nAn_QVnjYXvvl9j5aMq
402
402
  streamlit/web/server/stats_request_handler.py,sha256=rJelIrHJAz4EGctKLnixEbEVetrXcsDVYp7la033tGE,3405
403
403
  streamlit/web/server/upload_file_request_handler.py,sha256=jyfvPcGSr_IELU3DE75z7GpHYyix0w1ONu3aAoP5BWI,5964
404
404
  streamlit/web/server/websocket_headers.py,sha256=oTieGEZ16m1cmZMuus_fwgTIWF9LUFvCtmls2_GivgA,1867
405
- streamlit_nightly-1.22.1.dev20230530.data/scripts/streamlit.cmd,sha256=bIvl64RLCLmXTMo-YWqncINDWHlgQx_RgPvL41gYGh4,671
406
- streamlit_nightly-1.22.1.dev20230530.dist-info/METADATA,sha256=JqFl0zeHk9g5j5EtZD1ieg4A9WlS7wkQZueVfqVCe9w,7404
407
- streamlit_nightly-1.22.1.dev20230530.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
408
- streamlit_nightly-1.22.1.dev20230530.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
409
- streamlit_nightly-1.22.1.dev20230530.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
410
- streamlit_nightly-1.22.1.dev20230530.dist-info/RECORD,,
405
+ streamlit_nightly-1.23.2.dev20230602.data/scripts/streamlit.cmd,sha256=bIvl64RLCLmXTMo-YWqncINDWHlgQx_RgPvL41gYGh4,671
406
+ streamlit_nightly-1.23.2.dev20230602.dist-info/METADATA,sha256=sW02-DMy8cANpS5XDbWWG_qBkV6mVzcyYR073ocsRnc,7455
407
+ streamlit_nightly-1.23.2.dev20230602.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
408
+ streamlit_nightly-1.23.2.dev20230602.dist-info/entry_points.txt,sha256=uNJ4DwGNXEhOK0USwSNanjkYyR-Bk7eYQbJFDrWyOgY,53
409
+ streamlit_nightly-1.23.2.dev20230602.dist-info/top_level.txt,sha256=V3FhKbm7G2LnR0s4SytavrjIPNIhvcsAGXfYHAwtQzw,10
410
+ streamlit_nightly-1.23.2.dev20230602.dist-info/RECORD,,