<commit_before># tileserver

A lightweight tileserver to share code paths with tilequeue for tile generation.

## Installation

We recommend following the vector-datasource [installation instructions](https://github.com/tilezen/vector-datasource/wiki/Mapzen-Vector-Tile-Service).

There is a requirements file that can be used to install.

    pip install -Ur requirements.txt

Then:

    python setup.py develop
<commit_msg>Add more detailed install instructions<commit_after># tileserver

A lightweight tileserver to share code paths with tilequeue for tile generation.

## Installation

We recommend following the vector-datasource [installation instructions](https://github.com/tilezen/vector-datasource/wiki/Mapzen-Vector-Tile-Service).

There is a requirements file that can be used to install.

    pip install -Ur requirements.txt

Then:

    python setup.py develop

## Installation (detailed)

In addition to the dependencies in [requirements.txt](requirements.txt), tileserver requires

* PostgreSQL client-side development library and headers (for psycopg)
* GEOS library

These can be installed on Debian-based systems with
```
sudo apt-get install libpq-dev libgeos-c1v5
```

Then install the python requirements with

    pip install -Ur requirements.txt

Then:

    python setup.py develop

{'fraction_non_alphanumeric': 0.06891271056661562, 'fraction_numerical': 0.0015313935681470138, 'mean_word_length': 4.585470085470085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2666017', 'n_tokens_mistral': 364, 'n_tokens_neox': 337, 'n_words': 134}