21 lines
474 B
Python
21 lines
474 B
Python
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) |