Skip to main content

#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.

Metadata

Release files for ftpsocket 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ftpsocket 0.0.1
File Size Uploaded Provenance Actions
ftpsocket-0.0.1.tar.gz 4.0 kB Without provenance Details for ftpsocket-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ftpsocket 0.0.1
File Interpreter ABI Platform Actions
ftpsocket-0.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for ftpsocket-0.0.1-py2.py3-none-any.whl

Total release size: 9.9 kB

Release files / ftpsocket-0.0.1.tar.gz

Download URL ftpsocket-0.0.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1e860cac4815c827c29394962fc30b51271c507e2111069d259c65afd9fadd6e
BLAKE2b-256 checksum
How to use checksums
aefae9323de77f50d2729378518b250bcdc8e68101045b10ec41a7055111ab61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Release files / ftpsocket-0.0.1-py2.py3-none-any.whl

Download URL ftpsocket-0.0.1-py2.py3-none-any.whl
Size 5.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b358e309b1bb921463caf90204e6b1a352a15e0f141d540ce26b476ddd827e0f
BLAKE2b-256 checksum
How to use checksums
26ae1085c1df6fe3a4b2395df064f275a97bf686d10ad23b2b3bbdc1e9e2c38a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.3

Security for ftpsocket 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page