Skip to main content

File manager

Project description

filezilla, a CLI tool to manage files

Prerequisite

  • Python>=3.7 and Linux OS.

Build from the Source Code

  • Clone the repository using :-

    $ git clone https://github.com/gaurav61/FileManager.git
    
  • Go to the root of the project

     $ cd FileManager
    
  • Install using

     $ python3 setup.py install
    

Install from PyPI

  • Install using
     $ pip install filezilla
    

Usage

Sort Files

  • Sort files in a directory based on the file extension

     $ filezilla sort <ABSOLUTE_PATH_OF_THE_DIRECTORY> ext
    
  • Sort files in a directory based on the file size

     $ filezilla sort <ABSOLUTE_PATH_OF_THE_DIRECTORY> size
    

Merge PDFs

  • Concatenate multiple PDFs into a single PDF
     $ filezilla merge_pdf <ABSOLUTE_PATH_OF_PDF_1> <ABSOLUTE_PATH_OF_PDF_2> ... <ABSOLUTE_PATH_OF_PDF_N> <ABSOLUTE_PATH_OF_OUTPUT_PDF_FILE>
    

Crop PDF

  • Extract pages from a PDF and create a new PDF of the extracted pages
     $ filezilla crop_pdf <ABSOLUTE_PATH_OF_THE_PDF> --s <STARTING_PAGE_NUMBER> --e <ENDING_PAGE_NUMBER> <ABSOLUTE_PATH_OF_OUTPUT_PDF_FILE>
    
    The above command will create a new PDF and the new PDF will contain all the pages from page number 's' to 'e' both inclusive. If you don't pass 's' in the argument then its default value will be 1 and if you don't pass 'e' in the argument then its default value will be the last page number of the input PDF

Resize Image

  • Resize height and width of the Image
     $ filezilla crop_pdf <ABSOLUTE_PATH_OF_THE_IMAGE> --h <HEIGHT> --w <WIDTH> <ABSOLUTE_PATH_OF_OUTPUT_IMAGE>
    
    The above command will create a new image and the new image will have height as 'h' and width as 'w'. If you don't pass 'h' or 'w' then it will take those values from the original image.

Compress Image

  • Compress an Input Image
     $ filezilla compress_image <ABSOLUTE_PATH_OF_THE_IMAGE> <ABSOLUTE_PATH_OF_OUTPUT_IMAGE>
    

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

filezilla-1.2.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

filezilla-1.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

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