<commit_before>Tapioca-Toggl
=============

|gitter| |pypi| |pyversions| |license|

.. |gitter| image:: https://badges.gitter.im/Join%20Chat.svg
   :alt: Join the chat at https://gitter.im/hackebrot/tapioca-toggl
   :target: https://gitter.im/hackebrot/tapioca-toggl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

.. |pypi| image:: https://img.shields.io/pypi/v/tapioca-toggl.svg
   :target: https://pypi.python.org/pypi/tapioca-toggl
   :alt: PyPI Package

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/tapioca-toggl.svg
   :target: https://pypi.python.org/pypi/tapioca-toggl/
   :alt: PyPI Python Versions

.. |license| image:: https://img.shields.io/pypi/l/tapioca-toggl.svg
   :target: https://pypi.python.org/pypi/tapioca-toggl
   :alt: PyPI Package License

Python wrapper for `Toggl API v8`_

Installation
------------

**tapioca-toggl** is available for download from `PyPI`_ via `pip`_::

    $ pip install tapioca-toggl

.. _`pip`: https://pypi.python.org/pypi/pip/
.. _`PyPI`: https://pypi.python.org/pypi

Usage
-----

Create a new API instance using either ``access_token`` or ``user`` and ``password``.

Now you can simply send requests using the available endpoints as follows:

.. code-block:: python

    from tapioca_toggl import Toggl

    api = Toggl(access_token='{your-access-token}')

    me = api.me_with_related_data().get().data()

 
Feel free to consult `example.py`_ for a working example that creates time entries on www.toggl.com.

.. _`example.py`: https://github.com/hackebrot/tapioca-toggl/blob/master/example.py<commit_msg>Update readme to refer to correct example location<commit_after>Tapioca-Toggl
=============

|gitter| |pypi| |pyversions| |license|

.. |gitter| image:: https://badges.gitter.im/Join%20Chat.svg
   :alt: Join the chat at https://gitter.im/hackebrot/tapioca-toggl
   :target: https://gitter.im/hackebrot/tapioca-toggl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

.. |pypi| image:: https://img.shields.io/pypi/v/tapioca-toggl.svg
   :target: https://pypi.python.org/pypi/tapioca-toggl
   :alt: PyPI Package

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/tapioca-toggl.svg
   :target: https://pypi.python.org/pypi/tapioca-toggl/
   :alt: PyPI Python Versions

.. |license| image:: https://img.shields.io/pypi/l/tapioca-toggl.svg
   :target: https://pypi.python.org/pypi/tapioca-toggl
   :alt: PyPI Package License

Python wrapper for `Toggl API v8`_

Installation
------------

**tapioca-toggl** is available for download from `PyPI`_ via `pip`_::

    $ pip install tapioca-toggl

.. _`pip`: https://pypi.python.org/pypi/pip/
.. _`PyPI`: https://pypi.python.org/pypi

Usage
-----

Create a new API instance using either ``access_token`` or ``user`` and ``password``.

Now you can simply send requests using the available endpoints as follows:

.. code-block:: python

    from tapioca_toggl import Toggl

    api = Toggl(access_token='{your-access-token}')

    me = api.me_with_related_data().get().data()

 
Feel free to consult `this example script`_ for a working example that creates time entries on www.toggl.com.

.. _`this example script`: https://github.com/hackebrot/tapioca-toggl/blob/master/examples/foobar.py
{'fraction_non_alphanumeric': 0.16437098255280075, 'fraction_numerical': 0.0018365472910927456, 'mean_word_length': 3.884902840059791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1237826', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1231, 'n_words': 244}