<commit_before>.. progressive documentation master file, created by
   sphinx-quickstart on Sat Aug  1 01:36:56 2015.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to progressive's documentation!
=======================================

Contents:

.. toctree::
   :maxdepth: 2



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
<commit_msg>Update the documentation to have a nice index page<commit_after>.. progressive documentation master file, created by
   sphinx-quickstart on Sat Aug  1 01:36:56 2015.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to progressive's documentation!
=======================================

``progressive`` allows you to progress of complex (and simple) workflows
in your terminal.

If your aim is to draw progress bars, nested or otherwise, you've come
to the right place.

.. code-block:: python

   from progressive.bar import Bar

   bar = Bar(max_value=100)
   bar.cursor.clear_lines(2)  # Make some room
   bar.cursor.save()  # Mark starting line
   for i in range(101):
       sleep(0.1)  # Do some work
       bar.cursor.restore()  # Return cursor to start
       bar.draw(value=i)  # Draw the bar!

More examples are available in ``progressive.examples``!

.. image:: ../example.gif

.. literalinclude:: ../progressive/examples.py


API Reference
-------------

If you are looking for information on a specific function, class, or
method, this part of the documentation is for you.

.. toctree::
   :maxdepth: 2

   progressive
{'fraction_non_alphanumeric': 0.14618138424821003, 'fraction_numerical': 0.019689737470167064, 'mean_word_length': 3.697478991596639, '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': '2679119', 'n_tokens_mistral': 502, 'n_tokens_neox': 458, 'n_words': 192}