<commit_before>go-mcaccutils-server
====================

go-mcaccutils-server is a server that exposes a REST API to fetch information about a minecraft account.

It supports fetching account details by name or UUID, although fetching a player by UUID is only supported when the player is already in the database. This is planned to be changed, but there's no easy way to go from a UUID to a username so until Mojang does something it's likely to stay as it is.

It also supports rate limiting by IP address.

Data is stored in a SQLite database, and it is also cached in memory to reduce disk operations.<commit_msg>Added usage instructions.<commit_after>go-mcaccutils-server
====================

go-mcaccutils-server is a server that exposes a REST API to fetch information about a minecraft account.

It supports fetching account details by name or UUID, although fetching a player by UUID is only supported when the player is already in the database. This is planned to be changed, but there's no easy way to go from a UUID to a username so until Mojang does something it's likely to stay as it is.

It also supports rate limiting by IP address.

Data is stored in a SQLite database, and it is also cached in memory to reduce disk operations.

For quick start:

    go get github.com/bearbin/go-mcaccutils-server; $GOPATH/bin/go-mcaccutils-server 

For available options:

    go-mcaccutils-server -h
{'fraction_non_alphanumeric': 0.06472261735419631, 'fraction_numerical': 0.0, 'mean_word_length': 4.269662921348314, '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': '7162087', 'n_tokens_mistral': 370, 'n_tokens_neox': 355, 'n_words': 213}