Make comparing hashes more human friendly by using verb-adj-noun format.
Project description
WordHasher
Hashes are cool. But gosh they are ugly to read...
Let's convert them to verb-noun-adjective form to be more human friendly!
We are going to use WordNet to get some words and hashlib to get some hashes.
Example
>>> from wordhasher import WordHasher
>>> wh = WordHasher()
>>> print(wh)
WordHasher:
nouns: 21252
adjectives: 7395
verbs: 5905
>>> wh.from_str('This is a test.')
catnap-abatic-upshot
>>> wh.from_str(__file__)
syphon-abashed-decidua
>>> wh.sample()
keep-vain-smugness-247
>>> wh.sample(mode="an")
inviting-patrial
>>> wh.sample(mode="anN")
unsaved-asshole-908
Credits
Princeton University "About WordNet." WordNet. Princeton University. 2010.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wordhasher-0.0.3.tar.gz
(107.0 kB
view hashes)
Built Distribution
wordhasher-0.0.3-py3-none-any.whl
(105.5 kB
view hashes)
Close
Hashes for wordhasher-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f23d0e051e51f73f4dce36fbcece28a3bc034d2608cedfcd0a7b9cbea472a8b |
|
MD5 | 1071051927e0334d79adc4b18ade560c |
|
BLAKE2b-256 | 115328f9312e527953ae6268dd60ed3a47c0577bd49d506827156b35f3200c62 |