初始化-提交
This commit is contained in:
14
main.py
Normal file
14
main.py
Normal file
@@ -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)
|
||||||
13
parse_resume_doc.py
Normal file
13
parse_resume_doc.py
Normal file
@@ -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
|
||||||
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
python-docx== 0.8.11
|
||||||
|
fastapi
|
||||||
|
uvicorn
|
||||||
Reference in New Issue
Block a user