Skip to content

requires/api

Repository files navigation

Requires.io API

Requirements Status

Installation

To install, simply:

$ pip install requires.io

Usage

Create or update a repository:

$ requires.io update-repo -t MY_TOKEN -r MY_REPO (--public | --private)

Create or update a branch:

$ requires.io update-branch -t MY_TOKEN -r MY_REPO -n MY_BRANCH /path/to/my/sources

Create or update a tag:

$ requires.io update-tag -t MY_TOKEN -r MY_REPO -n MY_TAG /path/to/my/sources

Monitor a site:

  • freeze the current environment with pip
  • hostname is the default site name
$ requires.io update-site -t MY_TOKEN -r MY_REPO

Delete repositories, branches, tags and sites:

$ requires.io delete-repo -t MY_TOKEN -r MY_REPO
$ requires.io delete-branch -t MY_TOKEN -r MY_REPO -n MY_BRANCH
$ requires.io delete-tag -t MY_TOKEN -r MY_REPO -n MY_TAG
$ requires.io delete-site -t MY_TOKEN -r MY_REPO -n MY_SITE