Skip to main content

A CLI tool to convert files between formats

Project description

Convert Anything

Convert Anything is a command-line tool designed to convert files between various formats effortlessly. It's modular and allows developers to extend its functionality by adding new conversion modules.

Features

  • Convert audio files (e.g., MP3 to WAV).
  • Convert image files (e.g., PNG to JPG).
  • Convert video files (e.g., MP4 to AVI).
  • Modular design for adding custom conversion formats.

Installation

1. Clone the Repository

git clone https://github.com/yourusername/convert-anything.git
cd convert-anything

2. Set Up the Environment

Create a virtual environment and install dependencies:

python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt

Usage

Run the tool with:

python -m converter.core <input_file> <output_file>

Example:

python -m converter.core input.mp3 output.wav

How to Contribute

We welcome contributions to improve the project! Here’s how you can contribute:

1. Fork the Repository

Click on the Fork button on the top-right corner of the repository page.

2. Clone Your Fork

git clone https://github.com/PavlikPolivkagit branch -M main/convert-anything.git
cd convert-anything

3. Set Up the Environment

Follow the Installation instructions to set up your development environment.

4. Add a New Module

  1. Navigate to converter/modules/.

  2. Create a new Python file, e.g., my_module.py.

  3. Define supported formats and implement the convert function:

    SUPPORTED_FORMATS = {
        "input": [".source_extension"],
        "output": [".target_extension"]
    }
    
    def convert(input_file, output_file):
        # Conversion logic here
        pass
    
  4. Add your module to the repository.

5. Test Your Module

Run unit tests:

pytest

6. Submit a Pull Request

Push your changes and open a pull request on the main repository.


License

This project is licensed under the MIT License. See the LICENSE file for details.


Happy converting!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

convert_all-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file convert_all-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: convert_all-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for convert_all-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 269d301e9f6195483731574a467d0db8868618d45fad0cef10d047fc4c2341ec
MD5 d50b0f526f63482e4e37e73d7fc6b7c5
BLAKE2b-256 e5a74994c94dc8b25283bcbcbbace01f701bda9a40ace839a5fb38f81b916d34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page