<commit_before># plumbing-shannon-server

## To do:

* Documentation
* HTTP `POST` support
* Get from URL support
* Better config options
* A proper `setup.py` file<commit_msg>basic documentation<commit_after># plumbing-shannon-server

## Endpoints

	python ./flask/server.py -c server.cfg
	INFO:werkzeug: * Running on http://127.0.0.1:5000/

### /ping 

	curl 'http://localhost:5000/ping'
	{
		"stat": "ok"
	}

### /entropy

	# curl -X POST -F 'file=@/tmp/test.jpg' 'http://localhost:5000/entropy'

	curl 'http://localhost:5000/entropy?file=test.png'

	{
		"entropy": 9.386720101697886, 
	}

### /focalpoint

	# curl -X POST -F 'file=@/tmp/test.jpg' 'http://localhost:5000/focalpoint'

	curl 'http://localhost:5000/focalpoint?file=test.png'

	{
		"entropy": 9.386720101697886, 
		"h": 480, 
		"w": 640, 
		"x": 100, 
		"y": 180
	}

## Config

### http_pony

#### local_path_root

#### upload_path_root

#### allowed_extensions

## To do:

* Better documentation
* A proper `setup.py` file
{'fraction_non_alphanumeric': 0.17997977755308392, 'fraction_numerical': 0.07482305358948432, 'mean_word_length': 3.736842105263158, 'pattern_counts': {'":': 7, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6212447', 'n_tokens_mistral': 460, 'n_tokens_neox': 381, 'n_words': 78}