Skip to main content

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.

Metadata

Release files for wordhasher 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wordhasher 0.2.0
File Size Uploaded
wordhasher-0.2.0.tar.gz 48.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wordhasher 0.2.0
File Interpreter ABI Platform
wordhasher-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 95.5 kB

Release files / wordhasher-0.2.0.tar.gz

Download URL wordhasher-0.2.0.tar.gz
Size 48.1 kB
Tags Source
SHA-256 checksum
How to use checksums
90037c7b32c5f2d5b2995718229803ac8410c296f59a9a7c2820938ffe1bb57b
BLAKE2b-256 checksum
How to use checksums
ac84c2a4745652ef86be90bc9f682805923d272c163ab2c3a55dc6f102be9bab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / wordhasher-0.2.0-py3-none-any.whl

Download URL wordhasher-0.2.0-py3-none-any.whl
Size 47.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc247aed228c6853f8033f882a104185c32cb91cef303ba301e3e056de273270
BLAKE2b-256 checksum
How to use checksums
fc7888951786cc2188b69022174669aced1f7348e76722bd230401b927ca5172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page