Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ci-py

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-py

Python toolkit for working with Continuous Integration services.

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

ci.py

Build Status

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

Usage

First, pip install ci.py:

$ pip install ci-py

Available Methods

import ci

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

CI Services

ci.py 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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc