<commit_before>optfn
=====

optfn uses introspection to make a Python function available as a command
line utility. It's syntactic sugar around optparse from the standard library.

Here's what the API looks like:

    import optfn<commit_msg>Updated readme with history<commit_after>optfn
=====

optfn uses introspection to make a Python function available as a command
line utility. It's syntactic sugar around optparse from the standard library.

optfn was built off of [simonw's optfunc](https://github.com/simonw/optfunc),
however they are incompatible with one another - optfn adds support for
varargs, and removes class-based sub-commands.

Here's what the API looks like:

    import optfn
{'fraction_non_alphanumeric': 0.0617816091954023, 'fraction_numerical': 0.0, 'mean_word_length': 4.808333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3883685', 'n_tokens_mistral': 195, 'n_tokens_neox': 182, 'n_words': 89}