<commit_before>redispipeline
=============

Non blocking pipelined python client for redis.

Usage example
-------------

.. code-block:: python

    r = redis_parser.RedisPipeline(pipeline_depth = 3)
    r.set('x',1)
    r.get('x')
    r.set('y',2)
    r.get('y') # This will block until we get the response from 'set x 1' because it's the 4th command and pipeline_depth is 3
    print r.gerResponse() # Print 'OK' (we know there's at least one response received because we blocked in previous command)
    print r.getResponse() # Print '1' (or None if no response received yet)
    r.sendCmd('PING') # I don't support all redis commands yet, but with sendCmd you can call whatever you want<commit_msg>readme cleanups<commit_after>redispipeline
=============

Non blocking pipelined python client for redis.

Usage example
-------------

.. code-block:: python

    import redispipeline
    r = redispipeline.RedisPipeline(pipeline_depth = 3)
    r.set('x',1)
    r.get('x')
    r.set('y',2)
    r.get('y') # This will block until we get the response from 'set x 1' because it's the 4th command and pipeline_depth is 3
    print r.gerResponse() # Print 'OK' (we know there's at least one response received because we blocked in previous command)
    print r.getResponse() # Print '1' (or None if no response received yet)
    r.sendCmd('PING') # I don't support all redis commands yet, but with sendCmd you can call whatever you want
{'fraction_non_alphanumeric': 0.12691771269177127, 'fraction_numerical': 0.009762900976290097, 'mean_word_length': 3.5125786163522013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3765982', 'n_tokens_mistral': 439, 'n_tokens_neox': 420, 'n_words': 174}