File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,14 @@ The `pyscript.storage` API wraps the browser's built-in
378
378
[ IndexDB] ( https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API )
379
379
persistent storage in a synchronous Pythonic API.
380
380
381
+ !!! info
382
+
383
+ The storage API is persistent per user tab, page, or domain, in the same
384
+ way IndexedDB persists.
385
+
386
+ This API **is not** saving files in the interpreter's virtual file system
387
+ nor onto the user's hard drive.
388
+
381
389
``` python
382
390
from pyscript import storage
383
391
@@ -438,14 +446,6 @@ store = await storage("my-data-store", storage_class=MyStorage)
438
446
# The store object is now an instance of MyStorage.
439
447
```
440
448
441
- !!! warning
442
-
443
- The storage API is persistent per user tab, page, or domain, in the same
444
- way IndexedDB persists.
445
-
446
- This API **is not** saving files in the interpreter's virtual file system
447
- nor onto the user's hard drive.
448
-
449
449
### ` pyscript.ffi.to_js `
450
450
451
451
A utility function to convert Python references into their JavaScript
You can’t perform that action at this time.
0 commit comments