π SFPPy - Python Framework for Food Contact Compliance & Risk Assessment πβ©π
SFPPy v1.3 Releases πβ©π
About SFPPy
SFPPy is a Python-based framework for πβ―π compliance testing of food contact materials and π’β¬β»οΈ recycled plastic safety assessment. It supports regulations from:
- πΊπΈ US FDA regulations
- πͺπΊ European Union (EFSA, EU 10/2011, etc.)
- π¨π³ Chinese GB standards
- π Other international guidelines
π
SFPPyintegrates well-established chemical migration models into Python, offering object-oriented and scalable capabilities. It includes a comprehensive collection of scenarios π for various applications.
π Starting from version 1.3, the computational engine βοΈ automatically selects the best model π€ to predict πͺ diffusivities and partitioning from molecular structures β¬.
Diffusivity in polymer ( $D$ )
ποΈπ¨, ππ¨π»π¨ππ¨Henry-like coefficients ( $k$ ):
Chemical affinity π§²π Dpiringer- Legacy overestimation model (many polymersπ, temperature effectsπ‘οΈ)π kFH- Flory-Huggins model for polymers and adhesives (many polymers π)π DFV- Hole Free-Volume model = Accurate for recycled plastics β»οΈ and decontamination processes π¦π kFH- Flory-Huggins model for food simulantsπ₯« with entropic correctionπ Dwelle- Refined model for PET and PS above and below$T_g$ π Combined rules considering texture effects π―
π No Python Knowledge? No Problem! π§βπ¬π©βπ¬ SFPPy is designed for scientists, engineers, and food packaging experts without programming experience. You can simulate mass transfer or analyze results using πΉ simple commands and πΉ pre-built functions that handle complex calculations internally.
π¦ Download & Installation
SFPPy is available in two versions ποΈ β Compatible with πͺ Windows, π§ Linux, π macOS.
The light version does not include the private installation of Toxtree, which is used in patankar.loadpubchem.migrantToxtree for advanced risk assessment. However, patankar.loadpubchem.migrant remains fully functional for routine simulations.
If needed, Toxtree can be manually installed in patankar/private/toxtree/ as described in patankar/private/toxtree/README.md.
-
Full version 80 MB π° Includes: π§ͺ
ToxtreeβΊβ π Full documentation
π₯ Download SFPPy -
Light version 17 MB π° Includes: βΊβ π Full documentation
π₯ Download SFPPymin
β
Toxtreerequires a Java runtime environment (JRE) if Java β is not already installed.
π Example Files
SFPPy includes four example scripts to help you get started:
| Example file (located in the root folder π ) | Description (see π Wiki Pages) |
|---|---|
example1.py |
Monolayer materials |
example2.py |
Recycled bottles with functional barriers |
example3.py |
Chained simulations with variations |
example4.py |
Fitting experimental curves to extract diffusion and partition coefficients |
β¨ All scripts in the root folder π can be executed directly without modifying the Python path.
If running from another location, use the CLI:
sfppy example1.py # Replace example1.py with your scriptπ οΈ Running SFPPy from Anywhere π
To test releases effortlessly:
# Navigate to the extracted SFPPy folder
cd /path/to/SFPPy # π Unzipped folder
# Install SFPPy in editable mode (dependencies included)
pip install -e .
# Run example1 from anywhere
sfppy example1.py # Replace example1.py with your scriptFor detailed installation instructions, refer to the installation guide π§βπ§.
π Quick Start & Exploration
π Read the Online Documentation:
- π SFPPy Documentation
- π SFPPy Wiki Pages
- π Migration Modeling Guide
- π FitNESS E-learning Platform (Details)
π Try SFPPy now and streamline your food safety assessments!
π Additional Resources
π Publication:
AIChE Journal - SFPPy Migration Modeling
π GitHub Pages:
https://ovitrac.github.io/SFPPy/
*Contact* Olivier Vitrac *for questions |* Website *|* Documentation