Internal packages included, don't change any string at here
Project description
#ftpsocket: FTP using socket.
#ftpsocket: SOCKET-FTP
#ftpsocket: is a Python library designed to implement FTP server and client functionality using sockets for transferring files over the network. It allows you to send and receive files securely between devices connected to the same network.
##Installation: To install the ftpsocket library:
pip install ftpsocket
Usage Examples
#1. Starting the FTP Server:
In this example, we'll create and run an FTP server.
from ftpsocket.server import FTPServer
Create and start the FTP server on the desired address and port
ftp_server = FTPServer(host='0.0.0.0', port=21)
ftp_server.start()
#2. FTP Client Example:
The client connects to the server and sends a file.
from ftpsocket.client import FTPClient
Connect to an FTP server on a specific address and port
ftp_client = FTPClient(host='127.0.0.1', port=21)# the local hosted.
ftp_client.connect()
Send a file to the server
ftp_client.send_file('example.txt')
Close the connection after the file is sent
ftp_client.close()
##Explanation:
FTPServer: This class allows you to start an FTP server that listens for incoming client connections, handling file uploads and downloads, at the local network. FTPClient: The client connects to the server, sends files, and manages the connection.
##Features:
FTP-like server-client file transfer over the network. ##Note:To secure connection using Python sockets, use ftpsocket.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ftpsocket-0.0.1.tar.gz.
File metadata
- Download URL: ftpsocket-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e860cac4815c827c29394962fc30b51271c507e2111069d259c65afd9fadd6e
|
|
| MD5 |
b8861b0ee9fd4407bb4515d51110a9b0
|
|
| BLAKE2b-256 |
aefae9323de77f50d2729378518b250bcdc8e68101045b10ec41a7055111ab61
|
File details
Details for the file ftpsocket-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: ftpsocket-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b358e309b1bb921463caf90204e6b1a352a15e0f141d540ce26b476ddd827e0f
|
|
| MD5 |
46e8b60dffd87327033663b261402c66
|
|
| BLAKE2b-256 |
26ae1085c1df6fe3a4b2395df064f275a97bf686d10ad23b2b3bbdc1e9e2c38a
|