Skip to main content

filemac

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).

Name variations

   filemac -h
   Filemac -h
   FILEMAC -h

Installation

  1. using pip

     pip install filemac
    
  2. Install from github

    pip install git+https://github.com/skye-cyber/FileMAC.git
    

Usage

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.

Available Options


  • 1: --convert_doc | (doc* inter-conversion + tts)
  • 2: --convert_audio
  • 3: --convert_video
  • 4: --convert_image
  • 5: --extract_audio
  • 6: --Analyze_video
  • 8: --OCR
  • 9: --convert_doc2image
  • 10: --extract_audio
  • 11: --AudioJoin (join audio files to one master file)
  • 12: --resize_image
  • 13: --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: --pdfjoin
  • 21: --audio_effect (manipulate audio/video voice)
  • 22: --voicetype (voice typing) - upcoming

Examples

  1. Example 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

  2. 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)
  3. Extract text from images

    filemac --OCR image.jpg
    
  4. converting videos

    filemac --convert_video example.mp4 -t wav
    

    Supported formats For video conversion (mp4, avi, ogv, webm, mov, mkv, flv, wmv)

  5. converting images

    filemac --convert_image example.png -t jpg
    

Supported formats For audio conversion

   `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`

Manipulate audio


Audio

filemac --audio_effect 'demo.mp3' --effect high

Original
Listen to Original Audio

Result
Listen to Modified Audio


Video

filemac --audio_effect 'demo.mp4' --effect high

Original
Listen to Original Video

Result
Listen to Modified Video


Help

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.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

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.

Metadata

Release files for filemac 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filemac 2.0.1
File Size Uploaded
filemac-2.0.1.tar.gz 98.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for filemac 2.0.1
File Interpreter ABI Platform
filemac-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 210.4 kB

Release files / filemac-2.0.1.tar.gz

Download URL filemac-2.0.1.tar.gz
Size 98.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c2cf6382d08a103293538c9ac3a367073af04e80d504f97fb23bf3d5cb3bb0dc
BLAKE2b-256 checksum
How to use checksums
d06482150534afb4305fd83fc0c50cbb28deec3019b4c622701790ee566e33f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / filemac-2.0.1-py3-none-any.whl

Download URL filemac-2.0.1-py3-none-any.whl
Size 112.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b53b1ba51def233973f6f57d9937769f355ca5428f13590ca83dc43e28f39681
BLAKE2b-256 checksum
How to use checksums
f157235b3bc44ca962cc8026145ee4497dda9b7fc5e380923b69a3d92d0a4019
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

1.1.9

2 release files

1.1.7

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page