Skip to content

Julia7676/micropython-ftplib-PicoW

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micropython-ftplib

Workaround with changes necessary to make work on Pico W

An FTP client library for MicroPython.

This is an adaption of the ftplib module from the CPython standard library to MicroPython. Apart from making it compatible with the socket module implementation of MicroPython and removing the use of the re library, some parts of the original library have been removed and the code and docstrings have been cleaned up somewhat.

The FTP_TLS class has been moved to a separate module file (ftplibtls.py) and the all_errors module global variable has been removed. The test code has been moved to a separate script and reworked too. The ftpcp function has been moved to the ftpcp.py module file.

The code has been tested only under the unix, esp8266 and esp32 ports of MicroPython and against the FTP server from the pyftpdlib package.

For the esp8266 port the code needed to be slighty altered to make it work with the ssl module there and to reduce the memory usage. This version can be found in the esp directory. See the file README.md in that directory for esp8266-specific instructions. This version also works with the esp32 port.

Notes for Pic W workaround prior to availability of universal solution

The calls to socket.bind(...) and socket.connect(...) are now in a form expected by PicoW

About

An FTP client library for MicroPython.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%