fotolab 0.15.0__tar.gz → 0.16.1__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.
Files changed (43) hide show
  1. {fotolab-0.15.0 → fotolab-0.16.1}/.pre-commit-config.yaml +1 -1
  2. fotolab-0.16.1/.python-version +5 -0
  3. {fotolab-0.15.0 → fotolab-0.16.1}/CHANGELOG.md +19 -92
  4. {fotolab-0.15.0 → fotolab-0.16.1}/PKG-INFO +20 -3
  5. {fotolab-0.15.0 → fotolab-0.16.1}/Pipfile +5 -4
  6. {fotolab-0.15.0 → fotolab-0.16.1}/Pipfile.lock +464 -529
  7. {fotolab-0.15.0 → fotolab-0.16.1}/README.md +19 -2
  8. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/__init__.py +1 -1
  9. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/cli.py +2 -0
  10. fotolab-0.16.1/fotolab/rotate.py +61 -0
  11. fotolab-0.16.1/noxfile.py +38 -0
  12. fotolab-0.15.0/.python-version +0 -5
  13. {fotolab-0.15.0 → fotolab-0.16.1}/.coveragerc +0 -0
  14. {fotolab-0.15.0 → fotolab-0.16.1}/.gitignore +0 -0
  15. {fotolab-0.15.0 → fotolab-0.16.1}/CONTRIBUTING.md +0 -0
  16. {fotolab-0.15.0 → fotolab-0.16.1}/LICENSE.md +0 -0
  17. {fotolab-0.15.0 → fotolab-0.16.1}/docs/Makefile +0 -0
  18. {fotolab-0.15.0 → fotolab-0.16.1}/docs/make.bat +0 -0
  19. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/CHANGELOG.md +0 -0
  20. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/CONTRIBUTING.md +0 -0
  21. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/LICENSE.md +0 -0
  22. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/README.md +0 -0
  23. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/_static/logo.jpg +0 -0
  24. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/conf.py +0 -0
  25. {fotolab-0.15.0 → fotolab-0.16.1}/docs/source/index.rst +0 -0
  26. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/__main__.py +0 -0
  27. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/animate.py +0 -0
  28. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/auto.py +0 -0
  29. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/border.py +0 -0
  30. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/contrast.py +0 -0
  31. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/env.py +0 -0
  32. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/info.py +0 -0
  33. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/montage.py +0 -0
  34. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/resize.py +0 -0
  35. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/sharpen.py +0 -0
  36. {fotolab-0.15.0 → fotolab-0.16.1}/fotolab/watermark.py +0 -0
  37. {fotolab-0.15.0 → fotolab-0.16.1}/pyproject.toml +0 -0
  38. {fotolab-0.15.0 → fotolab-0.16.1}/tests/__init__.py +0 -0
  39. {fotolab-0.15.0 → fotolab-0.16.1}/tests/conftest.py +0 -0
  40. {fotolab-0.15.0 → fotolab-0.16.1}/tests/test_env.py +0 -0
  41. {fotolab-0.15.0 → fotolab-0.16.1}/tests/test_help_flag.py +0 -0
  42. {fotolab-0.15.0 → fotolab-0.16.1}/tests/test_quiet_flag.py +0 -0
  43. {fotolab-0.15.0 → fotolab-0.16.1}/tox.ini +0 -0
@@ -15,7 +15,7 @@ repos:
15
15
  - id: trailing-whitespace
16
16
 
17
17
  - repo: https://github.com/abravalheri/validate-pyproject
18
- rev: v0.16
18
+ rev: v0.17
19
19
  hooks:
20
20
  - id: validate-pyproject
21
21
  name: validate-pyproject
@@ -0,0 +1,5 @@
1
+ 3.8.19
2
+ 3.9.19
3
+ 3.10.14
4
+ 3.11.9
5
+ 3.12.3
@@ -7,204 +7,131 @@ and this project adheres to [0-based versioning](https://0ver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
- ## v0.15.0 (2024-05-05)
10
+ ## v0.16.1 (2024-05-19)
11
11
 
12
- ### Added
12
+ - Add `doc` session to `nox`
13
+ - Bump deps
14
+ - Move doc generation related deps to `dev` group
15
+ - Remove subheaders from changelog
13
16
 
14
- - Add `-v` or `--verbose` flag to toggle the debug logs of PIL
17
+ ## v0.16.0 (2024-05-12)
15
18
 
16
- ### Changed
19
+ - Add `rotate` subcommand to rotate an image
20
+ - Add initial `lint` session for `nox`
21
+ - Bump deps, `pre-commit` hooks, and Python versions in `pyenv`
22
+
23
+ ## v0.15.0 (2024-05-05)
17
24
 
25
+ - Add `-v` or `--verbose` flag to toggle the debug logs of PIL
18
26
  - Bump deps and `pre-commit` hooks
27
+ - Remove empty lines in help message
19
28
  - Resize image to the right aspect ratio based on image's dimension
20
29
  - Resize watermark font based on the image's dimension
21
- - Remove empty lines in help message
22
30
  - Show absolute image path in logs
23
31
 
24
32
  ## v0.14.0 (2024-04-28)
25
33
 
26
- ### Added
27
-
28
34
  - Add `animate` subcommand to create animated `gif` image
29
-
30
- ### Changed
31
-
32
35
  - Bump deps and `pre-commit` hooks
33
36
 
34
37
  ## v0.13.0 (2024-04-21)
35
38
 
36
- ### Changed
37
-
38
39
  - Bump deps
39
40
  - Support processing multiple images at once
40
41
  - Update missing help message in readme
41
42
 
42
43
  ## v0.12.0 (2024-04-14)
43
44
 
44
- ### Added
45
-
46
45
  - Add `-pd` or `--padding` option to set the padding of watermark text block
47
-
48
- ### Changed
49
-
50
46
  - Bump deps, `pre-commit` hooks, and Python versions for `pyenv`
51
-
52
- ### Fixed
53
-
54
47
  - Fix `auto` subcommand missing `padding` field
55
48
  - Fix missing closing parenthesis in help message
56
49
  - Update missing subcommand help message in README
57
50
 
58
51
  ## v0.11.0 (2024-04-07)
59
52
 
60
- ### Added
61
-
62
53
  - Add `montage` subcommand to join multiple images
63
-
64
- ### Changed
65
-
66
54
  - Bump deps
67
55
  - Update missing subcommand help message in README
68
56
 
69
57
  ## v0.10.0 (2024-03-31)
70
58
 
71
- ### Added
72
-
73
59
  - Add `info` subcommand to show EXIF data from image
74
-
75
- ### Changed
76
-
77
60
  - Bump deps
78
- - Update help message in README
79
- - Ignore `pylint` W0212 rule
80
-
81
- ### Fix
82
-
83
61
  - Fix incorrect action in log when running `auto` subcommand
62
+ - Ignore `pylint` W0212 rule
63
+ - Update help message in README
84
64
  - Update incorrect comment for `save_image` helper function
85
65
 
86
66
  ## v0.9.1 (2024-03-24)
87
67
 
88
- ### Changed
89
-
68
+ - Fix newline in `sys.version` output in Python 3.8
90
69
  - Implement open image using the default program
91
70
  - Refactor all subcommand to use `save_image` global helper function
92
71
 
93
- ### Fixed
94
-
95
- - Fix newline in `sys.version` output in Python 3.8
96
-
97
72
  ## v0.9.0 (2024-03-17)
98
73
 
99
- ### Added
100
-
101
74
  - Add `-op` or `--open` flag to open the image using default program
102
-
103
- ### Changed
104
-
105
75
  - Bump deps and `pre-commit` hook
106
76
 
107
77
  ## v0.8.0 (2024-03-10)
108
78
 
109
- ### Added
110
-
111
79
  - Add `auto` subcommand to auto adjust (resize, contrast, sharpen, and watermark) of an image
112
80
  - Add `contrast` subcommand to adjust contrast of an image
113
-
114
- ### Changed
115
-
116
81
  - Bump `pre-commit` hook
117
82
  - Log using the subcommand name instead of generic name
118
83
 
119
84
  ## v0.7.0 (2024-03-03)
120
85
 
121
- ### Added
122
-
123
86
  - Add `sharpen` subcommand to sharpen image
124
- - Set sharpen parameters through `-r` or `--radius` option
125
87
  - Set sharpen parameters through `-p` or `--percent` option
88
+ - Set sharpen parameters through `-r` or `--radius` option
126
89
  - Set sharpen parameters through `-t` or `--threshold` option
127
90
 
128
91
  ## v0.6.1 (2024-02-18)
129
92
 
130
- ### Added
131
-
132
93
  - Allow setting of different border width through `-wt`, `-wr`, `-wb`, and `wl`
133
94
  option
134
-
135
- ### Fixed
136
-
137
95
  - Remove extra lines in help message in README.md
138
96
 
139
97
  ## v0.6.0 (2024-02-18)
140
98
 
141
- ### Added
142
-
143
99
  - Add `resize` subcommand to resize image
144
100
 
145
101
  ## v0.5.0 (2024-02-11)
146
102
 
147
- ### Added
148
-
149
103
  - Add `-od` or `--output-dir` global option to set default output directory
150
104
  - Add missing types in doc
151
105
  - Log when saving image
152
106
 
153
107
  ## v0.4.0 (2024-02-04)
154
108
 
155
- ### Added
156
-
157
109
  - Add `-o` or `--overwrite` global flag to overwrite modified image
158
110
 
159
111
  ## v0.3.1 (2024-01-28)
160
112
 
161
- ### Added
162
-
163
113
  - Add `-w` or `--width` option to `fotolab border` subcommand
164
114
  - Add `-c` or `--color` option to `fotolab border` subcommand
165
-
166
- ### Fixed
167
-
168
115
  - Fix border not added to image
169
116
 
170
117
  ## v0.3.0 (2024-01-21)
171
118
 
172
- ### Fixed
173
-
119
+ - Add `fotolab border` subcommand to add border for an image
174
120
  - Fix incorrect subcommand wording
175
-
176
- ### Changed
177
-
178
121
  - Ignore `__repr__` in code coverage
179
122
  - Ignore duplicate code linting rule
180
-
181
- ### Added
182
-
183
- - Add `fotolab border` subcommand to add border for an image
184
123
  - Test `quiet` flag
185
124
 
186
125
  ## v0.2.0 (2024-01-14)
187
126
 
188
- ### Added
189
-
190
127
  - Add `fotolab env` subcommand for debugging and bug reporting purpose
191
-
192
- ### Fixed
193
-
194
128
  - Fix incorrect metavar for `--font-color`
195
129
 
196
130
  ## v0.1.1 (2024-01-07)
197
131
 
198
- ### Added
199
-
132
+ - Bump project and `pre-commit` hooks deps
200
133
  - Generate project documentation using `sphinx`
201
134
 
202
- ### Changes
203
-
204
- - Bump project and pre-commit hooks deps
205
-
206
135
  ## v0.1.0 (2024-01-01)
207
136
 
208
- ### Added
209
-
210
137
  - Initial public release
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fotolab
3
- Version: 0.15.0
3
+ Version: 0.16.1
4
4
  Summary: A console program that manipulate images.
5
5
  Keywords: photography,photo
6
6
  Author-email: Kian-Meng Ang <kianmeng@cpan.org>
@@ -58,7 +58,7 @@ fotolab -h
58
58
 
59
59
  ```console
60
60
  usage: fotolab [-h] [-o] [-op] [-od OUTPUT_DIR] [-q] [-v] [-d] [-V]
61
- {animate,auto,border,contrast,info,resize,montage,sharpen,watermark,env}
61
+ {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
62
62
  ...
63
63
 
64
64
  A console program to manipulate photos.
@@ -68,7 +68,7 @@ A console program to manipulate photos.
68
68
  issues: https://github.com/kianmeng/fotolab/issues
69
69
 
70
70
  positional arguments:
71
- {animate,auto,border,contrast,info,resize,montage,sharpen,watermark,env}
71
+ {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
72
72
  sub-command help
73
73
  animate animate an image
74
74
  auto auto adjust (resize, contrast, and watermark) a photo
@@ -76,6 +76,7 @@ positional arguments:
76
76
  contrast contrast an image
77
77
  info info an image
78
78
  resize resize an image
79
+ rotate rotate an image
79
80
  montage montage a list of image
80
81
  sharpen sharpen an image
81
82
  watermark watermark an image
@@ -196,6 +197,22 @@ optional arguments:
196
197
  -h, --help show this help message and exit
197
198
  ```
198
199
 
200
+ ### fotolab rotate
201
+
202
+ ```console
203
+ fotolab rotate -h
204
+ ```
205
+
206
+ ```console
207
+ usage: fotolab rotate [-h] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
208
+
209
+ positional arguments:
210
+ IMAGE_FILENAMES set the image filenames
211
+
212
+ optional arguments:
213
+ -h, --help show this help message and exit
214
+ ```
215
+
199
216
  ### fotolab montage
200
217
 
201
218
  ```console
@@ -23,12 +23,13 @@ scripttest = "*"
23
23
  tomli = "*"
24
24
  tox = "<4"
25
25
  tox-pyenv = "*"
26
+ nox = "*"
27
+ sphinx = "*"
28
+ myst-parser = "*"
29
+ sphinx-autodoc-typehints = "*"
30
+ sphinx-copybutton = "*"
26
31
 
27
32
  [requires]
28
33
  python_version = "3.8"
29
34
 
30
35
  [doc]
31
- sphinx = "*"
32
- myst-parser = "*"
33
- sphinx-autodoc-typehints = "*"
34
- sphinx-copybutton = "*"