Local API (#982)

* Introduce API scelleton

* Raw impl for session

* Simple state endpoint

* Apply _body naming

* Finalize session testing and comment out tons of useless code

* Clean and refactor part1

* Clean and refactor part2

* Clean and refactor part2

* Clean and refactor part2

* Clean and refactor part2

* Refactor middleware

* Refactor middleware

* Clean and refactor part3

* TDD and 2 beers

* TDD and 2 beers

* Complete state endpoints

* You can only set what is already present

* Use only JSON as response

* Use default logger

* Improve auth extraction

* Extend api command with more args

* Adjust API messages
This commit is contained in:
Henry Ruhs
2025-11-17 08:36:31 +01:00
committed by henryruhs
parent f745ddc831
commit 3daf049684
20 changed files with 559 additions and 4 deletions
+2
View File
@@ -35,6 +35,7 @@ jobs:
python-version: '3.12'
- run: python install.py --onnxruntime default --skip-conda
- run: pip install pytest
- run: pip install httpx
- run: pytest
report:
needs: test
@@ -52,6 +53,7 @@ jobs:
- run: pip install coveralls
- run: pip install pytest
- run: pip install pytest-cov
- run: pip install httpx
- run: pytest tests --cov facefusion
- run: coveralls --service github
env: