## Tools.ftp.BaseFTPClient


Provide shared connection management for FTP clients.


Usage

``` python
Tools.ftp.BaseFTPClient(
    ftpsite, user, password, keepalive=False, debug_lvl=0, timeout=600.0
)
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Connect to an FTP server with the supplied credentials. |
| [close_connection()](#close_connection) | Stop keepalive workers and close the FTP connection. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Connect to an FTP server with the supplied credentials.


Usage

``` python
__init__(ftpsite, user, password, keepalive=False, debug_lvl=0, timeout=600.0)
```


##### Parameters


`ftpsite: str`  
Host name of the FTP server.

`user: str`  
User name used to log in.

`password: str`  
Password used to log in.

`keepalive: bool = ``False`  
Whether to periodically keep the connection active.

`debug_lvl: int = ``0`  
Verbosity level for the FTP connection.

`timeout: float = ``600.0`  
Socket timeout in seconds.


------------------------------------------------------------------------


#### close_connection()


Stop keepalive workers and close the FTP connection.


Usage

``` python
close_connection()
```
