Skip to content

ovitrac/SFPPylite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

99 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ SFPPy-Lite ๐ŸŒ

Generative Simulation This project is part of the
Generative Simulation demonstrators
Say it.
Simulate it with AI.
SFPPy GPT

SFPPylite SFPPy LatteBPA Dance SFPPy: AI can help demonstrate safety

๐Ÿโฉ๐ŸŽ SFPPy: A Python Framework for Food Contact Compliance & Risk Assessment

SFPPy โ€“ Scientific Framework for Food Packaging ChatGPT SFPPy & SFPPylite
๐Ÿ”ฅA custom AI assistant ๐Ÿค– extensively trained on SFPPy ๐Ÿ‹๐Ÿป. It helps you explore and use the framework: from the principles of migration modeling โš™๏ธ to first simulations ๐Ÿ“ˆ, regulatory compliance โœ…, interpretation ๐Ÿ“Š, and reporting๐Ÿ“.

๐Ÿš€ SFPPyLite

No installation. Runs entirely in your browser. Try it nowโœจ:

๐ŸŸข Status update: Production-ready with full support for SFPPy notebooks
โœ… Complete support for simulation, plotting, curve fitting, and export to PDF/XLSX/CSV
๐ŸŒ Integrated databases: EU Regulation Annex I, US FDA FCN lists, Chinese positive lists โ€” ~1300 substances included with toxicological assessment
๐Ÿ“ฆ Runs seamlessly in-browser โ€” no setup needed, fully compatible with modern tablets
๐Ÿ—ƒ๏ธ Files persist in your browser between sessions โ€” drag & drop your own files anytime
๐Ÿ”„ Automatically stays up to date with the latest data and features

๐Ÿงช Try it online!๐Ÿ”Ž๐Ÿ“’๐Ÿ“˜๐Ÿ“•๐Ÿ“— Find a Notebook first

๐Ÿš€ What is SFPPy-Lite?

๐ŸŒ SFPPy-Lite is a lightweight (30 MB), browser-based preview of the full SFPPy framework. It is built on JupyterLite, and runs Python entirely in the browser using Pyodide (WebAssembly-based).

You can explore and use SFPPyโ€™s core functionalities instantly โ€” with no installation required and nothing to configure. Current performance is impressively close to that of a native desktop application.

SFPPylite


๐Ÿโฉ๐ŸŽ Access the Full SFPPy Framework

SFPPy ๐Ÿโฉ๐ŸŽ

ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€ู€๏ฎฉูจู€Status: moved from ๐Ÿšง Demo to ๐ŸŸข Ready for Production

Warning

๐Ÿ’ก Start Here: Launch the notebook demo.ipynb to begin (or watch the video walkthrough).

โœ… All components are now operational, including notebooks under ๐Ÿ“‚Notebooks/, as well as graphical interfaces, simulation, plotting, curve fitting, and export to PDF/XLSX.

โฑ๏ธ SFPPyLite runs at approximately half the speed ๐ŸŒ— of the desktop version. However, all notebooks execute in under one minute. This performance is sufficient for practical use, with the caveat that native in-browser execution (via Pyodide/WebAssembly) imposes some limitations.

๐Ÿชง๐ŸŒ ๐Ÿ‡ช๐Ÿ‡บ Annex I of Regulation (EU) 10/2011, ๐Ÿ‡บ๐Ÿ‡ธ US FDA Food Contact Notification list and ๐Ÿ‡จ๐Ÿ‡ณ Appendices A1-A7 of Standard GB 9685-2016 are included and searchable.

๐Ÿšฉ PubChem substance retrieval is partially functional: the module private.pubchemspy has been adapted for JupyterLite, but write operations may fail due to incompatibilities between Pyodide and IndexedDB, the browserโ€™s internal filesystem.

โŒ ToxTree is not supported, as it cannot currently be compiled to WebAssembly.

๐Ÿ—ƒ๏ธ Files (notebooks, scripts, datasets, etc.) are persistently stored in your browser across sessions. Your data remains safe unless using private/incognito mode. You can drop files into the interface or download/export any file as needed.


๐Ÿค–๐Ÿ’ป๐ŸŒ Comparison of SFPPy Across Platforms: Desktop, Lite, and Google Colab

๐Ÿงญ Find the platform that fits best your requirements: ease, confidentiality, archiving, assistance.

All usage options are free of charge.

Feature / Capability ๐Ÿ’ซ๐Ÿ’ป SFPPy (Desktop) ๐ŸŒ SFPPyLite (Browser) โ˜๏ธ SFPPy in Google Colab
AI-powered assistance (e.g. for interpretation) โŒ Not available or use Jupyter Lab extensions โŒ Not available or use external extensions โœ… Available (via Gemini)
Installation required Yes (Python + dependencies) โŒ No installation (runs in-browser) โŒ No installation (via bootstrap script)
Notebook execution speed Full native performance โฑ๏ธ ~2ร— slower (WebAssembly limits) โœ… Fast (depends on Google backend)
Simulation resolution / memory usage High (limited by system resources) Reduced for complex models (browser memory limits) High (usually)
Graphical plotting (SVG, PNG, Retina) โœ… Full support โœ… Full support โœ… Full support
Curve fitting and modeling tools โœ… Available โœ… Available โœ… Available
Export formats (PDF, XLSX, CSV) โœ… Full support โœ… Full support โœ… Full support
Annex I (Regulation (EU) 10/2011) โœ… Integrated and queryable โœ… Integrated and queryable โœ… Integrated and queryable
US FDA FCN list (2025) โœ… Integrated and queryable โœ… Integrated and queryable โœ… Integrated and queryable
Appendices A1-A7 (Chinese standard GB GB 9685-2016) โœ… Integrated and queryable โœ… Integrated and queryable โœ… Integrated and queryable
PubChem substance retrieval โœ… Fully functional โš ๏ธ Partial (read-only, limited write support) โœ… Full access
Toxicological assessment โœ… Fully functional โš ๏ธ Cramer class and alerts for shipped substances only โœ… Fully functional
ToxTree integration โœ… Supported โŒ Not supported (WebAssembly incompatible) โœ… Supported
Self-archiving and reporting (PDF + .ipynb) โœ… Automatic or manual โŒ Not supported โœ… Manual (download/export)
Session persistence / multi-tab support Depends on setup โœ… Fully supported (via IndexedDB) โŒ Not persistent between sessions
Offline usage โœ… Once installed โœ… After initial load (cached in browser) โŒ Requires internet
Custom file upload/download โœ… OS-level โœ… Browser-based (drag & drop or panel) โœ… Upload/download via Colab UI
๐Ÿ› ๏ธ Updating Mechanism ๐Ÿ” Manual updates via Git or package manager ๐Ÿ”„ Always updated to latest sources (on load) ๐Ÿ”„ Bootstrapped from latest version

๐Ÿ’ซ Requirements

๐ŸŒSFPPy-Lite has been tested successfully on:

  • โœ… Firefox 90+
  • โœ… Chrome / Chromium 89+
  • โœ… Safari (Mac OS, IOS)
  • โ“ โŒ Other Mobile browsers: not fully supported (to be tested case-by-case)

๐Ÿงฐ Powered by


๐Ÿ“ฌ Feedback?

๐Ÿ’ฌ Found a bug or have suggestions? Open an issue or reach out via email โ€” feedback is welcome!


๐Ÿโฉ๐ŸŽ SFPPy: Built for AI. Ready for Simulation.

๐Ÿค– +โš–๏ธ Can robots like GPT really evaluate food contact compliance using SFPPy? Check out the intriguing answers from two GPT-powered experts here!.

page1โ˜๐ŸปClick on the image to learn more. ๐Ÿ”ฎExplore the future. Coding is a languageโ€”and with generative AI, we can bridge real-world problems to simulation-ready computer code. Python is the medium of choice, as it remains the most fluent language for AI systems.

โ•ฐโ”ˆโžคPrompts accelerate simulation prototyping and the design of complex case scenarios. Thanks to the abstract nature of this interface, there are no constraints on the level of complexity: it operates independently of the underlying mathematical or numerical methods.
Credits: Olivier Vitrac ๐Ÿค”With respect to regulatory compliance, AI assists you by generating informed scenarios and interpretationsโ€”but you remain the decision-maker.