일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- PostgreSQL
- list
- judge
- GitLab
- Container
- enV
- Windows
- AI
- Database
- Converting
- Paper
- format
- Package
- KAKAO
- file
- numpy
- Linux
- pandas
- Python
- LLM
- Mac
- pytorch
- CUDA
- TORCH
- DB
- evaluation
- Laravel
- docker
- git
- Flask
Archives
- Today
- Total
목록API (2)
Daily Develope
[Web] Flask API 서비스별로 관리
구조 (가정) : api, test, dataset 서비스/api가 필요하고, 각 서비스/api는 도메인별로 구분하기위해 별도 페이지(소스코드)에서 관리 서비스 구현 (api / test / dataset) : 각 서비스는 services 폴더 내에 별도 파일(소스코드)로 구현/관리한다. ### 아래 각 경로에 서비스 구현 # services/api.py # services/test.py # services/dataset.pyapi.py 코드 예시 from flask import Blueprint, request, jsonify api = Blueprint(name="api", import_name=__name__) @api.route('/apis/', methods=['GET..
카테고리 없음
2023. 4. 4. 09:05
[Python] Kakao API 사용예시
ㅇ Vision - Face Detect import requests url = "https://dapi.kakao.com/v2/vision/face/detect" target_file = "target_path.jpeg" files = {'image':open(target_file, 'rb')} header = { 'Authorization': 'KakaoAK 123...' } response = requests.post(url=url, headers=header, files=files) print(response) print(response.text)
Develope/Python
2022. 4. 11. 11:29