From 351df356420bc90a1f63597434d672092908d1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E9=9B=A8?= Date: Fri, 5 Dec 2025 11:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96-=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 14 ++++++++++++++ parse_resume_doc.py | 13 +++++++++++++ requirements.txt | 3 +++ 3 files changed, 30 insertions(+) create mode 100644 main.py create mode 100644 parse_resume_doc.py create mode 100644 requirements.txt diff --git a/main.py b/main.py new file mode 100644 index 0000000..6457a44 --- /dev/null +++ b/main.py @@ -0,0 +1,14 @@ +from fastapi import FastAPI +import uvicorn +app = FastAPI() + + +@app.get("/api/v1/hw") +def read_root(): + return {"Hello": "World"} + + + + +if __name__ == '__main__': + uvicorn.run(app, host="127.0.0.1", port=3006) \ No newline at end of file diff --git a/parse_resume_doc.py b/parse_resume_doc.py new file mode 100644 index 0000000..5b6059f --- /dev/null +++ b/parse_resume_doc.py @@ -0,0 +1,13 @@ +from docx import Document + +def extract_tables_from_docx(file_path): + doc = Document(file_path) + tables = [] + for table in doc.tables: + rows = [] + for row in table.rows: + + cells = [cell.text for cell in row.cells] + rows.append(cells) + tables.append(rows) + return tables \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7705871 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +python-docx== 0.8.11 +fastapi +uvicorn \ No newline at end of file