Skip to main content

Python toolkit for working with Continuous Integration services.

Project description

Build Status

A Python library for working with Continuous Integration services. For Python 2.7 and 3.5+.


First, pip install

$ pip install ci-py

Available Methods

import ci

ci.is_ci()  # True/False
ci.is_pr()  # True/False  # "Travis CI"  # "38"
ci.repo()  # "grantmcconnaughey/"
ci.commit_sha()  # "246249bab34e78a020efc67b626efd6052e754d9"

CI Services works with the following CI services:

  • Travis CI
  • Circle CI
  • GitHub Actions
  • Drone CI
  • AppVeyor
  • Shippable
  • Semaphore
  • AWS CodeBuild
  • Azure DevOps

Running Tests

To run tests, install tox and run it from the command line:

> tox

This will run tests against all of the Python versions defined in tox.ini. Note that all of these versions of Python will need to be installed. You can use pyenv to install these different versions.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ci-py-1.0.0.tar.gz (4.9 kB view hashes)

Uploaded source

Built Distribution

ci_py-1.0.0-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page