FtpDownloader | Simple recursive async ftp downloader based on aioftp | FTP library

 by   bigpe Python Version: pypi-0.3 License: MIT

kandi X-RAY | FtpDownloader Summary

kandi X-RAY | FtpDownloader Summary

FtpDownloader is a Python library typically used in Networking, FTP applications. FtpDownloader has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install FtpDownloader' or download it from GitHub, PyPI.

Simple recursive async ftp downloader based on aioftp. Download only modified files.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              FtpDownloader has a low active ecosystem.
              It has 6 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              FtpDownloader has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of FtpDownloader is pypi-0.3

            kandi-Quality Quality

              FtpDownloader has no bugs reported.

            kandi-Security Security

              FtpDownloader has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              FtpDownloader is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              FtpDownloader releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of FtpDownloader
            Get all kandi verified functions for this library.

            FtpDownloader Key Features

            No Key Features are available at this moment for FtpDownloader.

            FtpDownloader Examples and Code Snippets

            FTP DOWNLOADER,Usage:
            Pythondot img1Lines of Code : 5dot img1License : Permissive (MIT)
            copy iconCopy
            $ pip3 install ftp_downloader
            
            from ftp_downloader import FTPDownloader
            
            ftp_client=FTPDownloader(FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD)
            
            ftp_client.download_dir(download_from_dir='directory')
              
            FTP DOWNLOADER,Использование:
            Pythondot img2Lines of Code : 5dot img2License : Permissive (MIT)
            copy iconCopy
            $ pip3 install ftp_downloader
            
            from ftp_downloader import FTPDownloader
            
            ftp_client=FTPDownloader(FTP_HOST, FTP_PORT, FTP_USER, FTP_PASSWORD)
            
            ftp_client.download_dir(download_from_dir='directory')
              
            Python patching FTP import
            Pythondot img3Lines of Code : 9dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            class TestMyAwesomeTest:
            
                @patch.object(sys.modules[__name__], 'FTP', autospec=True)
                def test_get_listing(self, mocked_ftp):
                    mocked_ftp.return_value.nlst.return_value = ['abc.csv']
                    ftp_downloader = FTPDownloader()
             

            Community Discussions

            QUESTION

            Python patching FTP import
            Asked 2020-Sep-03 at 13:50

            I'm trying to write a unit test for my ftp downloader. For some reason my import isn't patched. I can see while debugging the ftp object is a real FTP object instead of a mocked one. I'm using Python 3.5 with pytest.

            here is my code:

            ...

            ANSWER

            Answered 2020-Sep-03 at 13:50

            The problem is here that you are patching a class in the same file. The default approach as mentioned in where to patch works for source files separate from the test files (the usual case). If you have the source in the same file as the test, you can use patch.object with the current module instead:

            Source https://stackoverflow.com/questions/63722821

            QUESTION

            Login success on FTP over explicit SSL/TLS but unable to browse the files
            Asked 2018-May-20 at 16:15

            I have been asked to make the secure FTP Server connection. FTP over explicit TLS/SSL. In order to achieve this, I have added a below line in the existing implementation. This is my FTPClient lib - it.sauronsoftware.ftp4j - version 1.6.1

            ftpClient.setSecurity(FTPClient.SECURITY_FTPES);

            // Existing code

            ftpClient.setConnector(new HTTPTunnelConnector(proxyHost, proxyPort)); ftpClient.connect(getFtpHost(), getFtpPort()); ftpClient.login(getUsername(), getPassword()); ftpClient.setAutoNoopTimeout(30000);

            When I deployed the code on JBOSS 5.1, I am getting successful connection, but I am unable to list the files in the root directory. we only have permission to access the root directory.

            On the other hand, I have written a standalone client (java main program) - through which I can print the files present at FTP location, by this way I have ensured the secure connection and the files availability at FTP location. Here, I have used the

            My problem is, when I make a secure connection through the deployed application I am getting the unable to locate any files at remote location. ie: FTPFiles.length is 0

            Any help would be much appreciated, thank you!

            Adding few more logs and info, Normal Flow without FTPES security parameter added (current Implementation)

            printing ftpClient.serverStatus()

            msg: Status of 'FTP Service' msg: Connected from ec2-xyz msg: Logged in as msg: TYPE: BINARY, STRUcture: File, Mode: Stream msg: Total bytes transferred for session: 10511 msg: No data connection msg: End of status

            printing ftpClient.serverStatus() With FTPES added

            msg: Status of 'FTP Service' msg: Connected from ec2-xyz msg: Logged in as msg: TYPE: ASCII, STRUcture: File, Mode: Stream msg: No data connection msg: End of status

            Few questions which I need to know answers (may be that give a lead to fix):

            1. Here, TYPE: BINARY is changed to ASCII and can someone tell how to modify back to BINARY? Note tehre is no explicit setting made, got changed post FTPES set
            2. Is this issue related to proxy / port. if so - I wont be able to provide those information.
            3. As of now, I am testing with same proxy used which is used in the application.
            4. Is there any certificates to be imported to get files viewed / downloaded.
            5. Found this on net which is exactly same as my issue, http://www.proftpd.org/docs/howto/TLS.html ( search for -"I can login using FTPS, but I cannot see any directories. Why not?") but I need to explain my third party to make the required change... what should I tell?

            stand alone client code

            ...

            ANSWER

            Answered 2018-May-20 at 16:15

            Finally, I am able to make the secure connection and able to download the latest files from FTP server using FTPES (FTP over explicit TLS/SSL). I have made only 2 line code changes (below), in the actual implementation. earlier it was having the list() method to get the files from FTP server, and its return type is FTPFile[]

            This is the code changes which I made, and other line of codes are modified / removed.

            Source https://stackoverflow.com/questions/50340857

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install FtpDownloader

            You can install using 'pip install FtpDownloader' or download it from GitHub, PyPI.
            You can use FtpDownloader like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular FTP Libraries

            curl

            by curl

            git-ftp

            by git-ftp

            sftpgo

            by drakkan

            FluentFTP

            by robinrodricks

            pyftpdlib

            by giampaolo

            Try Top Libraries by bigpe

            Ecole42_SnowCrash

            by bigpePython

            TestProject-MGU-

            by bigpeJavaScript

            bigpe.github.io

            by bigpeJavaScript

            Ecole42_HyperTube

            by bigpeJavaScript