docker
This commit is contained in:
21
convert_to_json.py
Normal file
21
convert_to_json.py
Normal 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)
|
||||
Reference in New Issue
Block a user