commits
- better type hints
- input validation in decoding, raises ValueError when anything that isn't a
dollcode character is passed in input
- wrap main() logic in try/except block to neatly print errors and exit with
sys.exit(1)
- clearer cli
- removed print_dollcode as thats handled in main now
- updated README to reflect changes, fixed errors as well
- bumped semver -> 1.0.0 as dollcode is now feature complete (as of now)
- cleaned up README
- moved arg parsing into `__main__` block for cleanliness
- bumped semver -> 0.4.0
- corrected comment for convert_to_int to include base256 usage
- used a shorter text example for clipboard copying
- encode_256 -> convert_to_int
- encode_dcode -> convert_to_dollcode
- print_dcode -> print_dollcode
- comments explaining each function
this isnt really a port anymore if im using base256 encoding...
- switched from int-only to string-based input
- removed relevant validation, no longer necessary
- added base256 encoding (encode_256), input now passes thru this first
- renamed various functions (print_dollcode -> print_dcode, convert_number ->
encode_dcode)
- edited pyproject.toml to reflect new changes & bumped semver accordingly
copy dollcode to the clipboard when the copy (-c) flag is set
- switched from int-only to string-based input
- removed relevant validation, no longer necessary
- added base256 encoding (encode_256), input now passes thru this first
- renamed various functions (print_dollcode -> print_dcode, convert_number ->
encode_dcode)
- edited pyproject.toml to reflect new changes & bumped semver accordingly