<commit_before>Hypercat.py
===========

A minimal library for working with Hypercat 3.0 catalogues.

Use cases
---------

Servers:

* Create an empty Hypercat catalogue
* Optionally, add metadata to describe it
* Optionally, add items to the catalogue

  * an item is either another catalogue or a resource

* Output it as JSON, either minimally or prettyprinted
* Find a specific part of a catalogue hierarchy

Clients:

* Load and validate a Hypercat

Example - Hypercat server
-------------------------
<commit_msg>Add link to hypercat.io website to readme<commit_after>Hypercat.py
===========

A minimal library for working with Hypercat 3.0 catalogues. For full details on
Hypercat please see: http://www.hypercat.io/standard.html

Use cases
---------

Servers:

* Create an empty Hypercat catalogue
* Optionally, add metadata to describe it
* Optionally, add items to the catalogue

  * an item is either another catalogue or a resource

* Output it as JSON, either minimally or prettyprinted
* Find a specific part of a catalogue hierarchy

Clients:

* Load and validate a Hypercat

Example - Hypercat server
-------------------------

{'fraction_non_alphanumeric': 0.11996497373029773, 'fraction_numerical': 0.0035026269702276708, 'mean_word_length': 3.2333333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '1583403', 'n_tokens_mistral': 320, 'n_tokens_neox': 290, 'n_words': 142}