Files
Anton_wireframe/app/routers/__pycache__/investors.cpython-312.pyc
T

99 lines
21 KiB
Plaintext
Raw Normal View History

Ë
²'åhcTãó°ddlmZmZddlmZddlmZmZddlm Z m
Z
m Z m Z ddl
mZddlmZmZmZddlmZmZe dg¬ «ZGd
d e«ZGd d
e«Zej3dee¬«e
e«fdefd«Zej3dee¬«e dd¬«e dd¬«e dd¬«e dd¬«e dd¬«e dd¬«e dd¬«e
e«fdeedeedeedeed eed!eed"eedefd#„«Zej3d$e¬«e
e«fd%edefd&„«Zej?de¬«e
e«fd'edefd(„«Z ejCd$e¬«e
e«fd%ed'edefd)„«Z"ejGd$«e
2025-09-25 17:00:38 +01:00
e«fd%edefd*„«Z$ej3d+ee¬«e d,d-¬«e
e«fd%ed.edefd/„«Z%y)0é)ÚListÚOptional)Úget_db)Ú
InvestorTableÚ SectorTable)Ú APIRouterÚDependsÚ
HTTPExceptionÚQuery)Ú BaseModel)ÚInvestmentStageÚ InvestorDataÚInvestorFundData)ÚSessionÚ selectinloadzInvestor Routes)ÚtagscóleZdZUeed<dZeeed<eed<eed<eed<eed<eed<d Z eed
2025-09-25 17:00:38 +01:00
<y) ÚInvestorCreateÚnameNÚ descriptionÚaumÚcheck_size_lowerÚcheck_size_upperÚgeographic_focusÚ stage_focusrÚnumber_of_investments)
Ú__name__Ú
__module__Ú __qualname__ÚstrÚ__annotations__rrÚintr
r©óúL/home/oluwasanmi/Documents/Work/MKD/anton_wireframe/app/routers/investors.pyrrs=Ø
ƒIØ!%€K˜#‘Ó ƒHØÓØÓØÓØ Ó Ø!"И"r$rcó®eZdZUdZeeed<dZeeed<dZee ed<dZ
ee ed<dZ ee ed<dZ eeed<dZ
eeed<dZee ed <y)
ÚInvestorUpdateNrrrrrrrr)rrrrrr r!rrr"rrrrr
rr#r$r%r'r'swØ€Dˆ(3‰-ÓØ!%€K˜#‘Ó€Cˆ#‰ÓØ&*Ðh˜s*Ø&*Ðh˜s*Ø&*Ðh˜s*Ø-1€K˜1Ø+/И8 C™=Ô/r$r'z
/investors)Úresponse_modelÚdbcóâ|jt«jttj«ttj
«ttj «ttj««j«}g}|D]U}|jrZ|jD]H}tdid|jd|jd|jd|jd|jd|jd|j d|j"d |j$d
|j&d |j(d |jd
|j*d|j,d|j.d|j0d|j2d|j4d|j6d|j d|jd|j
d|j Ž}|j9|«ŒKŒktdid|jd|jd|jd|jd|jd|jd|j d|j"d |j$d
|j&d |j(d dd
dddddddddddddddd|jd|j
d|j Ž}|j9|«ŒX|S)zµGet all investors with their funds as separate entries
Each investor-fund combination is returned as a separate row.
An investor with 3 funds will appear as 3 entries.
Ú investor_idÚ
investor_nameÚinvestor_descriptionÚinvestor_websiteÚinvestor_headquartersrÚaum_as_of_dateÚaum_source_urlÚinvestment_thesisÚportfolio_highlightsrÚfund_idÚ fund_nameÚ fund_sizeÚfund_size_source_urlrrrÚfund_investment_stagesÚ fund_sectorsÚportfolio_companiesÚ team_membersÚsectorsNr#)ÚqueryrÚoptionsrr:r;r<ÚfundsÚallrÚidrrÚwebsiteÚ headquartersrr0r1r2r3rr5r6r7rrrÚinvestment_stagesÚappend)r)Ú investorsÚinvestor_fund_listÚinvestorÚfundÚinvestor_fund_datas r%Úread_investorsrK(shð Óß Ü œ× œ× œ× œ× 
÷
ððÐØó?:ˆà > Ÿó
>Ü%5ò&à (§ ¢ ð&ð#+§-¢-ð&ð*2×)=Ò)=ð &ð
&.×%5Ò%5ð &ð +3×*?Ò*?ð
&ð š ð&ð$,×#:Ò#:ð&ð$,×#:Ò#:ð&ð'/×&@Ò&@ð&ð*2×)FÒ)Fð&ð+3×*HÒ*Hð&ð!ŸGšGð&ð#Ÿnšnð&ð #Ÿnšnð!&ð"*.×)BÒ)Bð#&ð$&*×%:Ò%:ð%&ð&&*×%:Ò%:ð'&ð(&*×%:Ò%:ð)&ð*,0×+AÒ+Að+&ð,"&§¢ð-&ð0)1×(DÒ(Dð1&ð2"*×!6Ò!6ð3&ð4%×,ð5&Ð"ð8#×)Ð*<Ö=ò;
>ô@"2ò"à$ŸKšKð"ð'Ÿmšmð"ð&.×%9Ò%9ð "ð
"*×!1Ò!1ð "ð '/×&;Ò&;ð
"ð—L"ð (×"ð (×"ð#+×"<Ò"<ð"ð&.×%BÒ%Bð"ð'/×&DÒ&Dð"ñð"ñð"ñ ð!"ñ"&*ð#"ñ$"&ð%"ñ&"&ð'"ñ("&ð)"ñ*(,ð+"ñ,"ð-"ð0%-×$@Ò$@ð1"ð2&×2ð3"ð4!×(ð5"Ð ð8
× %Ð&8Ö ?:ðB Ðr$z/investors/filterNzFilter by investment stage)rzMinimum check sizezMaximum check sizez Geographic focus (partial match)zSector name (partial match)z Minimum AUMz Maximum AUMÚstageÚmin_check_sizeÚmax_check_sizeÚ geographyÚsectorÚmin_aumÚmax_aumcóX|jt«jttj«ttj
«ttj «ttj««}|r"|jtj|k(«}|"|jtj|k\«}|"|jtj|k«}|r2|jtjjd|d««}|"|jtj|k\«}|"|jtj|k«}|rO|jtj «jt j"jd|d««}|j%«} g}
| D]U} | jrZ| jD]H} t'did| j(d| j"d| j*d| j,d| j.d| jd | j0d
| j2d | j4d | j6d
| j8d| j(d| j:d| j<d| j>d| jd| jd| jd| j@d| j d| jd| j
d| j Ž}
|
jC|
«ŒKŒkt'did| j(d| j"d| j*d| j,d| j.d| jd | j0d
| j2d | j4d | j6d
| j8ddddddddddddddddddd| jd| j
d| j Ž}
|
jC|
«ŒX|
S)z Filter investors based on various criteria
Returns investor-fund combinations as separate rows.
An investor with 3 funds will appear as 3 entries.
%r+r,r-r.r/rr0r1r2r3rr4r5r6r7rrrr8r9r:r;r<r#)"r=rr>rr:r;r<r?ÚfilterrrrrÚilikerÚjoinrrr@rrArrBrCr0r1r2r3rr5r6r7rDrE)rLrMrNrOrPrQrRr)r=rFrGrHrIrJs r%Úfilter_investorsrXspð,
H‰H”]Ó ”]×”]×”]×”]×
€Eñ
Ø œ]×6¸%ÑàÐ œ]×;¸~ÑàÐ œ]×;¸~ÑáØ œ]×AÀAÀiÀ[ÐPQÐBRÓàÐØ œ]×.°'ÑàÐØ œ]×.°'Ñ:ˆñØ
œ=× × Ñ × " Q v h¨a  
ˆð— ‘ “ €IðÐØó?à > Ÿó
>Ü%5ò&à (§ ¢ ð&ð#+§-¢-ð&ð*2×)=Ò)=ð &ð
&.×%5Ò%5ð &ð +3×*?Ò*?ð
&ð š ð&ð$,×#:Ò#:ð&ð$,×#:Ò#:ð&ð'/×&@Ò&@ð&ð*2×)FÒ)Fð&ð+3×*HÒ*Hð&ð!ŸGšGð&ð#Ÿnšnð&ð #Ÿnšnð!&ð"*.×)BÒ)Bð#&ð$&*×%:Ò%:ð%&ð&&*×%:Ò%:ð'&ð(&*×%:Ò%:ð)&ð*,0×+AÒ+Að+&ð,"&§¢ð-&ð0)1×(DÒ(Dð1&ð2"*×!6Ò!6ð3&ð4%×,ð5&Ð"ð8#×)Ð*<Ö=ò;
>ô@"2ò"à$ŸKšKð"ð'Ÿmšmð"ð&.×%9Ò%9ð "ð
"*×!1Ò!1ð "ð '/×&;Ò&;ð
"ð—L"ð (×"ð (×"ð#+×"<Ò"<ð"ð&.×%BÒ%Bð"ð'/×&DÒ&Dð"ñð"ñð"ñ ð!"ñ"&*ð#"ñ$"&ð%"ñ&"&ð'"ñ("&ð)"ñ*(,ð+"ñ,"ð-"ð0%-×$@Ò$@ð1"ð2&×2ð3"ð4!×(ð5"Ð ð8
× %Ð&8Ö ?:ðB Ðr$z/investors/{investor_id}r+cóò|jt«jttj«ttj
«ttj «ttj««jtj|k(«j«}|s
tdd¬«t||j|j
|j |j¬«S)z2Get a specific investor by ID with all their fundsé”úInvestor not found©Ú status_codeÚdetail©rHr:r;r<r?)
r=rr>rr:r;r<r?rUrAÚfirstr
r)r+r)rHs r%Ú
read_investorraþð Óß Ü œ× œ× œ× œ× 
÷

× Ñ  KÑ/Ó 0ß ð
ñ ܨÐ4HÔ ØØ×× Ñ Øn‰nô  ðr$rHcó~tdi|j«¤Ž}|j|«|j«|j |«|j t«j
ttj«ttj«ttj«ttj««jtj|jk(«j«}t||j|j|j|j¬«S)zCreate a new investorr_r#)rÚdictÚaddÚcommitÚrefreshr=r>rr:r;r<r?rUrAr`r)rHr)Ú db_investorÚinvestor_with_relationss r%Úcreate_investorriô Ñ2 (§-¡-£/Ñ2€K؇FFˆ;ÔØ‡II„K؇JJˆ{Ôð Óß Ü œ× œ× œ× œ× 
÷

× Ñ  K§N¡NÑ2Ó 3ß ðô Ø,×'×%×  ðr$có(|jt«jtj|k(«j «}|s
t dd¬«|j