<commit_before>===============================
whichcraft
===============================

.. image:: https://badge.fury.io/py/whichcraft.png
    :target: http://badge.fury.io/py/whichcraft

.. image:: https://travis-ci.org/pydanny/whichcraft.png?branch=master
        :target: https://travis-ci.org/pydanny/whichcraft

::

    That code in my care
    That sly command-line stare
    That strips my operating system bare
    It's whichcraft

This package provides cross-platform cross-python ``shutil.which`` functionality.

Usage
=====

On Linux, Mac, Windows for Python 2.6, 2.7, or any of the 3s:

.. code-block:: python

    >>> from whichcraft import which
    >>> which('date')
    '/bin/date'
    >>> which('calendar')
    '/bin/calendar'
    >>> which('cookiecutter')
    '/Users/pydanny/.envs/fun/bin/cookiecutter'
    >>> which('a-made-up-name') is None
    True


Notes
=====<commit_msg>Added codecov badge<commit_after>===============================
whichcraft
===============================

.. image:: https://badge.fury.io/py/whichcraft.png
    :target: http://badge.fury.io/py/whichcraft

.. image:: https://travis-ci.org/pydanny/whichcraft.png?branch=master
        :target: https://travis-ci.org/pydanny/whichcraft
        
.. image:: http://codecov.io/github/pydanny/whichcraft/coverage.svg?branch=master :target: http://codecov.io/github/pydanny/whichcraft?branch=master

::

    That code in my care
    That sly command-line stare
    That strips my operating system bare
    It's whichcraft

This package provides cross-platform cross-python ``shutil.which`` functionality.

Usage
=====

On Linux, Mac, Windows for Python 2.6, 2.7, or any of the 3s:

.. code-block:: python

    >>> from whichcraft import which
    >>> which('date')
    '/bin/date'
    >>> which('calendar')
    '/bin/calendar'
    >>> which('cookiecutter')
    '/Users/pydanny/.envs/fun/bin/cookiecutter'
    >>> which('a-made-up-name') is None
    True


Notes
=====
{'fraction_non_alphanumeric': 0.21100917431192662, 'fraction_numerical': 0.0050968399592252805, 'mean_word_length': 3.4311512415349887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, 'https://': 6, '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': '4059108', 'n_tokens_mistral': 643, 'n_tokens_neox': 619, 'n_words': 136}