Skip to main content

Easy usage of FTP operation

Project description

NOTE: THIS PACKAGE IS IN TEST VERSION YET.

EasyFTP

EasyFTP is a Python library that simplifies the process of interacting with FTP (File Transfer Protocol) servers. With EasyFTP, you can easily upload, download, delete, and list files and directories on remote FTP servers using a simple and intuitive interface.

Features

  • Connect to FTP servers with ease.
  • Upload files and directories to remote servers.
  • Download files and directories from remote servers.
  • Delete files and directories on remote servers.
  • List files and directories on remote servers.
  • (not implemented) Support for both FTP and secure FTP (FTPS).

Installation

You can install EasyFTP via pip:

pip install easyftp

Usage

  • Establishing connection
from EasyFTP import EasyFTP as easyftp

with easyftp.EasyFTP() as session:
	session.connect("192.168.1.1", 21, "admin", "12345678", timeout = 30)
	# Change it to your option, and timeout is not necessary.
  • Listing files on remote directory
from EasyFTP import EasyFTP as easyftp

with easyftp.EasyFTP() as session:
	session.connect("192.168.1.1", 21, "admin", "12345678", timeout = 30)
	# Change it to your option, and timeout is not necessary.
	l = session.ls("/examples")
	# Directory argument is not necessary;
	# It will print structure of current directory when there is no argument.
	print(l)

It will print, for example: ["dir1", "dir2", "dir3", "example.py", "example.py2"]

  • Changing directory in remote (and printing current working directory)
from EasyFTP import EasyFTP as easyftp

with easyftp.EasyFTP() as session:
	session.connect("192.168.1.1", 21, "admin", "12345678", timeout = 30)
	# Change it to your option, and timeout is not necessary.
	
	session.cd("/examples")
	# This will change your directory to /examples.
	# NOTE: Relative path is not tested yet.

	print(session.cd())
	# This will print "/examples", which is your current working directory.
	# It does this when there is no argument passed to it.

	print(session.pwd())
	# It works life session.cd() when there is no argument passed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EasyFTP-0.0.3b0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

EasyFTP-0.0.3b0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file EasyFTP-0.0.3b0.tar.gz.

File metadata

  • Download URL: EasyFTP-0.0.3b0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for EasyFTP-0.0.3b0.tar.gz
Algorithm Hash digest
SHA256 569f2f939a96416c4a361fd5fc8981f9e8da4f8c9d546346bbdf64bc9b8b3e32
MD5 9093acbc9b49fe059852b7bc38926cd5
BLAKE2b-256 f71e7b4b79780078015f3b35cdd6a933732b7739671e88f05239c39300250990

See more details on using hashes here.

File details

Details for the file EasyFTP-0.0.3b0-py3-none-any.whl.

File metadata

  • Download URL: EasyFTP-0.0.3b0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for EasyFTP-0.0.3b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2f7b094b3418e6cff0734a5305e80b57d27c656372b8d50f427d4049b5d4b88
MD5 dd2e720dbb3a33ea9fc0d211400eec79
BLAKE2b-256 c017b696a1cf985fe015c43dfde1577b5c6d7c903bed48dd86c619492cb89e84

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page