<commit_before># task-tracker: Python
This is a Python implementation of the API.

It runs on Bottle and uses a SQLite database as the back-end.

## Setup
Run `python setup.py` to create and set up the database. That creates
a `data.db` file in the `db/` subdirectory.

## Running the server
There are two steps to run the server. The first is `python server.py`. This starts
the Bottle server on its default port.

The second step is optional. It involves my fork of
[localtunnel](https://github.com/snay2/localtunnel), which allows you to expose the
locally-running server outside your network.
Run `./tunnel.rb` from the command line. The script takes two arguments: the port 
and (optionally) the URL that should be pinged to notified when the tunnel is created.
I use this to notify a Kynetx app that the server is running and where to find it.

You can change the port the Bottle server runs on by editing the configuration
at the bottom of the `server.py` source.
<commit_msg>Updated Python readme<commit_after># task-tracker: Python
This is a Python implementation of the API.

It runs on Bottle and uses a SQLite database as the back-end.

## Setup
Run `python setup.py` to create and set up the database. That creates
a `data.db` file in the `db/` subdirectory.

## Running the server
To start the server, run `python server.py`. This starts the Bottle server on its
default port.

You can change the port the Bottle server runs on by editing the configuration
at the bottom of the `server.py` source.

{'fraction_non_alphanumeric': 0.061507936507936505, 'fraction_numerical': 0.0006613756613756613, 'mean_word_length': 4.043333333333333, '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': '733622', 'n_tokens_mistral': 424, 'n_tokens_neox': 415, 'n_words': 242}