Skip to main content

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


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)

Uploaded Source

Built Distribution

wordhasher-0.2.0-py3-none-any.whl (47.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page