<commit_before>============
Installation
============

Debian / Ubuntu: native package
===============================

If you run Debian 7 or Ubuntu 14.04 LTS, you can use `exoscale`_'s `community
repository`_ which provides a self-contained build of graphite-api.

.. _exoscale: https://www.exoscale.ch
.. _community repository: https://packagecloud.io/exoscale/community

First, add packagecloud's APT key::

    curl https://packagecloud.io/gpg.key | sudo apt-key add -

Then, create ``/etc/apt/sources.list.d/exoscale_community.list`` with the
following content.

On Debian (Wheezy)::

    deb https://packagecloud.io/exoscale/community/debian/ wheezy main

On Ubuntu (14.04 LTS)::

    deb https://packagecloud.io/exoscale/community/ubuntu/ trusty main

Then run::

    sudo apt-get install apt-transport-https
    sudo apt-get update
    sudo apt-get install graphite-api

Graphite-api should be running as a service and available on port 8888. The
package contains all the :ref:`optional dependencies <extras>`.

Python package
==============

Prerequisites
-------------

Installing Graphite-API requires:

* Python 2 (2.6 and above) or 3 (3.3 and above), with development files. On
  debian/ubuntu, you'll want to install ``python-dev``.

* ``gcc``. On debian/ubuntu, install ``build-essential``.<commit_msg>Update installation instructions<commit_after>============
Installation
============

Debian / Ubuntu: native package
===============================

If you run Debian 8 or Ubuntu 14.04 LTS, you can use one of the available
packages which provides a self-contained build of graphite-api. Builds are
available on the `releases`_ page.

.. _releases: https://github.com/brutasse/graphite-api/releases

Once installed, Graphite-api should be running as a service and available on
port 8888. The package contains all the :ref:`optional dependencies <extras>`.

Python package
==============

Prerequisites
-------------

Installing Graphite-API requires:

* Python 2 (2.6 and above) or 3 (3.3 and above), with development files. On
  debian/ubuntu, you'll want to install ``python-dev``.

* ``gcc``. On debian/ubuntu, install ``build-essential``.
{'fraction_non_alphanumeric': 0.16936603424340582, 'fraction_numerical': 0.015733456732993985, 'mean_word_length': 4.159904534606206, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '3179292', 'n_tokens_mistral': 707, 'n_tokens_neox': 609, 'n_words': 222}