semvec/pypi-packages huggingface dataset:
identicon 0.1
A Python library for generating Github-like identicons
License: MIT
Keywords: identicon image profile render github


Identicon
=========

.. image:: https://camo.githubusercontent.com/3c4eee845db4fa6af1d93b1c33b30074a9b0333f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f363130342f3936313733302f61336334653261302d303464662d313165332d383234632d3733373865363535303730372e706e67
    :width: 2384 px
    :height: 784 px
    :scale: 15 %
    :target: https://camo.githubusercontent.com/3c4eee845db4fa6af1d93b1c33b30074a9b0333f/

A Python library for generating GitHub-like symmetrical 5x5 `identicons <https://github.com/blog/1586-identicons>`_.

.. image:: https://travis-ci.org/flavono123/identicon.svg?branch=master
    :target: https://travis-ci.org/flavono123/identicon

Installation
------------

**Sorry, not yet available.**

::

    pip install Identicon

Usage
-----

Pass a string to :code:`Identicon.render()`. It will return the PNG formatted byte stream:

::

    identicon = Identicon.render('Python')
    # b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\xfa\x00\x00\x00...'

You can write to file:

::

    with open('identicon.png', 'wb') as f:
        f.write(identicon)

or get as :code:`PIL.Image`:

::

    import io
    from PIL import Image

    image = Image.open(io.BytesIO(identicon))

===
0.1.1
-----
- Crop edges of image as rounded corner

0.1
-----
- Render for 5x5 size
cbork2 4.0.1
Pure Python CBOR (de)serializer with extensive tag support
License: MIT
Keywords: serialization cbor


**This is just a fork of `cbor2`_ by Alex Grönholm.**

.. _cbor2: https://github.com/agronholm/cbor2

This library provides encoding and decoding for the Concise Binary Object Representation (CBOR)
(`RFC 7049`_) serialization format.

There exists another Python CBOR implementation (cbor) which is faster on CPython due to its C
extensions. On PyPy, cbor2 and cbor are almost identical in performance. The other implementation
also lacks documentation and a comprehensive test suite, does not support most standard extension
tags and is known to crash (segfault) when passed a cyclic structure (say, a list containing
itself).

.. _RFC 7049: https://tools.ietf.org/html/rfc7049

Upstream project links
-------------

* `Documentation <http://cbor2.readthedocs.org/>`_
* `Source code <https://github.com/agronholm/cbor2>`_
* `Issue tracker <https://github.com/agronholm/cbor2/issues>`_