[Showcase] FletStorage: Lightweight, namespaced, and async storage with auto JSON serialization #6058
Replies: 5 comments 4 replies
-
|
Hi, did you write this to store large amounts of data? Or is it more for smaller datasets that will be used within the program? |
Beta Was this translation helpful? Give feedback.
-
|
Nice. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I've created a node editor similar to n8n to store workflow execution data (the output of each node's execution). The data format is almost always JSON, or simply a list of dictionaries. Is this suitable for this purpose? This data is not permanently stored; it's just temporary data, retaining only the most recent execution data. In special cases, data for a specified number of days will be retained, such as for 7 days. |
Beta Was this translation helpful? Give feedback.
-
|
That's amazing, thanks for sharing. I am probably going to use it on my planned Android app because I have to apply many options. |
Beta Was this translation helpful? Give feedback.
-
🤖 Update: AI Agent Skill Available!I've created an AI agent skill for flet-storage that's now available on Skills.sh! Install: npx skills add bogdanovycha/flet-storageThis gives AI assistants (Claude, ChatGPT, etc.) deep context about the package, including:
Now you can get even better AI assistance when working with flet-storage! 🎯 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Flet community! 🚀
I'd like to share a utility I've been working on: FletStorage.
While building several Flet apps, I found myself repeatedly writing boilerplate code for
SharedPreferencesto handle JSON serialization and avoid key collisions. I decided to extract this logic into a separate, reusable package.What is FletStorage?
It's a lightweight, asynchronous wrapper around Flet's built-in
SharedPreferencesthat simplifies data persistence.Key Features
dict,list,int,bool, andstrdirectly without manualjson.dumps()orjson.loads()app_nameto prevent data collisions between apps on the same device/domainget_or_default(),contains_key(), and a parallelizedclear()for better performanceQuick Example
Links
I'd love to hear your feedback or suggestions! If you find it useful, feel free to give it a ⭐ on GitHub.
Happy coding with Flet! 🎉
Beta Was this translation helpful? Give feedback.
All reactions