New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packaging #80
Merged
Merged
Packaging #80
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ depix -h
usage: depix [-h] -p PATH -s PATH [-a TYPE] [-b RGB] [-o PATH] [-V]
This command recovers passwords from pixelized screenshots.
optional arguments:
-h, --help show this help message and exit
-p PATH, --pixelimage PATH path to image with pixelated rectangle
-s PATH, --searchimage PATH path to image with patterns to search
-a TYPE, --averagetype TYPE type of RGB average to use (default: gammacorrected)
-b RGB, --backgroundcolor RGB original editor background color in format r,g,b (default: None)
-o PATH, --outputimage PATH path to output image (default: output.png)
-V, --version show program's version number and exit
note:
The pixelated rectangle must be cut out to only include the pixelated rectangles.
The pattern search image is generally a screenshot of a De Bruijn sequence of expected characters,
made on a machine with the same editor and text size as the original screenshot that was pixelated.
$ genpixed -h
usage: genpixed [-h] -i PATH [-o PATH] [-V]
This command generates pixelized image from a given image.
optional arguments:
-h, --help show this help message and exit
-i PATH, --image PATH path to image to pixelize (default: None)
-o PATH, --outputimage PATH path to output image (default: output.png)
-V, --version show program's version number and exit
|
Awesome! Thank you very much |
@beurtschipper If you won't publish on PyPI, please remove: |
note: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have packaged this project. It enables to be easy to install and use as CLI commands (
depix
,genpixed
). And I added type hints in mypy-strict mode.If you don't mind, please publish this on PyPI!
ref: https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives