Skip to main content

This is a file processing library in python.

Project description

Aritrends

Open source python lib from file processing work. Instead of writing old multiline codes, just write one line code and complete your work quickly and efficently.

Installation

  • Install git command and python3.10 in your system.

  • Enter the following code in your terminal.


pip install aritrends

Command execution guide

Convert Word file into pdf

This code will convert word file into pdf file


from aritrends import aritrends as w

w.convert("/path/to/folder/filename.docx")

Convert multiple images to pdf

This code will convert multiple image file (*.png) to pdf


from aritrends import aritrends as w

list = ["/path/to/folder/image1.png","/path/to/folder/image2.png","/path/to/folder/image3.png"]

w.image2pdf(list)

Generate qrcode

This will generate qrcode of input text.


from aritrends import aritrends as w

w.qrcode("Hello world !")

Convert multiple files into zip

This code will compress all files into zip


from aritrends import aritrends as w

list = ["/path/to/folder/filename.exe","/path/to/folder/filename2.png","/path/to/folder/filename3.dart"]

w.zip(list)

Write text on image file (*.png)

This code will save text on image.


from aritrends import aritrends as w

w.write_text_on_image("Hello World","/path/to/folder/filename.png",["Arial",35])

Compress files to rar

This code will compress multiple files to *.rar


from aritrends import aritrends as w

list = ["/path/to/folder/filename.exe","/path/to/folder/filename2.png","/path/to/folder/filename3.dart"]

w.compress_to_rar(list, filename.rar)

Compress files to 7z

This code will compress multiple files to *.7z


from aritrends import aritrends as w

list = ["/path/to/folder/filename.exe","/path/to/folder/filename2.png","/path/to/folder/filename3.dart"]

w.compress_to_7z(list, filename.7z)

Merge 2 or more pdf(s) together


import aritrends

aritrends.merge_pdfs(['file1.pdf', 'file2.pdf', 'file3.pdf'], 'merged.pdf')

Programming language used

Python

Developer

@abhineetraj1

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

aritrends-0.0.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

aritrends-0.0.3-py3-none-any.whl (2.9 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