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.4b0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: EasyFTP-0.0.4b0.tar.gz
  • Upload date:
  • Size: 3.9 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.4b0.tar.gz
Algorithm Hash digest
SHA256 daf66637f3aa212b2ed7feece5d68903911561f253889888c9fa38be1d41c979
MD5 943f8b7ba832367be59d23b3da4660e4
BLAKE2b-256 f90a1509eede3b7dc745357793aab3d0cff314ddd123971b961095b32a2dd739

See more details on using hashes here.

File details

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

File metadata

  • Download URL: EasyFTP-0.0.4b0-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.4b0-py3-none-any.whl
Algorithm Hash digest
SHA256 731dc9e977bf91ba9d6d5c2537bb2a4953a6e7f3bb535c3d123ea3fac9e09d73
MD5 76a78e4acf88f195e7aab34fe1c8c238
BLAKE2b-256 843bf876d2a86feb0c622fc1463fafab7f8f9c86619155b7c1df8cd253a21007

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