Skip to main content

A lib with basic operations of FTP

Project description

FTPX

A lib to send a file e create folder in a FTP Server.

How to install

pip install ftpx

How to Use

from ftpx.ftpx import FTPService

ftp_server = "127.0.0.1"
ftp_login = "xxxx"
ftp_password = "yyyyy"

ftp_service = FTPService(ftp_server, ftp_login, ftp_password)

ftpX.list_files()

filename = "32210406067119000753550010000124561329097173.xml"
local_filename = "/home/user/Documentos/testes/ftp/"+filename
remote_directory = "/user/2022/01/21"


ftpX.create_directory_tree(remote_directory)

ftpX.send_file(local_filename, ftp_file_path)

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

ftpx-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

ftpx-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file ftpx-0.1.0.tar.gz.

File metadata

  • Download URL: ftpx-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for ftpx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4be8e49e2a1fc9de7209ad5be21ba2a41c4c648ab8f56c57bc74bf592170a11c
MD5 ea04da54fd0608252fc857d1735fbdb5
BLAKE2b-256 6175a2614d22d1fec2327cb900519916c645dd1121833ea6468c2e91c2cf33b0

See more details on using hashes here.

File details

Details for the file ftpx-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ftpx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

File hashes

Hashes for ftpx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 800799d64d070bdc1a685ff797bdeec863648c6b23caf8406c85572a3b744d2a
MD5 c9294db77bccb342e4b6faa1a6936bc0
BLAKE2b-256 3c64a1db636e2a6467ad89d2692beba342e85b00891ffafc60fdf56627d525af

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