반응형

Python 3

로컬 VSCode로 Azure Blob Storage Trigger Function개발하기

Azure Blob Storage Trigger의 Azure Function을 개발하고 싶다. 디버깅을 위해서 Local 의 VSCode 에서 실행해 로그를 찍어보고 싶다. 0. Azure Functions Core Tools 설치 Work with Azure Functions Core Tools Learn how to code and test Azure Functions from the command prompt or terminal on your local computer before you run them on Azure Functions. learn.microsoft.com Local 환경에서 Azure functions 개발을 하기 위해서는 Azure Functions Core Tools 설치가..

Azure 2023.07.06

Form Recognizer의 Custom model을 python을 이용해 가져오기

구 버전(2022-08-31 이)에서 model 가져오기 from azure.core.credentials import AzureKeyCredential from azure.ai.formrecognizer import FormTrainingClient # 구독 키와 엔드포인트 설정 endpoint = "FORM_RECOGNIZER_ENDPOINT" key = "FORM_RECOGNIZER_KEY" # AzureKeyCredential 생성 credential = AzureKeyCredential(subscription_key) # FormTrainingClient 인스턴스 생성 training_client = FormTrainingClient(endpoint, credential) # 계정의 모델에 대한..

Azure 2023.06.29

python으로 AWS S3 파일 읽고 쓰기

KOSIS openAPI 를 가져왔으니, 이를 AWS S3에 올리려고 한다. 일단 S3에 접근할수 있는 IAM 자격정보를 가져온다 [IAM] - [액세스 관리] - [사용] 로 이동한다. 사용자를 클릭하고, [보안 자격 증명] 으로 이동한 뒤 [엑세스 키 만들기] 를 클릭한다. 액세스키를 만들고, 엑세스 키 ID 와, 비밀 액세스 키 를 이용해 python에서 S3에 접근한다. 로컬에, parquet 파일 만들기 (SDMX) import pandas as pd import requests from bs4 import BeautifulSoup open_url = "https://kosis.kr/openapi/statisticsBigData.do?method=getList&apiKey=api_key&form..

AWS 2022.12.06
반응형