semvec/pypi-packages huggingface dataset:
text-to-image 0.0.5
Convert your text to a grayscale image and back.
License: MIT
Requires Python: >=3
Keywords: Graphics Encoding Decoding Stenography

Text To Image
=============

Easily convert your text to grayscale images and vice versa.

With this tool you can encode text or plain text files to a grayscale
image to be easily shared. Each pixel represents a single character’s
decimal value. When decoding an image you can decode text straight to
the console or to a plain text file.

Images use a PNG file extension. The image size will be automatically be
set depending on the text length to be encoded.

Text should use a character encoding scheme using 8 bits or less until
additional functionality is added to support UTF-8 (16 bit). If a
character’s decimal value is greater than the limit (see below) the it
will be divided by the limit and the new value used. When the character
value equals the limit value the new value will be 1.

The limit value passed using either command line argument -l(–limit)
specifies the decimal value limit for pixel values starting from 1. The
default is 256 allowing for numbers from 0 to 255 (i.e. 8 bit pixels).
If the limit value is greater than 8 bits then the value will still be
wrapped around since the output image is grayscale.

Requirements
''''''''''''

-  Python 3.x
-  Pillow (PIL fork)

Install
-------

You can install text\_to\_image using pip or setup.py

-  Using pip

   .. code:: bash

       $> pip3 install text_to_image

-  Using setup.py. First navigative to the root directory where setup.py
   is located then run

   .. code:: bash

       $> python3 setup.py install

How to Use
----------

Once installed you can either directly use the encode.py and decode.py
file or import and use the relevant functions.

-  Using the encode.py

   .. code:: bash

       $> python3 encode.py -t "Hello World!" image.png  # encodes given text
       $> python3 encode.py -f my-text-file.txt image.png  # encodes a text file
       $> python3 encode.py --help  # for more information on arguments

-  Using decode.py

   .. code:: bash

       $> python3 decode.py image.png  # decodes a given image
       $> python3 decode.py -f my-text-file.txt image.png  # decodes image.png to the given text file
       $> python3 decode.py --help  # for more information on arguments

-  Importing

   .. code:: python

       import text_to_image

	   encoded_image_path = text_to_image.encode("Hello World!", "image.png")
	   encoded_image_path = text_to_image.encode_file("input_text_file.txt", "output_image.png")

	   decoded_text = text_to_image.decode("encoded_image.png")
	   decoded_file_path = text_to_image.decode_to_file("encoded_image.png", "output_text_file.txt")


Tests
~~~~~

To run tests, navigate to the root directory where setup.py is located
and run

.. code:: bash

    $> python3-m unittest discover tests -v

Another image example:

TODO:
^^^^^

-  Add custom image sizes.
-  Expand pixel value to allow for UTF-8 characters.
django-chaos-tickets 0.1.0
Ticketing system from Django and Django Chaos
License: MIT
Keywords: django-chaos-tickets

=============================
Django Chaos Tickets
=============================

.. image:: https://badge.fury.io/py/django-chaos-tickets.svg
    :target: https://badge.fury.io/py/django-chaos-tickets

.. image:: https://travis-ci.org/george-silva/django-chaos-tickets.svg?branch=master
    :target: https://travis-ci.org/george-silva/django-chaos-tickets

.. image:: https://codecov.io/gh/george-silva/django-chaos-tickets/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/george-silva/django-chaos-tickets

Ticketing system from Django and Django Chaos

Documentation
-------------

The full documentation is at https://django-chaos-tickets.readthedocs.io.

Quickstart
----------

Install Django Chaos Tickets::

    pip install django-chaos-tickets

Add it to your `INSTALLED_APPS`:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'chaos_tickets.apps.ChaosTicketsConfig',
        ...
    )

Add Django Chaos Tickets's URL patterns:

.. code-block:: python

    from chaos_tickets import urls as chaos_tickets_urls


    urlpatterns = [
        ...
        url(r'^', include(chaos_tickets_urls)),
        ...
    ]

Features
--------

* TODO

Running Tests
-------------

Does the code actually work?

::

    source <YOURVIRTUALENV>/bin/activate
    (myenv) $ pip install tox
    (myenv) $ tox

Credits
-------

Tools used in rendering this package:

*  Cookiecutter_
*  `cookiecutter-djangopackage`_

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage




History
-------

0.1.0 (2017-10-27)
++++++++++++++++++

* First release on PyPI.