No project description provided
Project description
Converters UniConvert Library
Welcome to the UniConvert Library documentation! The UniConvert Library is a Python tool designed for file conversion. It provides support for converting images to PNG format and videos to MP4 format. With this library, you can easily integrate file conversion capabilities into your projects.
Main Features
- Image Conversion: Convert images to the PNG format effortlessly.
- Video Conversion: Convert videos to the MP4 format with ease.
How to Use
- Install the library:
pip install uniconvert
- Import the relevant converters in your Python script.
- Create instances of the converters and use their convert methods to perform conversions.
A seguir, apresentamos exemplos básicos de uso:
Conversion of Images to PNG
from uniconvert.converter import PNGConverter
img_converter = PNGConverter()
img_path = "path/to/image.jpg"
converted_img_path = img_converter.convert(img_path)
print(f"Imagem convertida: {img_path} -> {converted_img_path}")
If you want that converted file replace the original then you can use replace=True
in convert method.
Converting Videos to MP4
from uniconvert.converters import MP4Converter
# Cria uma instância do conversor
video_converter = MP4Converter()
# Converte um vídeo para MP4
video_path = "caminho/do/video.avi"
converted_video_path = video_converter.convert(video_path, replace=True)
print(f"Vídeo convertido: {video_path} -> {converted_video_path}")
All the other conversion classes follow the same pattern as MP4Converter()
. You just need to specify the extension name, for example, AVIConverter()
, GPP3Converter()
, and so on.
The supported extensions for conversion include:
- AVI
- MOV
- 3GPP
- FLV
- WMV
- MPG
- WEBM
- MKV
Roadmap
We are committed to expanding the functionalities of this library. Planned future enhancements include:
- Support for audio file conversion.
- Creation of specific classes for each file type.
Contact
Email: dudulj@live.com
GitHub: edududs
License
MIT License
Copyright (c) 2023 Eduardo Lima de Jesus
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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
Hashes for UniConvert-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64669e95c9c7311c20687e9715f2b7e2dda969c91bdecfdd9f7a1011b5470de1 |
|
MD5 | 6d91696c0e70a76e6428555465d0738a |
|
BLAKE2b-256 | caba1950d29ffbbfa5df08128ad20ff125e33df394e7d15936ce11310a3a596d |