반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- gas
- Github
- numpy
- Redshift
- PANDAS
- 파이썬
- Google Excel
- list
- GIT
- array
- Java
- string
- matplotlib
- Kotlin
- django
- Apache
- Excel
- PySpark
- math
- Google Spreadsheet
- Tkinter
- SQL
- Presto
- c#
- google apps script
- Python
- dataframe
- hive
- PostgreSQL
Archives
- Today
- Total
달나라 노트
Python ftplib : login 본문
728x90
반응형
import ftplib
s3_host = '11.111.111.111'
s3_user_id = 'user_1'
s3_user_password = 'pw_1'
ftp = ftplib.FTP()
ftp.encoding = 'utf-8'
ftp.connect(s3_host) # connect to s3
ftp.login(s3_user_id, s3_user_password) # login to s3
ftp.quit() # quit s3
ftplib를 이용한 s3 server로의 로그인은 위처럼 가능합니다.
728x90
반응형
'Python > Python ftplib' 카테고리의 다른 글
| Python ftplib : storbinary (upload file to s3) & delete (delete file) (0) | 2021.02.02 |
|---|---|
| Python ftplib : nlst (Directory 속 file list) (0) | 2021.02.02 |
| Python ftplib : mkd (make directory) & rmd (remove directory) (0) | 2021.02.02 |
| Python ftplib : pwd (print working directory) & cwd (change working directory) (0) | 2021.02.02 |
Comments