skip to navigation
skip to content

python-coveralls 2.2.0

Python interface to API

Latest Version: 2.9.1

This package provides a module to interface with the API.


Using pip:

$ pip install python-coveralls

…Or simply add it to your requirements.


If you’re not using Travis, Coveralls for Python uses a .coveralls.yml file at the root level of your repository to configure options. The only required option is repo_token (found on your repository’s page on Coveralls) to specify which project on Coveralls your project maps to. Another important option is is service_name which allows you to specify where Coveralls should look to find additional information about your builds. This can be any string, but using travis-ci or travis-pro will allow Coveralls to fetch branch data, comment on pull requests, and more. A .coveralls.yml file configured for Travis Pro:

repo_token: abcdef1234569abdcef
service_name: travis-pro

if you don’t want the repo_token under source control, set it in your coveralls command:

COVERALLS_REPO_TOKEN=abcdef1234569abdcef coveralls


Create a .coverage file and you can use coverage, py-cov, or nose. The you can add in the _after_success_ step:


It should look like something like:

language: python
  - "2.6"
  - "2.7"
  - pip install -e . --use-mirrors
  - pip install -r test_requirements.txt --use-mirrors
  - git clone
  - cd python-coveralls-example
  - git checkout -qf 17b8119796516195527dcb4f454a2ebd41d60244
  - py.test example/ --cov=example
  - cd -
  - py.test coveralls/ --doctest-modules --pep8 coveralls -v --cov coveralls --cov-report term-missing
  - coveralls
File Type Py Version Uploaded on Size
python-coveralls-2.2.0.tar.gz (md5) Source 2013-06-13 5KB