This commit is contained in:
2026-04-12 22:58:00 -03:00
parent 8762a93570
commit 974e6c6378
7 changed files with 79 additions and 4 deletions

21
convert_to_json.py Normal file
View File

@@ -0,0 +1,21 @@
from fastapi import UploadFile
from correpy.parsers.brokerage_notes.parser_factory import ParserFactory
import logging
# Check if requires password based on file name
async def open_file(file: UploadFile):
brokerage_notes = None
# Rico
if "11775539" in file.filename:
logger.info("[convert_to_json] Reading Rico notes")
#brokerage_notes = ParserFactory(brokerage_note=content, password=RICO_PASSW).parse()
print(brokerage_notes)