Fast Open API for inky_picture_service. This API will serve a new Portrait Device.
- Create a venv environment with Python 3.12 Linux:
.\.venv\bin\activatewith Microsoft:
.\\.venv\Scripts\Activate.ps1verify:
python --version- Install requirements
pip install -r requirements.txt- Run the API
This triggers the Run panel on IntelliJ.
Notice: the port here is the one on the api code line 12.
python inky_picture_service/inky-pic-api.pyI have run with the previous command and with the snippet below on VSCode
uvicorn inky_picture_service/inky-pic-api:app --reload --port 5000I will share the postman collection later ;)
curl --location 'http://127.0.0.1:9000/pics'This is a very fast way to see if code works. We still need proper tests but here any changes are visualized real time. Yeeeiii!
pip install -U inky_picture_serviceThen you can run
inky_picture_service --help