Skip to content

Commit 5667f9e

Browse files
authored
Update README.md
1 parent e53faa2 commit 5667f9e

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,64 @@ print("Bytes Length: " + str(len(bytesOfImage)) + "\nExtension Type: " + extensi
143143
<hr>
144144
<br>
145145

146+
# CMD Things
147+
148+
```cmd
149+
C:\Users\mozancetin\Desktop\Handler>python SQLiteImageHandler
150+
151+
usage: SQLiteImageHandler [-h] [-v] [--database-path DBPATH] [--table-name TABLENAME] [-a] [-sn SAVE_NAME]
152+
[-ip IMAGE_PATH] [-s] [-sdn SAVED_NAME] [-sp SAVE_PATH] [-u] [-in IMAGE_NAME]
153+
[-uip UPDATE_IMAGE_PATH] [-d] [-c] [-is]
154+
155+
SQLite Image Handler.
156+
157+
optional arguments:
158+
-h, --help show this help message and exit
159+
-v, --version show program's version number and exit
160+
--database-path DBPATH
161+
database path.
162+
--table-name TABLENAME
163+
table name of the database
164+
165+
Add an Image:
166+
Adding an image to the database.
167+
168+
-a, --add-image Adds an image to database. (Requires -sn and -ip)
169+
-sn SAVE_NAME, --save-name SAVE_NAME
170+
Save name of image.
171+
-ip IMAGE_PATH, --image-path IMAGE_PATH
172+
Path of the selected image
173+
174+
Save an Image:
175+
Saving image from database to computer.
176+
177+
-s, --save-image Saves the previously saved image in the database as an image to the given path. (Requires -sdn
178+
and -sp)
179+
-sdn SAVED_NAME, --saved-name SAVED_NAME
180+
Saved name of image in the database.
181+
-sp SAVE_PATH, --save-path SAVE_PATH
182+
Save path. (default: savedImage.png)
183+
184+
Update an Image:
185+
Updating the image in the database.
186+
187+
-u, --update-image Updates image by name in database. (Requires -in and -uip)
188+
-in IMAGE_NAME, --image-name IMAGE_NAME
189+
Saved name of image in the database.
190+
-uip UPDATE_IMAGE_PATH, --update-image-path UPDATE_IMAGE_PATH
191+
Path of the selected image
192+
193+
Delete an Image:
194+
Deleting an image from database
195+
196+
-d, --delete Deletes image by name in database. (Requires -in)
197+
198+
Other:
199+
-c, --check Checks if image exists in database by image name. (Requires -in)
200+
-is, --image-selector
201+
Selects an image and returns the image's bytes length and extension type. (Requires -ip)
202+
```
203+
146204
# TODO's
147205
- [x] Write a readme file
148206
- [x] Add different types of images (Right now just png is supported)

0 commit comments

Comments
 (0)