An open API service indexing awesome lists of open source software.

https://github.com/pyohei/python-ftp-sender

๐Ÿ’ปSend files to FTP server ๐Ÿ“
https://github.com/pyohei/python-ftp-sender

ftp ftp-client python2

Last synced: 4 months ago
JSON representation

๐Ÿ’ปSend files to FTP server ๐Ÿ“

Awesome Lists containing this project

README

          

# Send files to FTP server

Send files into FTP server with Python.
This script for myself, and there are some bugs in this code.

## Eevironment

Python2.7

## Usage

### Install

`git clone https://github.com/pyohei/python-ftp-sender.git`

### Set up

Install dependent libraries(recommend virtualenv).

```sh
cd python-ftp-sender
pip install -r requirements.txt
```

### Create configuration

You need to edit `config.ini`.

### Excecute

You can run with two type of sync.

1. Sync directory

If you want to sync directory, you must set variables of `syncdir` and `header_path` in `config.ini`.
After setting, you can run script the below command.

```sh
python main.py -a True
```

2. Sync specific file

If you want to sync specific file, you must set `header_path` in `config.ini`.
After setting, you can run script the below command.
You can change the argument of `walker.py` to your target file name.

```sh
python main.py -f walker.py
```

## Testing

You can run test ftp server with next command.

```sh
cd testserver
python ftpserver.py
```

There are connection information in `testserver/ftpserver.py`

## Licence

MIT