namanko / RoboHash

Convert text to cool images

Home Page:https://pypi.org/project/RoboHashpy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RoboHashpy

An api wrapper for RoboHash, a cool service by @e1ven, which generates images from random text!

Currently Available Functions

  • get_im_hash(text: str,set: int[optional])
  • get_grav_hash(email/hash: str,gravatar: str)

The set parameter can be an integer from 1 to 5 The following list tells what each number, 1 to 5, represents

  1. Robots
  2. Monsters
  3. Disembodied heads
  4. Kittens
  5. Humans

Default values

  • set:- 1
  • gravatar:- no

Sample Usage

from RoboHashpy import RoboHash

rb =  RoboHash()

print(rb.get_im_hash("hello there",5))

About

Convert text to cool images

https://pypi.org/project/RoboHashpy/

License:MIT License


Languages

Language:Python 100.0%