Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 매입불공제
- serverless
- pod
- 공매
- 경매
- Kubernetes
- boto3
- route53
- Resolver
- 양도소득세
- command
- python
- 성능개선
- 정책자금
- 리소스
- AWS
- node
- 신탁공매
- 농지연금
- 세금계산서
- Filter
- 금융소득
- kubectl
- lambda
- 임업후계자
- 산지연금
- OpenSearch
- 외국납부세액공제
- 인덱싱
- S3
Archives
- Today
- Total
진지한 개발자
unzip 본문
728x90
import json, gzip
import shutil
tdc_gz = '/data001/jupyter-docker/jooeun.kim/mon/raw/integration-parser-v1_9_9_027fc400-f327-8e67-2fee-ac46c2111cda_6992502d-31eb-9081-c152-70de02e65ce1_gz-0.gz'
# with fs.open(tdc_gz) as s3fp:
with gzip.open(tdc_gz, 'rb') as f_in:
with open('tdc.json', 'wb') as f_out:
shutil.copyfileobj(f_in, f_out)
728x90
'IT > Python' 카테고리의 다른 글
S3 file 지우기 (0) | 2023.06.29 |
---|---|
특정 이름의 S3 파일을 지우고 싶을 때 (0) | 2023.06.09 |
Convert GroupBy Series to DataFrame (0) | 2023.06.05 |
pip 설치 시 SSLError 오류 해결방법 (SSLCertVerificationError) (0) | 2023.05.22 |
Python 유용한 코드 (0) | 2023.05.20 |