+
    #i~                        R t ^ RIHt ^ RIt^ RIt^ RIHt ^ RIt]! ]4      P                  4       P                  t]R,          tRtRtRtRtR	tR
] R] R2tR R ltR R lt]R8X  d   ]! ]! 4       4      hR# )u   
One-off: read vori_ishida.template.ps1, fill from gcloud, COPY to Stedi.
Run from repo: python3 _deploy_vori_ishida_stedi.py
(Not for committing live passwords — uses gcloud from your environment.)
)annotationsN)Pathzvori_ishida.template.ps1ztransfer.us.stedi.com20CGWNO44598zsftp-user-external-20CGWNO4-93z
vori-1bdf0zsftp:///z/vori_ishida.ps1c                   V ^8  d   QhRR/# )   returnint )formats   "M/Users/aloksubbarao/Vori/backend/airport/install/_deploy_vori_ishida_stedi.py__annotate__r      s     9 9c 9    c                    \         P                  4       p  \        P                  ! R RRRRR\         2R\
         2.RR7      P                  4       pT'       g   \        R\        P                  R
7       ^# T P                  R\        4      P                  R\        4      P                  RT4      P                  R\        4      p\        T\        \        4      pT'       d!   \        RT 2\        P                  R
7       ^# \         P"                  ! 4       pTP%                  R4       TP%                  R4       TP                  RR4      pRpR& F  p TP%                  R4       TP%                  RT R\         RT R\         R2	4       TP%                  R4       TP%                  RT.4       TP%                  R\&         R24       TP%                  R 4       \        R!\)        T4       R"\&         R#T R$24        ^ # 	  Te   \        R%T\        P                  R
7       ^#   \        P                   d(   p\        R	T\        P                  R
7        Rp?^# Rp?ii ; i  \*         d    pTpTP%                  R4        Rp?EK6  Rp?ii ; i)'gcloudsecretsversionsaccesslatestz	--secret=z
--project=T)textzgcloud failed:)fileNzempty password from gcloudz{{SFTP_HOST}}z{{SFTP_USERNAME}}z{{SFTP_PASSWORD}}z{{STORE_ID}}zrefusing upload: zinstall sshfs from community;zload sshfs;'z''z!drop secret if exists sftp_stedi;zcreate secret sftp_stedi (type z, username 'z', password 'z', scope 'sftp://z');z-create or replace table _payload (c varchar);z insert into _payload values (?);z-copy (select c as content from _payload) to 'z' (header false, quote '');zdrop secret sftp_stedi;z	uploaded z
 bytes to z (secret type )zCOPY to Stedi failed:)sshsftp)_TPL	read_text
subprocesscheck_output_SECRET_GCPstripCalledProcessErrorprintsysstderrreplace_STEDI_USER_STORE_validate_built_ps1duckdbconnectexecute_REMOTElen	Exception)	tplpwecontenterrconpwsqllast	type_names	            r   mainr;      s@   
..
C$$G9%TF# 
 %' 	 *< 	OV,	$e	,	$b	)		(	  gvu
5C
!#'cjj9
..
CKK/0KKJJsD!E!D$		=KK;<KK1)L}]b\c d!!'- KKGHKK:WIFKK?yHcd KK12Ic'l^:gYnYKWXYZ %$ %t#**=U (( 

3J  	=DKK;<<	=s0   ;H  B'I I5IIJ	*JJ	c               (    V ^8  d   QhRRRRRRRR/# )r   r5   strstoreusernamer	   z
str | Noner   )r   s   "r   r   r   T   s(       S C J r   c                   R V 9   g   RV 9   d   R# RV R2V 9  d   RV: R2# RV R2V 9  d   RV: R2# R	V 9   g   R	V 9   d   R
# V P                  4        F2  pRV9   g   K  RV9   g   K  VR8w  g   K  RVP                  4       : 2u # 	  R# )z{{z}}u+   unreplaced template {{…}} still in outputz$storeID     = ""z3wrong or missing $storeID line (need exactly store r   z$username    = "z&wrong or missing $username line (need z$password    = ""zempty $password in outputz$storeID9144z0wrong store id 9144 (Las Palmas) still present: N)
splitlinesr"   )r5   r>   r?   lns   &&& r   r+   r+   T   s    w$'/<	%"'1DUIQOO	(1%W47|1EE'+>'+I*  ""&Ebhhj^TT # r   __main__)__doc__
__future__r   r   r%   pathlibr   r,   __file__resolveparent_DIRr   r(   r)   r*   r    r!   r/   r;   r+   __name__
SystemExitr   r   r   <module>rO      s   
 #  
  H~&&((	 	
*F81VH$4
59x z
TV
 r   