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: 9698
adjectives: 3644
verbs: 2872
>>> 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.2.0.tar.gz
(48.1 kB
view hashes)
Built Distribution
wordhasher-0.2.0-py3-none-any.whl
(47.5 kB
view hashes)
Close
Hashes for wordhasher-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc247aed228c6853f8033f882a104185c32cb91cef303ba301e3e056de273270 |
|
MD5 | 2818c93cb4def3621601b9f5bbe9a839 |
|
BLAKE2b-256 | fc7888951786cc2188b69022174669aced1f7348e76722bd230401b927ca5172 |