Metadata-Version: 1.1
Name: django-robohash-svg
Version: 0.9.5
Summary: Library for creating svg robots
Home-page: https://github.com/elapouya/django-robohash-svg
Author: Eric Lapouyade
Author-email: elapouya@gmail.com
License: LGPL 2.1
Description: 
        ===================
        django-robohash-svg
        ===================
        
        .. image:: https://raw.githubusercontent.com/elapouya/django-robohash-svg/master/django_robohash.png
            :width: 100%
            :align: center
        
        Django app for creating svg robots
        
        The idea: from any string (username, first name and last name, etc...), obtain a unique svg robot to display. This is useful for creating avatars or for testing purposes.
        
        Installation
        ------------
        
        Install with pip::
        
            pip install django-robohash-svg
        
        Then declare the app in your settings.py ::
        
            INSTALLED_APPS = [
            ...
                'django_robohash',
            ]
        
        
        
        Usage
        -----
        
        If you want an inline image in your template use the robohash tag ::
        
            {% load robohash %}
            ...
            here is a robot:
            {% robohash "a string" %}
            a small one :
            {% robohash "a string" width=100 height=100 %}
        
        If you want to serve robot images, edit your urls.py and use robohash view ::
        
            from django_robohash.views import robohash
        
            urlpatterns = [
                ...
                path('robohash/<string>/', robohash,
                     name='robohash')
            ]
        
        You can custom the url if you want, but keep "<string>".
        
        Then you can display image like this ::
        
            <img src="/robohash/{{ a_string }}/">
        
            or
        
            <img src="/robohash/{{ a_string }}/?width=120&height=120">
        
        
        Default robots size is 300x300
        
        You can generate the svg code by running this function::
        
            from django_robohash.robotmaker import make_robot_svg
            ...
            svg_code = make_robot_svg("my string", width=300, height=300)
        
        
        
        News
        ====
        0.9.4 (2018-08-13)
        ------------------
        - Add documentation
        
        0.0.1 (2018-03-22)
        ------------------
        - Skeleton commit
        
        
Keywords: robots,robohash,svg,hash
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.10
Classifier: Framework :: Django :: 1.11
Classifier: Framework :: Django :: 1.9
Classifier: Framework :: Django :: 2.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
