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
-
Navigate to
converter/modules/. -
Create a new Python file, e.g.,
my_module.py. -
Define supported formats and implement the
convertfunction:SUPPORTED_FORMATS = { "input": [".source_extension"], "output": [".target_extension"] } def convert(input_file, output_file): # Conversion logic here pass
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file convert-all-1.0.1.tar.gz.
File metadata
- Download URL: convert-all-1.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e8ad2d2f6920135d39923ecedabd4c3c346cd4a570a1575e46ad04e088d6f48
|
|
| MD5 |
8f383440a164cb9e39519e5c1eab5166
|
|
| BLAKE2b-256 |
78eda0c39dc8cdaba5b906759ac0cf43c53a5568858efae0d16c2ce6c1266822
|
File details
Details for the file convert_all-1.0.1-py3-none-any.whl.
File metadata
- Download URL: convert_all-1.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc89bf028c4488ded7a2ba96f4262ff5640f1c6fffb620a4f54d6ebe0ca4ad23
|
|
| MD5 |
1911d8194fb4a56defa0682cb2eca997
|
|
| BLAKE2b-256 |
390aa6db373eb56fb08c03c2bd7898b156e9184730006d34399ab50224760a90
|