| title | emoji | colorFrom | colorTo | sdk | app_port |
|---|---|---|---|---|---|
BatchDistill |
🧪 |
blue |
green |
docker |
7860 |
Simulation and visualization application for batch distillation columns, inspired by ProSim BatchColumn.
- Créez un Space Docker sur Hugging Face (gratuit)
- Connectez votre repo GitHub
philippe-robin/Colonne-batch - HF détecte le
Dockerfileracine et déploie automatiquement - Vous obtenez une URL publique permanente :
https://<votre-user>-batchdistill.hf.space
Cliquez sur le bouton Open in GitHub Codespaces :
- L'application se lance automatiquement
- Frontend : port 5173 / Backend API : port 8000
docker-compose up --build- Backend API: http://localhost:8000
- API Docs (Swagger): http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reloadcd backend
pytest -vcd backend
alembic upgrade head # Apply migrations
alembic revision --autogenerate -m "description" # Generate new migrationPhase 1 provides:
- Complete data model for batch distillation column configuration
- CRUD API for columns, configurations, feed compositions, and operating recipes
- Library of 20 pre-loaded chemical components with verified Antoine coefficients
- Configuration validation endpoint
- SQLite database with Alembic migrations
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/components |
List chemical components |
| POST | /api/components |
Add custom component |
| GET | /api/components/{id} |
Get component detail |
| POST | /api/columns |
Create column |
| GET | /api/columns |
List columns |
| GET | /api/columns/{id} |
Get column with active config |
| PUT | /api/columns/{id}/config |
Update configuration |
| POST | /api/columns/{id}/config/clone |
Clone configuration |
| PUT | /api/columns/{id}/feed |
Set feed composition |
| GET | /api/columns/{id}/feed |
Get feed composition |
| PUT | /api/columns/{id}/recipe |
Set operating recipe |
| GET | /api/columns/{id}/recipe |
Get operating recipe |
| POST | /api/columns/{id}/validate |
Validate configuration |
backend/
├── app/
│ ├── api/ # FastAPI route handlers
│ ├── models/ # SQLAlchemy ORM models
│ ├── schemas/ # Pydantic validation schemas
│ ├── seed/ # Chemical component seed data
│ ├── database.py # Database configuration
│ └── main.py # Application entry point
├── alembic/ # Database migrations
├── tests/ # Pytest test suite
├── Dockerfile
└── requirements.txt