devbits 0.1.4__tar.gz → 1.1.0__tar.gz

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.
devbits-1.1.0/PKG-INFO ADDED
@@ -0,0 +1,126 @@
1
+ Metadata-Version: 2.4
2
+ Name: devbits
3
+ Version: 1.1.0
4
+ Summary: A lightweight CLI toolkit for daily development utilities.
5
+ Author: Bruce Chuang
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/<your-github-username>/devbits
8
+ Project-URL: Repository, https://github.com/<your-github-username>/devbits
9
+ Project-URL: Issues, https://github.com/<your-github-username>/devbits/issues
10
+ Requires-Python: >=3.9
11
+ Description-Content-Type: text/markdown
12
+ License-File: LICENSE
13
+ Requires-Dist: opencv-python>=4.8.0
14
+ Requires-Dist: pillow>=10.0.0
15
+ Requires-Dist: pytest>=8.0.0
16
+ Dynamic: license-file
17
+
18
+ # devbits
19
+
20
+ A lightweight CLI toolkit for daily development utilities — video/image processing, project file management, and more.
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ pip install devbits
26
+ ```
27
+
28
+ Requires Python ≥ 3.9.
29
+
30
+ ## Usage
31
+
32
+ All commands are available in two ways:
33
+
34
+ ```bash
35
+ # As subcommands of devbits
36
+ devbits <command> [options]
37
+
38
+ # As standalone commands
39
+ <command> [options]
40
+ ```
41
+
42
+ Use `--help` on any command for detailed usage and parameter descriptions:
43
+
44
+ ```bash
45
+ devbits clipvideo --help
46
+ clipvideo --help
47
+ ```
48
+
49
+ ## Commands
50
+
51
+ ### Video
52
+
53
+ | Command | Description |
54
+ |---------|-------------|
55
+ | `clipvideo` | Trim a video by time (seconds) or frame range. Includes `--gui` for browser-based editing. |
56
+ | `video2images` | Extract frames from a video. |
57
+ | `video2gif` | Convert a video (or a portion) to animated GIF. |
58
+ | `images2video` | Assemble an image sequence into an MP4 video. |
59
+ | `images2gif` | Assemble an image sequence into an animated GIF. |
60
+ | `resizevideo` | Re-encode a video at a different resolution. |
61
+
62
+ ### Image
63
+
64
+ | Command | Description |
65
+ |---------|-------------|
66
+ | `resizeimage` | Resize a single image (preserves aspect ratio by default). |
67
+ | `recolor` | Recolor a logo/icon foreground, leaving the background intact. |
68
+ | `image2ico` | Convert an image to a multi-size ICO file. |
69
+ | `batchimages` | Batch resize or convert all images in a folder. |
70
+ | `checkimages` | Scan for broken / corrupt image files. |
71
+ | `contactsheet` | Generate a thumbnail grid (contact sheet) from a folder of images. |
72
+
73
+ ### Project / Files
74
+
75
+ | Command | Description |
76
+ |---------|-------------|
77
+ | `clearcache` | Remove `__pycache__` and other Python cache directories. |
78
+ | `tree` | Print a directory tree. |
79
+ | `size` | List the largest files / folders, sorted by size. |
80
+ | `renamefiles` | Batch rename files sequentially. |
81
+ | `samplefiles` | Copy or move the first N files to another folder. |
82
+
83
+ ## Examples
84
+
85
+ ```bash
86
+ # Trim video from 5s to 20s
87
+ clipvideo movie.mp4 --start 5.0 --end 20.0
88
+
89
+ # Open interactive clip editor in the browser
90
+ clipvideo movie.mp4 --gui
91
+
92
+ # Convert video to GIF (3.5s–10s at 15 fps)
93
+ video2gif movie.mp4 --start 3.5 --end 10.0 --fps 15
94
+
95
+ # Extract every 5th frame as PNG
96
+ video2images movie.mp4 --every 5 --format png
97
+
98
+ # Recolor a logo's foreground to black (keeps the background)
99
+ recolor logo.png
100
+
101
+ # Recolor a logo's foreground to a custom color (hex or R,G,B)
102
+ recolor logo.png --color '#1a73e8'
103
+ recolor logo.png --color 0,178,179
104
+
105
+ # Batch resize images to 800×600
106
+ batchimages ./photos -o ./resized --size 800,600
107
+
108
+ # Clean Python caches
109
+ clearcache . --all
110
+ ```
111
+
112
+ ## Output Defaults
113
+
114
+ When `-o` / `--output` is omitted, the output filename is derived from the input:
115
+
116
+ ```
117
+ clipvideo movie.mp4 → movie_clip.mp4
118
+ video2gif movie.mp4 → movie.gif
119
+ resizeimage photo.jpg → photo_resized.jpg
120
+ recolor logo.png → logo_revised.png
121
+ contactsheet ./photos → photos_sheet.jpg
122
+ ```
123
+
124
+ ## License
125
+
126
+ MIT
@@ -0,0 +1,109 @@
1
+ # devbits
2
+
3
+ A lightweight CLI toolkit for daily development utilities — video/image processing, project file management, and more.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install devbits
9
+ ```
10
+
11
+ Requires Python ≥ 3.9.
12
+
13
+ ## Usage
14
+
15
+ All commands are available in two ways:
16
+
17
+ ```bash
18
+ # As subcommands of devbits
19
+ devbits <command> [options]
20
+
21
+ # As standalone commands
22
+ <command> [options]
23
+ ```
24
+
25
+ Use `--help` on any command for detailed usage and parameter descriptions:
26
+
27
+ ```bash
28
+ devbits clipvideo --help
29
+ clipvideo --help
30
+ ```
31
+
32
+ ## Commands
33
+
34
+ ### Video
35
+
36
+ | Command | Description |
37
+ |---------|-------------|
38
+ | `clipvideo` | Trim a video by time (seconds) or frame range. Includes `--gui` for browser-based editing. |
39
+ | `video2images` | Extract frames from a video. |
40
+ | `video2gif` | Convert a video (or a portion) to animated GIF. |
41
+ | `images2video` | Assemble an image sequence into an MP4 video. |
42
+ | `images2gif` | Assemble an image sequence into an animated GIF. |
43
+ | `resizevideo` | Re-encode a video at a different resolution. |
44
+
45
+ ### Image
46
+
47
+ | Command | Description |
48
+ |---------|-------------|
49
+ | `resizeimage` | Resize a single image (preserves aspect ratio by default). |
50
+ | `recolor` | Recolor a logo/icon foreground, leaving the background intact. |
51
+ | `image2ico` | Convert an image to a multi-size ICO file. |
52
+ | `batchimages` | Batch resize or convert all images in a folder. |
53
+ | `checkimages` | Scan for broken / corrupt image files. |
54
+ | `contactsheet` | Generate a thumbnail grid (contact sheet) from a folder of images. |
55
+
56
+ ### Project / Files
57
+
58
+ | Command | Description |
59
+ |---------|-------------|
60
+ | `clearcache` | Remove `__pycache__` and other Python cache directories. |
61
+ | `tree` | Print a directory tree. |
62
+ | `size` | List the largest files / folders, sorted by size. |
63
+ | `renamefiles` | Batch rename files sequentially. |
64
+ | `samplefiles` | Copy or move the first N files to another folder. |
65
+
66
+ ## Examples
67
+
68
+ ```bash
69
+ # Trim video from 5s to 20s
70
+ clipvideo movie.mp4 --start 5.0 --end 20.0
71
+
72
+ # Open interactive clip editor in the browser
73
+ clipvideo movie.mp4 --gui
74
+
75
+ # Convert video to GIF (3.5s–10s at 15 fps)
76
+ video2gif movie.mp4 --start 3.5 --end 10.0 --fps 15
77
+
78
+ # Extract every 5th frame as PNG
79
+ video2images movie.mp4 --every 5 --format png
80
+
81
+ # Recolor a logo's foreground to black (keeps the background)
82
+ recolor logo.png
83
+
84
+ # Recolor a logo's foreground to a custom color (hex or R,G,B)
85
+ recolor logo.png --color '#1a73e8'
86
+ recolor logo.png --color 0,178,179
87
+
88
+ # Batch resize images to 800×600
89
+ batchimages ./photos -o ./resized --size 800,600
90
+
91
+ # Clean Python caches
92
+ clearcache . --all
93
+ ```
94
+
95
+ ## Output Defaults
96
+
97
+ When `-o` / `--output` is omitted, the output filename is derived from the input:
98
+
99
+ ```
100
+ clipvideo movie.mp4 → movie_clip.mp4
101
+ video2gif movie.mp4 → movie.gif
102
+ resizeimage photo.jpg → photo_resized.jpg
103
+ recolor logo.png → logo_revised.png
104
+ contactsheet ./photos → photos_sheet.jpg
105
+ ```
106
+
107
+ ## License
108
+
109
+ MIT
@@ -1,3 +1,3 @@
1
1
  """devbits: A lightweight CLI toolkit for daily development utilities."""
2
2
 
3
- __version__ = "0.1.4"
3
+ __version__ = "1.1.0"