<commit_before>************
Python Utils
************

This repository contains multiple small projects each of which may have an
individual pip install associated with it. I see no reason to create different
repositories for each one though different pip installs may be useful.

Current Projects
================

mimeparser
----------

This tool would be used to parse HTTP headers to derive the 'best fit' mime
type. It handles suffix and quality parsing and can be used to find the best
match from an `Accept` header from a list of available mime types.

xml2dict
--------

This tool will parse any XML document into a dict. The dict becomes very
verbose since it will indicate any attributes, elements and namespaces used
in the XML document.

<commit_msg>Updated the README.<commit_after>************
Python Utils
************

This repository contains multiple small projects each of which can be used
separately.

This would be a great package to use when creating your own custom Django
REST Framework renderers and parsers based on a custom MIME types.

Current Projects
================

mimeparser
----------

This tool would be used to parse HTTP headers to derive the 'best fit' mime
type. It handles suffix and quality parsing and can be used to find the best
match from an `Accept` header from a list of available mime types.

xml2dict
--------

This tool should be able to parse any XML document into Python objects. The
output will become very verbose since it will include all attributes,
elements and namespaces found in the XML document.

{'fraction_non_alphanumeric': 0.09294871794871795, 'fraction_numerical': 0.001282051282051282, 'mean_word_length': 4.068181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7000410', 'n_tokens_mistral': 371, 'n_tokens_neox': 359, 'n_words': 236}