devbits 0.1.4__tar.gz → 1.0.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.0.0/PKG-INFO +117 -0
- devbits-1.0.0/README.md +100 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/__init__.py +1 -1
- devbits-1.0.0/devbits/cli.py +509 -0
- devbits-1.0.0/devbits.egg-info/PKG-INFO +117 -0
- {devbits-0.1.4 → devbits-1.0.0}/pyproject.toml +1 -1
- devbits-0.1.4/PKG-INFO +0 -176
- devbits-0.1.4/README.md +0 -159
- devbits-0.1.4/devbits/cli.py +0 -232
- devbits-0.1.4/devbits.egg-info/PKG-INFO +0 -176
- {devbits-0.1.4 → devbits-1.0.0}/LICENSE +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/cache.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/gui.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/image.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/media.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/project.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/scripts.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits/utils.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits.egg-info/SOURCES.txt +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits.egg-info/dependency_links.txt +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits.egg-info/entry_points.txt +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits.egg-info/requires.txt +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/devbits.egg-info/top_level.txt +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/setup.cfg +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/tests/test_cli.py +0 -0
- {devbits-0.1.4 → devbits-1.0.0}/tests/test_gui_cli.py +0 -0
devbits-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: devbits
|
|
3
|
+
Version: 1.0.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
|
+
| `image2ico` | Convert an image to a multi-size ICO file. |
|
|
68
|
+
| `batchimages` | Batch resize or convert all images in a folder. |
|
|
69
|
+
| `checkimages` | Scan for broken / corrupt image files. |
|
|
70
|
+
| `contactsheet` | Generate a thumbnail grid (contact sheet) from a folder of images. |
|
|
71
|
+
|
|
72
|
+
### Project / Files
|
|
73
|
+
|
|
74
|
+
| Command | Description |
|
|
75
|
+
|---------|-------------|
|
|
76
|
+
| `clearcache` | Remove `__pycache__` and other Python cache directories. |
|
|
77
|
+
| `tree` | Print a directory tree. |
|
|
78
|
+
| `size` | List the largest files / folders, sorted by size. |
|
|
79
|
+
| `renamefiles` | Batch rename files sequentially. |
|
|
80
|
+
| `samplefiles` | Copy or move the first N files to another folder. |
|
|
81
|
+
|
|
82
|
+
## Examples
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Trim video from 5s to 20s
|
|
86
|
+
clipvideo movie.mp4 --start 5.0 --end 20.0
|
|
87
|
+
|
|
88
|
+
# Open interactive clip editor in the browser
|
|
89
|
+
clipvideo movie.mp4 --gui
|
|
90
|
+
|
|
91
|
+
# Convert video to GIF (3.5s–10s at 15 fps)
|
|
92
|
+
video2gif movie.mp4 --start 3.5 --end 10.0 --fps 15
|
|
93
|
+
|
|
94
|
+
# Extract every 5th frame as PNG
|
|
95
|
+
video2images movie.mp4 --every 5 --format png
|
|
96
|
+
|
|
97
|
+
# Batch resize images to 800×600
|
|
98
|
+
batchimages ./photos -o ./resized --size 800,600
|
|
99
|
+
|
|
100
|
+
# Clean Python caches
|
|
101
|
+
clearcache . --all
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Output Defaults
|
|
105
|
+
|
|
106
|
+
When `-o` / `--output` is omitted, the output filename is derived from the input:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
clipvideo movie.mp4 → movie_clip.mp4
|
|
110
|
+
video2gif movie.mp4 → movie.gif
|
|
111
|
+
resizeimage photo.jpg → photo_resized.jpg
|
|
112
|
+
contactsheet ./photos → photos_sheet.jpg
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
MIT
|
devbits-1.0.0/README.md
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
| `image2ico` | Convert an image to a multi-size ICO file. |
|
|
51
|
+
| `batchimages` | Batch resize or convert all images in a folder. |
|
|
52
|
+
| `checkimages` | Scan for broken / corrupt image files. |
|
|
53
|
+
| `contactsheet` | Generate a thumbnail grid (contact sheet) from a folder of images. |
|
|
54
|
+
|
|
55
|
+
### Project / Files
|
|
56
|
+
|
|
57
|
+
| Command | Description |
|
|
58
|
+
|---------|-------------|
|
|
59
|
+
| `clearcache` | Remove `__pycache__` and other Python cache directories. |
|
|
60
|
+
| `tree` | Print a directory tree. |
|
|
61
|
+
| `size` | List the largest files / folders, sorted by size. |
|
|
62
|
+
| `renamefiles` | Batch rename files sequentially. |
|
|
63
|
+
| `samplefiles` | Copy or move the first N files to another folder. |
|
|
64
|
+
|
|
65
|
+
## Examples
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Trim video from 5s to 20s
|
|
69
|
+
clipvideo movie.mp4 --start 5.0 --end 20.0
|
|
70
|
+
|
|
71
|
+
# Open interactive clip editor in the browser
|
|
72
|
+
clipvideo movie.mp4 --gui
|
|
73
|
+
|
|
74
|
+
# Convert video to GIF (3.5s–10s at 15 fps)
|
|
75
|
+
video2gif movie.mp4 --start 3.5 --end 10.0 --fps 15
|
|
76
|
+
|
|
77
|
+
# Extract every 5th frame as PNG
|
|
78
|
+
video2images movie.mp4 --every 5 --format png
|
|
79
|
+
|
|
80
|
+
# Batch resize images to 800×600
|
|
81
|
+
batchimages ./photos -o ./resized --size 800,600
|
|
82
|
+
|
|
83
|
+
# Clean Python caches
|
|
84
|
+
clearcache . --all
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Output Defaults
|
|
88
|
+
|
|
89
|
+
When `-o` / `--output` is omitted, the output filename is derived from the input:
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
clipvideo movie.mp4 → movie_clip.mp4
|
|
93
|
+
video2gif movie.mp4 → movie.gif
|
|
94
|
+
resizeimage photo.jpg → photo_resized.jpg
|
|
95
|
+
contactsheet ./photos → photos_sheet.jpg
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
MIT
|