https://github.com/nanato12/ftpcli
FTP Client with Python
https://github.com/nanato12/ftpcli
ftp-client python python-library python3
Last synced: 8 months ago
JSON representation
FTP Client with Python
- Host: GitHub
- URL: https://github.com/nanato12/ftpcli
- Owner: nanato12
- License: mit
- Created: 2019-09-19T07:26:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T07:39:27.000Z (over 6 years ago)
- Last Synced: 2025-07-07T03:10:28.064Z (11 months ago)
- Topics: ftp-client, python, python-library, python3
- Language: Python
- Homepage: https://pypi.org/project/ftpcli/
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ftpcli
[](https://pypi.org/project/ftpcli)
[](https://www.python.org/downloads/)
[](https://img.shields.io/github/license/nanato12/ftpcli)
[](https://paypal.me/bluesquarejb/100)
FTP Client with Python
You can operate FTP like a shell.
## install
```shell
pip install ftpcli
```
## use
```python
from ftpcli import FTP
ftp = FTP(server, account, password)
ftp.pwd()
# /
ftp.ls()
# ['index.html', 'css', '.htaccess', 'test']
ftp.cd('css')
ftp.ls()
# ['style.css', 'reset.css', 'main.css']
ftp.pwd()
# /css/
ftp.mkdir('aaaa')
ftp.ls()
# ['style.css', 'reset.css', 'main.css', 'aaaa']
ftp.rm('aaaa')
ftp.ls()
# ['style.css', 'reset.css', 'main.css']
ftp.cd('../')
ftp.download('css')
# download: [Success] /css/style.css
# download: [Success] /css/reset.css
# download: [Success] /css/main.css
```