
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Open source Python CLI toolkit for conversion, manipulation, analysis of files (All major file operations)
A python file conversion
, manipulation
, Analysis
toolkit
This is a Linux command-line interface (CLI) utility that coverts documents from one format to another, analyzes files, manipulates files. Your can also convert text file to mp3 format using google Text to speech library (gTTS).
filemac -h
Filemac -h
FILEMAC -h
using pip
pip install filemac
Install from github
pip install git+https://github.com/skye-cyber/FileMAC.git
To run the CLI app, use the following command:
FileMAC [options] stdin format
Replace [options]
with the appropriate command-line options based on the functionality you want to execute.
*
1
: --convert_doc (doc* inter-conversion + tts)2
: --convert_audio3
: --convert_video4
: --convert_image5
: --extract_audio6
: --Analyze_video8
: --OCR9
: --convert_doc2image10
: --extract_audio11
: --AudioJoin (join audio files to one master file)12
: --resize_image13
: --doc_long_image (convert pdf/doc/docx to long image)14
: --image2pdf (convert image(s) to pdf)15
: --image2word (convert image(s) to word document)16
: --image2gray (convert image(s) to grayscale)17
: --extract_pages (extract pages from pdf selectively)18
: --scanAsImg (convert pdf to images then extract text, number of images=number of pages)19
: --scanAsLong_Image (convert pdf to long image then extract text-good for continuous text extraction)20
: --pdfjoin21
: --audio_effect (manipulate audio/video voice)22
: --voicetype (voice typing) - upcomingExample command 1:
filemac --convert_doc example.docx -t pdf
Supported formats For document conversion
1
. PDF to (word, txt, audio[tts])
2
. PDF to TXT
3
. PDF to Audio(ogg,mp3,wav..*)
4
. DOCX to (PDF, pptx/ppt, txt, audio,
5
. TXT to (PDF, word, audio)
6
. PPTX to DOCX
7
. XLSX to (Sql, CSV, TXT, word)
This promt parses convert_doc signifying that the inteded operation id document conversion then parses example.docx
as the input file(file path can also be provided) to be converted to format pdf
.
the output file assumes the base name of the input file but the extension conforms to the parsed formatpdf
converting text mp3 to wav
filemac --convert_audio example.mp3 -t wav
Supported formats For audio conversion
wav, mp3, ogg, flv, ogv, avi, mkv, mov, webm
)Extract text from images
filemac --OCR image.jpg
converting videos
filemac --convert_video example.mp4 -t wav
Supported formats For video conversion
(mp4, avi, ogv, webm, mov, mkv, flv, wmv
)
converting images
filemac --convert_image example.png -t jpg
`1`.JPEG: `.jpg`
`2`.PNG": `.png`
`3`.GIF": `.gif`
`4`.BM": `.bmp`
`5`.TIFF: `.tiff`
`6`.EXR `.exr`
`7`.PDF: `.pdf`
`8`.WebP: `.webp`
`9`.ICNS: `.icns`
`10`.PSD: `.psd`
`11`.SVG: `.svg`
`12`.EPS: `.eps`
filemac --audio_effect 'demo.mp3' --effect high
Original
Listen to Original Audio
Result
Listen to Modified Audio
filemac --audio_effect 'demo.mp4' --effect high
Original
Listen to Original Video
Result
Listen to Modified Video
in any case you can pass the string help to an option to see its supported operations or inputs nd output formats.
filemac --convert_doc help
The above command displays the surported input and output formats for document conversion.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Feel free to modify and customize this template according to your specific project requirements and add any additional sections or information that you think would be helpful for users.
FAQs
Open source Python CLI toolkit for conversion, manipulation, analysis of files (All major file operations)
We found that filemac demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.