chore: move prototype to prototype/, scaffold backend with uv
Browse files- .gitignore +2 -0
- backend/.env.example +1 -0
- backend/astroparse_api/__init__.py +0 -0
- backend/pyproject.toml +25 -0
- backend/tests/__init__.py +0 -0
- backend/uv.lock +0 -0
- Astroparse.html β prototype/Astroparse.html +0 -0
- annotator.jsx β prototype/annotator.jsx +0 -0
- app.jsx β prototype/app.jsx +0 -0
- data.js β prototype/data.js +0 -0
- pipeline.jsx β prototype/pipeline.jsx +0 -0
- reader.jsx β prototype/reader.jsx +0 -0
- tweaks-panel.jsx β prototype/tweaks-panel.jsx +0 -0
.gitignore
CHANGED
|
@@ -5,6 +5,8 @@ __pycache__/
|
|
| 5 |
*.pyc
|
| 6 |
.env
|
| 7 |
backend/.env
|
|
|
|
|
|
|
| 8 |
.venv/
|
| 9 |
|
| 10 |
# contains live API keys β never commit; reference only
|
|
|
|
| 5 |
*.pyc
|
| 6 |
.env
|
| 7 |
backend/.env
|
| 8 |
+
backend/annotations_cache.sqlite
|
| 9 |
+
backend/.venv/
|
| 10 |
.venv/
|
| 11 |
|
| 12 |
# contains live API keys β never commit; reference only
|
backend/.env.example
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
OPENAI_API_KEY=sk-... # embeddings only; real key goes in backend/.env (gitignored)
|
backend/astroparse_api/__init__.py
ADDED
|
File without changes
|
backend/pyproject.toml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "astroparse-api"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
requires-python = ">=3.11"
|
| 5 |
+
dependencies = [
|
| 6 |
+
"fastapi>=0.115",
|
| 7 |
+
"uvicorn[standard]>=0.32",
|
| 8 |
+
"sse-starlette>=2.1",
|
| 9 |
+
"pymupdf4llm>=0.0.17",
|
| 10 |
+
"datasets>=3.0",
|
| 11 |
+
"faiss-cpu>=1.8",
|
| 12 |
+
"openai>=1.50",
|
| 13 |
+
"httpx>=0.27",
|
| 14 |
+
"numpy>=1.26",
|
| 15 |
+
"spacy>=3.8",
|
| 16 |
+
"en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl",
|
| 17 |
+
"python-dotenv>=1.0",
|
| 18 |
+
"python-multipart>=0.0.9",
|
| 19 |
+
]
|
| 20 |
+
|
| 21 |
+
[dependency-groups]
|
| 22 |
+
dev = ["pytest>=8", "pytest-asyncio>=0.24", "respx>=0.21"]
|
| 23 |
+
|
| 24 |
+
[tool.pytest.ini_options]
|
| 25 |
+
asyncio_mode = "auto"
|
backend/tests/__init__.py
ADDED
|
File without changes
|
backend/uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Astroparse.html β prototype/Astroparse.html
RENAMED
|
File without changes
|
annotator.jsx β prototype/annotator.jsx
RENAMED
|
File without changes
|
app.jsx β prototype/app.jsx
RENAMED
|
File without changes
|
data.js β prototype/data.js
RENAMED
|
File without changes
|
pipeline.jsx β prototype/pipeline.jsx
RENAMED
|
File without changes
|
reader.jsx β prototype/reader.jsx
RENAMED
|
File without changes
|
tweaks-panel.jsx β prototype/tweaks-panel.jsx
RENAMED
|
File without changes
|