semvec/pypi-packages huggingface dataset:
datachunkpy 1.0.0
An utility library for separating individual messages in a stream
License: MIT

Datachunkpy
============
DataChunk is an useful library for proessing messages in a stream where messages are sent in
a stream as shown below:
<msg-size><msg-bytes><msg-size><msg-bytes><msg-size>....
msg-size is a 4 byte integer (little-endian)
whenever a complete message is read, DataChunk calls the handle_msg method of the handler.

A message may come in fragments. Sometimes many messages may come in a single data packet. 
All we need to do is to call process_chunk method of DataChunk and DataChunk object will take care 
of re-assembling the messages as and when needed.


Basic example
-------------


    .. code:: python

        from __future__ import print_function
        from struct import pack
        import random
        from datachunkpy.datachunk import DataChunk, MessageHandler

        # A message handler class 
        class MyMsgHandler(MessageHandler):
            def __init__(self):
                self.msg_processed = 0
                self.bytes_processed = 0

            def handle_msg(self, data):
                print('I am handling', data)
                self.msg_processed += 1
                self.bytes_processed += len(data)

        
        datach = DataChunk(MyMsgHandler())

        i = 0
        random.seed()
        mydata = b''
        total_bytes = 0
        while i < 10000:
            i += 1
            j = random.randint(1,50)
            mydata += pack('i', j)
            mydata += b'a' * j
            total_bytes += j
        datach.process_chunk(mydata)
aespy 0.14
An ultra-lightweight library to securely encrypt any file with AES.
License: MIT
Keywords: encryption,aes,encrypt,advanced encryption standard

aespy
========

aespy is an ultra-lightweight, pure-python library for doing AES
encryption. It draws heavily on the popular crypto library, simplifying
AES encryption and decryption of files to a single function each.

Usage
-----

Simple usage follows this pattern:

.. code-block:: python

  import aespy
  encrypt_me = "my_transcript.pdf"
  output_file = easy-aes.encrypt_file(encrypt_me)

output_file is a string with the new file name.

WARNING: IF YOU FORGET YOUR PASSWORD AND DELETE
THE ORIGINAL DATA, YOUR FILE WILL NOT BE ABLE TO BE RETRIEVED!

.. code-block:: python

  import aespy
  encrypted_file = "my_encrypted_filename.aes"
  binary_data = easy-aes.decrypt_file(encrypted_file)
  with open('my_new_file.aaa','wb') as new_file:
    new_file.write(decrypted_data)

decrypt_file returns a Python object containing 
the now-decrypted data.

Installation
------------

aespy works Python 3.3+. To install it,
use:

.. code-block:: bash

    $ pip install aespy

0.1
~~~

Released on September 10, 2016
easyaes 0.123
An ultra-lightweight library to securely encrypt any file with AES.
License: MIT
Keywords: encryption,aes,encrypt,advanced encryption standard

easy-aes
========

easy-aes is an ultra-lightweight, pure-python library for doing AES
encryption. It draws heavily on the popular crypto library, simplifying
AES encryption and decryption of files to a single function each.

Usage
-----

Simple usage follows this pattern:

.. code-block:: python

  import easy-aes
  encrypt_me = "my_transcript.pdf"
  output_file = easy-aes.encrypt_file(encrypt_me)

output_file is a string with the new file name.

WARNING: IF YOU FORGET YOUR PASSWORD AND DELETE
THE ORIGINAL DATA, YOUR FILE WILL NOT BE ABLE TO BE RETRIEVED!

.. code-block:: python

  import easy-aes
  encrypted_file = "my_encrypted_filename.aes"
  binary_data = easy-aes.decrypt_file(encrypted_file)
  with open('my_new_file.aaa','wb') as new_file:
    new_file.write(decrypted_data)

decrypt_file returns a Python object containing 
the now-decrypted data.

Installation
------------

easy-aes works Python 3.3+. To install it,
use:

.. code-block:: bash

    $ pip install easy-aes

0.1
~~~

Released on September 10, 2016
easy-aes 0.122
An ultra-lightweight library to securely encrypt any file with AES.
License: MIT
Keywords: encryption,aes,encrypt,advanced encryption standard

easy-aes
========

easy-aes is an ultra-lightweight, pure-python library for doing AES
encryption. It draws heavily on the popular crypto library, simplifying
AES encryption and decryption of files to a single function each.

Usage
-----

Simple usage follows this pattern:

.. code-block:: python

  import easy-aes
  encrypt_me = "my_transcript.pdf"
  output_file = easy-aes.encrypt_file(encrypt_me)

output_file is a string with the new file name.

WARNING: IF YOU FORGET YOUR PASSWORD AND DELETE
THE ORIGINAL DATA, YOUR FILE WILL NOT BE ABLE TO BE RETRIEVED!

.. code-block:: python

  import easy-aes
  encrypted_file = "my_encrypted_filename.aes"
  binary_data = easy-aes.decrypt_file(encrypted_file)
  with open('my_new_file.aaa','wb') as new_file:
    new_file.write(decrypted_data)

decrypt_file returns a Python object containing 
the now-decrypted data.

Installation
------------

easy-aes works Python 3.3+. To install it,
use:

.. code-block:: bash

    $ pip install easy-aes

0.1
~~~

Released on September 10, 2016