In this video, I'll show you how to set up a simple FTP server locally using pyftplib library. It allows you to run a simple FTP server on command line as well provides necessary python library capabilities to customize it as needed by your application as well.
This is demonstrated on a MAC. However, it should work on Linux/Unix based systems as well.