openconvert 0.1.0__py3-none-any.whl → 1.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openconvert/__init__.py +96 -3
- openconvert/__main__.py +13 -0
- openconvert/client.py +392 -0
- openconvert/openconvert_cli.py +540 -0
- openconvert-1.1.0.dist-info/METADATA +504 -0
- openconvert-1.1.0.dist-info/RECORD +10 -0
- openconvert-1.1.0.dist-info/entry_points.txt +2 -0
- openconvert-1.1.0.dist-info/licenses/LICENSE +21 -0
- openconvert/cli.py +0 -145
- openconvert/converter.py +0 -152
- openconvert/converters/__init__.py +0 -3
- openconvert/converters/archive_converter.py +0 -277
- openconvert/converters/audio_converter.py +0 -223
- openconvert/converters/code_converter.py +0 -412
- openconvert/converters/document_converter.py +0 -596
- openconvert/converters/image_converter.py +0 -214
- openconvert/converters/model_converter.py +0 -208
- openconvert/converters/video_converter.py +0 -259
- openconvert/launcher.py +0 -0
- openconvert-0.1.0.dist-info/METADATA +0 -232
- openconvert-0.1.0.dist-info/RECORD +0 -17
- openconvert-0.1.0.dist-info/entry_points.txt +0 -2
- {openconvert-0.1.0.dist-info → openconvert-1.1.0.dist-info}/WHEEL +0 -0
- {openconvert-0.1.0.dist-info → openconvert-1.1.0.dist-info}/top_level.txt +0 -0
@@ -1,232 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: openconvert
|
3
|
-
Version: 0.1.0
|
4
|
-
Summary: A versatile file and data conversion library
|
5
|
-
Home-page: https://github.com/openconvert/openconvert
|
6
|
-
Author: OpenConvert Team
|
7
|
-
Author-email: info@openconvert.org
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
10
|
-
Classifier: Operating System :: OS Independent
|
11
|
-
Requires-Python: >=3.7
|
12
|
-
Description-Content-Type: text/markdown
|
13
|
-
Requires-Dist: pillow
|
14
|
-
Requires-Dist: reportlab
|
15
|
-
Requires-Dist: python-docx
|
16
|
-
Requires-Dist: PyPDF2
|
17
|
-
Requires-Dist: pandas
|
18
|
-
Requires-Dist: pyyaml
|
19
|
-
Requires-Dist: dicttoxml
|
20
|
-
Requires-Dist: xmltodict
|
21
|
-
Requires-Dist: markdown
|
22
|
-
Requires-Dist: beautifulsoup4
|
23
|
-
Requires-Dist: html2text
|
24
|
-
Provides-Extra: image
|
25
|
-
Requires-Dist: cairosvg; extra == "image"
|
26
|
-
Provides-Extra: audio
|
27
|
-
Requires-Dist: pydub; extra == "audio"
|
28
|
-
Requires-Dist: SpeechRecognition; extra == "audio"
|
29
|
-
Provides-Extra: video
|
30
|
-
Requires-Dist: moviepy; extra == "video"
|
31
|
-
Provides-Extra: document
|
32
|
-
Requires-Dist: pdf2image; extra == "document"
|
33
|
-
Provides-Extra: archive
|
34
|
-
Requires-Dist: py7zr; extra == "archive"
|
35
|
-
Requires-Dist: rarfile; extra == "archive"
|
36
|
-
Provides-Extra: model
|
37
|
-
Requires-Dist: trimesh; extra == "model"
|
38
|
-
Requires-Dist: numpy; extra == "model"
|
39
|
-
Requires-Dist: scipy; extra == "model"
|
40
|
-
Provides-Extra: all
|
41
|
-
Requires-Dist: cairosvg; extra == "all"
|
42
|
-
Requires-Dist: pydub; extra == "all"
|
43
|
-
Requires-Dist: SpeechRecognition; extra == "all"
|
44
|
-
Requires-Dist: moviepy; extra == "all"
|
45
|
-
Requires-Dist: pdf2image; extra == "all"
|
46
|
-
Requires-Dist: py7zr; extra == "all"
|
47
|
-
Requires-Dist: rarfile; extra == "all"
|
48
|
-
Requires-Dist: trimesh; extra == "all"
|
49
|
-
Requires-Dist: numpy; extra == "all"
|
50
|
-
Requires-Dist: scipy; extra == "all"
|
51
|
-
Dynamic: author
|
52
|
-
Dynamic: author-email
|
53
|
-
Dynamic: classifier
|
54
|
-
Dynamic: description
|
55
|
-
Dynamic: description-content-type
|
56
|
-
Dynamic: home-page
|
57
|
-
Dynamic: provides-extra
|
58
|
-
Dynamic: requires-dist
|
59
|
-
Dynamic: requires-python
|
60
|
-
Dynamic: summary
|
61
|
-
|
62
|
-
# AGConvert
|
63
|
-
|
64
|
-
AGConvert is a versatile file conversion library that supports a wide range of file formats across different categories including images, documents, audio, video, 3D models, code, and archives.
|
65
|
-
|
66
|
-
## Features
|
67
|
-
|
68
|
-
- **Image Conversion**: Convert between PNG, JPG, BMP, GIF, TIFF, WebP, SVG, and PDF
|
69
|
-
- **Document Conversion**: Convert between TXT, PDF, DOCX, HTML, MD, RTF, CSV, XLSX, JSON, XML, and YAML
|
70
|
-
- **Audio Conversion**: Convert between MP3, WAV, OGG, FLAC, AAC, and M4A
|
71
|
-
- **Video Conversion**: Convert between MP4, AVI, MKV, MOV, WMV, and WebM
|
72
|
-
- **3D Model Conversion**: Convert between OBJ, STL, PLY, and GLTF
|
73
|
-
- **Code Conversion**: Convert between JSON, XML, YAML, and CSV
|
74
|
-
- **Archive Conversion**: Convert between ZIP, TAR, GZ, BZ2, and 7Z
|
75
|
-
|
76
|
-
## Installation
|
77
|
-
|
78
|
-
### Quick Installation
|
79
|
-
|
80
|
-
To install all dependencies:
|
81
|
-
|
82
|
-
```bash
|
83
|
-
./scripts/install.sh
|
84
|
-
```
|
85
|
-
|
86
|
-
### Specific Installation
|
87
|
-
|
88
|
-
To install dependencies for specific conversion types:
|
89
|
-
|
90
|
-
```bash
|
91
|
-
./scripts/install_specific.sh --image --document
|
92
|
-
```
|
93
|
-
|
94
|
-
Available options:
|
95
|
-
- `--all`: Install all dependencies
|
96
|
-
- `--core`: Install core dependencies
|
97
|
-
- `--image`: Install image conversion dependencies
|
98
|
-
- `--document`: Install document conversion dependencies
|
99
|
-
- `--audio`: Install audio conversion dependencies
|
100
|
-
- `--video`: Install video conversion dependencies
|
101
|
-
- `--model`: Install 3D model conversion dependencies
|
102
|
-
- `--archive`: Install archive conversion dependencies
|
103
|
-
|
104
|
-
## Usage
|
105
|
-
|
106
|
-
### Python API
|
107
|
-
|
108
|
-
```python
|
109
|
-
from agconvert import open_convert
|
110
|
-
|
111
|
-
# Basic conversion
|
112
|
-
open_convert('input.png', 'output.jpg')
|
113
|
-
|
114
|
-
# Conversion with options
|
115
|
-
open_convert('input.png', 'output.jpg', quality=85, resize=(800, 600))
|
116
|
-
```
|
117
|
-
|
118
|
-
### Command Line Interface
|
119
|
-
|
120
|
-
```bash
|
121
|
-
# Basic conversion
|
122
|
-
agconvert input.png output.jpg
|
123
|
-
|
124
|
-
# Conversion with options
|
125
|
-
agconvert input.png output.jpg --quality 85 --resize 800x600
|
126
|
-
```
|
127
|
-
|
128
|
-
## Supported Conversion Options
|
129
|
-
|
130
|
-
### Image Options
|
131
|
-
- `quality`: Set the quality for lossy formats (1-100)
|
132
|
-
- `resize`: Resize the image (width, height)
|
133
|
-
- `grayscale`: Convert to grayscale
|
134
|
-
- `rotate`: Rotate the image by degrees
|
135
|
-
|
136
|
-
### Document Options
|
137
|
-
- `template`: Specify a template for document conversion
|
138
|
-
- `metadata`: Add metadata to the document
|
139
|
-
- `toc`: Include table of contents
|
140
|
-
|
141
|
-
### Audio Options
|
142
|
-
- `bitrate`: Set the bitrate for audio conversion
|
143
|
-
- `sample_rate`: Set the sample rate
|
144
|
-
- `channels`: Set the number of channels
|
145
|
-
|
146
|
-
### Video Options
|
147
|
-
- `resolution`: Set the video resolution
|
148
|
-
- `fps`: Set the frames per second
|
149
|
-
- `codec`: Specify the codec to use
|
150
|
-
|
151
|
-
## Examples
|
152
|
-
|
153
|
-
### Converting an Image
|
154
|
-
|
155
|
-
```python
|
156
|
-
from agconvert import open_convert
|
157
|
-
|
158
|
-
# Convert PNG to JPG
|
159
|
-
open_convert('image.png', 'image.jpg')
|
160
|
-
|
161
|
-
# Convert PNG to JPG with options
|
162
|
-
open_convert('image.png', 'image.jpg', quality=85, resize=(800, 600))
|
163
|
-
```
|
164
|
-
|
165
|
-
### Converting a Document
|
166
|
-
|
167
|
-
```python
|
168
|
-
from agconvert import open_convert
|
169
|
-
|
170
|
-
# Convert Markdown to HTML
|
171
|
-
open_convert('document.md', 'document.html')
|
172
|
-
|
173
|
-
# Convert CSV to Excel
|
174
|
-
open_convert('data.csv', 'data.xlsx')
|
175
|
-
```
|
176
|
-
|
177
|
-
### Converting Audio
|
178
|
-
|
179
|
-
```python
|
180
|
-
from agconvert import open_convert
|
181
|
-
|
182
|
-
# Convert WAV to MP3
|
183
|
-
open_convert('audio.wav', 'audio.mp3')
|
184
|
-
|
185
|
-
# Convert WAV to MP3 with options
|
186
|
-
open_convert('audio.wav', 'audio.mp3', bitrate='320k')
|
187
|
-
```
|
188
|
-
|
189
|
-
## Running Tests
|
190
|
-
|
191
|
-
To run all tests:
|
192
|
-
|
193
|
-
```bash
|
194
|
-
python run_tests.py
|
195
|
-
```
|
196
|
-
|
197
|
-
To run specific test categories:
|
198
|
-
|
199
|
-
```bash
|
200
|
-
python run_tests.py -k image
|
201
|
-
python run_tests.py -k document
|
202
|
-
```
|
203
|
-
|
204
|
-
## Dependencies
|
205
|
-
|
206
|
-
AGConvert relies on several libraries for different conversion types:
|
207
|
-
|
208
|
-
- **Image**: Pillow, CairoSVG
|
209
|
-
- **Document**: Pandas, OpenPyXL, python-docx, pdfkit, markdown
|
210
|
-
- **Audio**: PyDub, SpeechRecognition
|
211
|
-
- **Video**: MoviePy
|
212
|
-
- **3D Model**: Trimesh, NumPy
|
213
|
-
- **Archive**: py7zr, patool
|
214
|
-
|
215
|
-
System dependencies:
|
216
|
-
- FFmpeg (for audio and video)
|
217
|
-
- Pandoc (for document conversion)
|
218
|
-
- Cairo (for SVG conversion)
|
219
|
-
|
220
|
-
## License
|
221
|
-
|
222
|
-
This project is licensed under the MIT License - see the LICENSE file for details.
|
223
|
-
|
224
|
-
## Contributing
|
225
|
-
|
226
|
-
Contributions are welcome! Please feel free to submit a Pull Request.
|
227
|
-
|
228
|
-
1. Fork the repository
|
229
|
-
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
|
230
|
-
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
|
231
|
-
4. Push to the branch (`git push origin feature/amazing-feature`)
|
232
|
-
5. Open a Pull Request
|
@@ -1,17 +0,0 @@
|
|
1
|
-
openconvert/__init__.py,sha256=drSOivedMzxRLpKS9szmfSyBNuvqKPSk_0C1sCS1F9c,118
|
2
|
-
openconvert/cli.py,sha256=-buio4XnrMnHAPBL1oKABJ_YsaQkQNoZvRU2ueUVovM,4097
|
3
|
-
openconvert/converter.py,sha256=h-MqHN4gyDXQ4m2_PdPdCjrvdP1d_7gNU7sOSDotwXs,5951
|
4
|
-
openconvert/launcher.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
openconvert/converters/__init__.py,sha256=-4kEXJxkc8MNsg9upT640GjdIGP9O7KIguZmEp5LyLM,77
|
6
|
-
openconvert/converters/archive_converter.py,sha256=zXQO8XFPKbT-MsrL9c5BcLncagusjo9TYw3Y9l76al8,9273
|
7
|
-
openconvert/converters/audio_converter.py,sha256=ARj7y1DfA7W1mV2UUMEn5wPNO3AcBlESHn6mUjS2x8s,6776
|
8
|
-
openconvert/converters/code_converter.py,sha256=0CGwyUVsEptKESWBB_bCwnNGf7OaKFYZK0TH_lxy6fA,13485
|
9
|
-
openconvert/converters/document_converter.py,sha256=Ty3NPUI7JD0D63aOr1b8iOdz_c0W1BA5AzP97mHDy3o,21143
|
10
|
-
openconvert/converters/image_converter.py,sha256=-CrT_CJo8_HYw_zCEmao4r9oiH-bYE1CObRIL3_NrYM,7447
|
11
|
-
openconvert/converters/model_converter.py,sha256=oZKZnSh97364dLADBDMYf08YNo82eST3xYMlpQc-Pdg,7021
|
12
|
-
openconvert/converters/video_converter.py,sha256=tzSB8JFXs3E_kBpjkJP1jzfGg3o-fY1ydOR_XKTDGHw,7940
|
13
|
-
openconvert-0.1.0.dist-info/METADATA,sha256=MJ5zr7oqC7oMkwgZXLonirj8RergsjWwI_kPXIfC93g,6120
|
14
|
-
openconvert-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
-
openconvert-0.1.0.dist-info/entry_points.txt,sha256=nwOk0uDatnkLqqVaytDpPquBWwLpQ8To3lc9xl_my7k,53
|
16
|
-
openconvert-0.1.0.dist-info/top_level.txt,sha256=BQWm5PHwGlf1DRAcesIki9gKa0D27YCXJLeqj9DQ-es,12
|
17
|
-
openconvert-0.1.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|