<commit_before>=====
Snake
=====

Snake is yet another Make-like tool, written on Python and inspired by Rake.


Usage Example
=============

In a directory with ``snakefile.py`` containing such code::

    def hello():
        print("Hello World!")

one could run::

    $ snake hello
    Hello World!<commit_msg>Improve README<commit_after>=====
Snake
=====

Snake is yet another Make-like tool, written on Python and inspired by Rake.


Usage Example
=============

In a directory with ``snakefile.py`` (or in any sub-directory) containing such code::

    from snake import depends_on, sh

    @depends_on('virtualenv', 'install')
    def init():
        print("Activate your virtualenv with:")
        print("  $ source bin/activate")

    def virtualenv():
        sh('virtualenv -q --no-site-packages .')

    def install():
        sh('bin/pip -q install -e .')

run::

    $ snake init
    (in /Users/yumike/Projects/Snake)
    [sh] virtualenv -q --no-site-packages .
    [sh] bin/pip -q install -e .
    Activate your virtualenv with:
      $ source bin/activate
{'fraction_non_alphanumeric': 0.14925373134328357, 'fraction_numerical': 0.0, 'mean_word_length': 2.93040293040293, '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': '6142484', 'n_tokens_mistral': 342, 'n_tokens_neox': 320, 'n_words': 112}