Metadata-Version: 1.1
Name: utf7
Version: 0.9.3
Summary: UTF-7 encoded unsigned integer
Home-page: https://github.com/sublee/utf7
Author: Heungsub Lee
Author-email: sub@subl.ee
License: BSD
Download-URL: http://github.com/sublee/utf7/zipball/master#egg=utf7-dev
Description: 
        utf7
        ~~~~
        
        Encoder/decoder of an UTF-7 encoded unsigned integer.
        
        .. sourcecode:: pycon
        
           >>> utf7.pack_bytes(65535)
           b'\xff\xff\x03'
           >>> utf7.unpack_bytes(b'\xff\xff\x03')
           65535
        
        UTF-7 uint is used for `BinaryWriter.Write(String)
        <http://msdn.microsoft.com/en-us/library/yzxa6408.aspx>`_ in
        `Microsoft .NET Framework <http://www.microsoft.com/net>`_. Here's an example
        of ping-pong between Python server and C# client:
        
        .. sourcecode:: python
        
           while not socket.closed:
               # recv ping
               ping_size = utf7.unpack_socket(socket)
               ping_data = socket.recv(ping_size)
               assert ping_data == b'ping'
               # send pong
               pong_data = b'pong'
               pong_size = len(pong_data)
               utf7.pack_socket(pong_size, socket)
               socket.send(pong_data)
        
        You can also use ``_utf7`` written in C to take high-speed:
        
        .. sourcecode:: python
        
           import _utf7 as utf7
        
        Links
        `````
        
        * `GitHub repository <http://github.com/sublee/utf7>`_
        * `development version
          <http://github.com/sublee/utf7/zipball/master#egg=utf7-dev>`_
        
        
Platform: a
Platform: n
Platform: y
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
