Name | wordhasher JSON |
Version |
0.2.0
JSON |
| download |
home_page | |
Summary | Make comparing hashes more human friendly by using verb-adj-noun format. |
upload_time | 2022-12-01 02:14:09 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.9 |
license | MIT |
keywords |
hashing
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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](https://wordnet.princeton.edu/) to get some words and [hashlib](https://docs.python.org/3/library/hashlib.html) to get some hashes.
# Example
``` python
>>> 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.
Raw data
{
"_id": null,
"home_page": "",
"name": "wordhasher",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "hashing",
"author": "",
"author_email": "lfrati <lfrati.github@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/ac/84/c2a4745652ef86be90bc9f682805923d272c163ab2c3a55dc6f102be9bab/wordhasher-0.2.0.tar.gz",
"platform": null,
"description": "# WordHasher\nHashes are cool. But gosh they are ugly to read...\n\nLet's convert them to verb-noun-adjective form to be more human friendly!\n\nWe are going to use [WordNet](https://wordnet.princeton.edu/) to get some words and [hashlib](https://docs.python.org/3/library/hashlib.html) to get some hashes.\n\n# Example\n``` python\n>>> from wordhasher import WordHasher\n>>> wh = WordHasher()\n>>> print(wh)\nWordHasher:\n nouns: 9698\nadjectives: 3644\n verbs: 2872\n>>> wh.from_str('This is a test.') \ncatnap-abatic-upshot\n>>> wh.from_str(__file__)\nsyphon-abashed-decidua\n>>> wh.sample()\nkeep-vain-smugness-247\n>>> wh.sample(mode=\"an\")\ninviting-patrial\n>>> wh.sample(mode=\"anN\")\nunsaved-asshole-908\n```\n\n## Credits\n> Princeton University \"About WordNet.\" WordNet. Princeton University. 2010. \n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Make comparing hashes more human friendly by using verb-adj-noun format.",
"version": "0.2.0",
"split_keywords": [
"hashing"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "2818c93cb4def3621601b9f5bbe9a839",
"sha256": "dc247aed228c6853f8033f882a104185c32cb91cef303ba301e3e056de273270"
},
"downloads": -1,
"filename": "wordhasher-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2818c93cb4def3621601b9f5bbe9a839",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 47450,
"upload_time": "2022-12-01T02:14:07",
"upload_time_iso_8601": "2022-12-01T02:14:07.800382Z",
"url": "https://files.pythonhosted.org/packages/fc/78/88951786cc2188b69022174669aced1f7348e76722bd230401b927ca5172/wordhasher-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "6290974cc27a104c45e71c68f1e188fa",
"sha256": "90037c7b32c5f2d5b2995718229803ac8410c296f59a9a7c2820938ffe1bb57b"
},
"downloads": -1,
"filename": "wordhasher-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "6290974cc27a104c45e71c68f1e188fa",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 48095,
"upload_time": "2022-12-01T02:14:09",
"upload_time_iso_8601": "2022-12-01T02:14:09.729690Z",
"url": "https://files.pythonhosted.org/packages/ac/84/c2a4745652ef86be90bc9f682805923d272c163ab2c3a55dc6f102be9bab/wordhasher-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-01 02:14:09",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "wordhasher"
}