2018-12-03 17:19:54 +01:00
2018-12-03 17:19:54 +01:00
2012-01-03 15:12:36 -05:00
2013-12-04 16:15:01 -05:00
2017-07-22 15:50:20 -04:00
2017-07-13 13:49:58 -04:00
2017-07-13 13:49:58 -04:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

RoboHash
========

The source code for `RoboHash.org`_.

It basically copy/pastes various robot pictures together, using bits
from the SHA hash. Its 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", "w") as f:
        rh.img.save(f, format="png")

Robosets
--------

RoboHash comes with three image sets, named “set1”, “set2”, and “set3”.
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.

The “set1” artwork was created by Zikri Kader. The “set2” artwork was
created by Hrvoje Novakovic. The “set3” artwork was created by Julian
Peter Arias.
The Cats/"set4" were created by David Revoy, used under CC-BY-4.0
https://www.peppercarrot.com/en/article391/cat-avatar-generator


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 the CC-BY-3.0 license.

Disclaimer
----------

OK, Ill admit Im a crappy programmer. Compounding this, I wrote this
code initially to be internal-only. Its ugly, and could be a LOT nicer.

Sorry about that.

.. _RoboHash.org: https://robohash.org/
Description
RoboHash.org
Readme 117 MiB
Languages
JavaScript 32.7%
Python 24.8%
CSS 22.8%
HTML 18.9%
Dockerfile 0.6%
Other 0.2%