Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyftpclient

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyftpclient

ftp client wrapper to simplify working with paramiko or ftplib

  • 0.1.15
  • PyPI
  • Socket score

Maintainers
1

FTP client wrapper

pyftpclient is a library that is made to make work with FTP/SFTP simple. it has the common functions that you would use when working with a regular file system, like open a file listdir, and glob, delete file or directory. It also has funcitons to simple download/upload of the files and directories from/to remote drive. The library takes care about opening and closing the sessions, so you don't have to worry about it

SFTPClient example

from pyftpclient.sftp_client import SFTPClient

connection_config = {
    'hostname': '127.0.0.1',
    'username': 'viewonly',
    'password': 'viewonly'
}


with SFTPClient(**connection_config) as sftp:
    print(sftp.listdir('/')
    sftp.download_file('/home/src_file'), '~/dst_file')
    sftp.download_tree(src_dir, dst_dir)

FTPClient example

from pyftpclient.ftp_client import FTPClient

connection_config = {
    'hostname': '127.0.0.1',
    'username': 'viewonly',
    'password': 'viewonly'
    'port': 21
}


with FTPClient(**connection_config) as ftp:
    print(ftp.listdir('/')
    ftp.download_file('/home/src_file'), '~/dst_file')
    ftp.download_tree(src_dir, dst_dir)

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc