RoboHash
========
The source code for `RoboHash.org`_.
It basically copy/pastes various robot pictures together, using bits
from the SHA hash. It's not perfect, and not entirely secure, but it
gives a good gut-check to "Hey, this SHA is wrong."
Install
-------
Just the library:
.. code:: bash
$ pip install robohash
Or if you also want the web frontend:
.. code:: bash
$ pip install robohash[web]
Usage
-----
.. code:: python
from robohash import Robohash
hash = "whatever-hash-you-want"
rh = Robohash(hash)
rh.assemble(roboset='any')
with open("path/to/new/file.png", "wb") as f:
rh.img.save(f, format="png")
Robosets
--------
RoboHash comes with five image sets, named "set1", "set2", "set3", "set4" and "set5".
Specify which set you want in the ``assemble()`` method. Alternatively,
specify the string "any", and RoboHash will pick an image set for you,
based on the provided hash.
License
-------
The Python Code is available under the MIT/Expat license. See the
``LICENSE.txt`` file for the full text of this license. Copyright (c)
2011, Colin Davis.
The RoboHash images are available under license-
The "set1" artwork was created by Zikri Kader.
They are available under CC-BY-3.0 or CC-BY-4.0 license.
The "set2" artwork was created by Hrvoje Novakovic.
They are available under CC-BY-3.0 license.
The "set3" artwork was created by Julian Peter Arias.
They are available under CC-BY-3.0 license.
The Cats/"set4" were created by David Revoy, used under CC-BY-4.0
https://www.peppercarrot.com/en/article391/cat-avatar-generator
The avatars used in "set5" were created by Pablo Stanley, for https://avataaars.com/
They are "Free for personal and commercial use. 😇"
Disclaimer
----------
OK, I'll admit I'm a crappy programmer. Compounding this, I wrote this
code initially to be internal-only. It's ugly, and could be a LOT nicer.
Sorry about that.
.. _RoboHash.org: https://robohash.org/
Raw data
{
"_id": null,
"home_page": "https://github.com/e1ven/Robohash",
"name": "robohash",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "robots",
"author": "Colin Davis",
"author_email": "colin@robohash.org",
"download_url": "https://files.pythonhosted.org/packages/a6/31/85486936a57943d91b140f286ccb24597efd52294637d7c97c070caaed0d/robohash-1.1.tar.gz",
"platform": "",
"description": "RoboHash\n========\n\nThe source code for `RoboHash.org`_.\n\nIt basically copy/pastes various robot pictures together, using bits\nfrom the SHA hash. It's not perfect, and not entirely secure, but it\ngives a good gut-check to \"Hey, this SHA is wrong.\"\n\nInstall\n-------\n\nJust the library:\n\n.. code:: bash\n\n $ pip install robohash\n\nOr if you also want the web frontend:\n\n.. code:: bash\n\n $ pip install robohash[web]\n\nUsage\n-----\n\n.. code:: python\n\n from robohash import Robohash\n\n hash = \"whatever-hash-you-want\"\n rh = Robohash(hash)\n rh.assemble(roboset='any')\n with open(\"path/to/new/file.png\", \"wb\") as f:\n rh.img.save(f, format=\"png\")\n\nRobosets\n--------\n\nRoboHash comes with five image sets, named \"set1\", \"set2\", \"set3\", \"set4\" and \"set5\".\nSpecify which set you want in the ``assemble()`` method. Alternatively,\nspecify the string \"any\", and RoboHash will pick an image set for you,\nbased on the provided hash.\n\n\nLicense\n-------\n\nThe Python Code is available under the MIT/Expat license. See the\n``LICENSE.txt`` file for the full text of this license. Copyright (c)\n2011, Colin Davis.\n\nThe RoboHash images are available under license-\n\nThe \"set1\" artwork was created by Zikri Kader. \nThey are available under CC-BY-3.0 or CC-BY-4.0 license.\n\nThe \"set2\" artwork was created by Hrvoje Novakovic. \nThey are available under CC-BY-3.0 license.\n\nThe \"set3\" artwork was created by Julian Peter Arias.\nThey are available under CC-BY-3.0 license.\n\nThe Cats/\"set4\" were created by David Revoy, used under CC-BY-4.0\nhttps://www.peppercarrot.com/en/article391/cat-avatar-generator\n\nThe avatars used in \"set5\" were created by Pablo Stanley, for https://avataaars.com/ \nThey are \"Free for personal and commercial use. \ud83d\ude07\"\n\n\n\n\nDisclaimer\n----------\n\nOK, I'll admit I'm a crappy programmer. Compounding this, I wrote this\ncode initially to be internal-only. It's ugly, and could be a LOT nicer.\n\nSorry about that.\n\n.. _RoboHash.org: https://robohash.org/\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "One of the leading robot-based hashing tools on the web",
"version": "1.1",
"split_keywords": [
"robots"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "336657ed2d45183f4d240354ed7de0c3",
"sha256": "b2c735008929fd681b3e9050c0b466a01c475e5805bb1deba6e3960a6595059f"
},
"downloads": -1,
"filename": "robohash-1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "336657ed2d45183f4d240354ed7de0c3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 43656525,
"upload_time": "2020-03-01T01:54:42",
"upload_time_iso_8601": "2020-03-01T01:54:42.638570Z",
"url": "https://files.pythonhosted.org/packages/c5/67/7c86f815e798b094eab142d865d2f6a123e9446e4d28cd3cba608d8f7e9e/robohash-1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "37c742652b747500cff640cb5c352e4f",
"sha256": "901f2a6dfde6ea84726f506acebfb1d89f7bfb8fa6547e01c59f64301aa91b72"
},
"downloads": -1,
"filename": "robohash-1.1.tar.gz",
"has_sig": false,
"md5_digest": "37c742652b747500cff640cb5c352e4f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 42736473,
"upload_time": "2020-03-01T01:54:54",
"upload_time_iso_8601": "2020-03-01T01:54:54.944684Z",
"url": "https://files.pythonhosted.org/packages/a6/31/85486936a57943d91b140f286ccb24597efd52294637d7c97c070caaed0d/robohash-1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-03-01 01:54:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "e1ven",
"github_project": "Robohash",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "pillow",
"specs": []
},
{
"name": "tornado",
"specs": []
},
{
"name": "natsort",
"specs": []
}
],
"lcname": "robohash"
}