Skip to main content

Continuous Integration Information

Project description

ci-info

PyPI version Build Status

A Python implementation of watson/ci-info. Get details about the current Continuous Integration environment.

Please open an issue if your CI server isn't properly detected :)

Supported CI tools

Officially supported CI servers:

Name isPR
Agola CI
Appcircle
AppVeyor
AWS CodeBuild
Azure Pipelines
Bamboo by Atlassian 🚫
Bitbucket Pipelines
Bitrise
Buddy
Buildkite
CircleCI
Cirrus CI
Cloudflare Pages 🚫
Cloudflare Workers 🚫
Codefresh
Codeship 🚫
Drone
dsari 🚫
Earthly CI 🚫
Expo Application Services 🚫
Gerrit CI 🚫
GitHub Actions
GitLab CI
Gitea Actions 🚫
GoCD 🚫
Google Cloud Build 🚫
Harness CI 🚫
Heroku 🚫
Hudson 🚫
Jenkins CI
LayerCI
Magnum CI 🚫
Netlify CI
Nevercode
Prow 🚫
ReleaseHub 🚫
Render
Sail CI
Screwdriver
Semaphore
Shippable
Solano CI
Sourcehut 🚫
Strider CD 🚫
TaskCluster 🚫
TeamCity by JetBrains 🚫
Travis CI
Vela
Vercel
Visual Studio App Center 🚫
Woodpecker

Installation

pip install ci-info

Usage

import ci_info
if ci_info.is_ci():
    print(ci_info.name())

"My CI Name"

API

ci_info.name()

Returns a string containing name of the CI server the code is running on. If CI server is not detected, it returns None.

Don't depend on the value of this string not to change for a specific vendor.

ci_info.is_ci()

Returns a boolean. Will be True if the code is running on a CI server, otherwise False.

Some CI servers not listed here might still trigger the ci_info.is_ci() boolean to be set to True if they use certain vendor neutral environment variables. In those cases ci_info.name() will be None and no vendor specific boolean will be set to True.

ci_info.is_pr()

Returns a boolean if PR detection is supported for the current CI server. Will be True if a PR is being tested, otherwise False. If PR detection is not supported for the current CI server, the value will be None.

ci_info.info()

Returns a dictionary of all above values in key/value pairs.

License

MIT

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_info-0.4.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ci_info-0.4.0-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ci_info-0.4.0.tar.gz.

File metadata

  • Download URL: ci_info-0.4.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ci_info-0.4.0.tar.gz
Algorithm Hash digest
SHA256 34d5a18726b3780abdf985234b871ac33124d64dd8e294870b8cc5b410c18418
MD5 03b6973e292b19a449ce095349028a3f
BLAKE2b-256 f1057880d5714b2e1c4c2f2ccbd04b2e2bdcd3753d91d5e925b3a91af25970db

See more details on using hashes here.

Provenance

The following attestation bundles were made for ci_info-0.4.0.tar.gz:

Publisher: test.yml on mgxd/ci-info

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ci_info-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: ci_info-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ci_info-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 204e8ef60cb70270eefb2b3035fe6acc78a186dbbcb02f8f4f051cb20a6fbb8d
MD5 7e3ae455bb131c7cfb0043c071bfd87e
BLAKE2b-256 12d527742bf24dde737fe05e6fba615d9aa1bf95f4dda258a45cf97eb403366e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ci_info-0.4.0-py2.py3-none-any.whl:

Publisher: test.yml on mgxd/ci-info

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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