netlify-builds

A command line utility to check build usage across multiple Netlify accounts


Keywords
hacktoberfest
License
MIT
Install
pip install netlify-builds==1.1.2

Documentation

Netlify Builds

CI Status Test coverage percentage pre-commit.ci status

Poetry black pre-commit

PyPI Version Supported Python versions License


Source Code: https://github.com/browniebroke/netlify-builds


A command line utility to check build usage across multiple Netlify accounts

Installation

Recommended to install this via pipx:

pipx install netlify-builds

Setup

Create a .netlify-builds.json in your home directory with the following shape:

{
  "team-name-1": "access-token-1",
  "team-name-2": "access-token-2",
  ...
}

To obtain the token for each team, open a private browsing session and login to your team dashboard and copy it from the local storage, it should be located under the key nf-session.

DO NOT LOG OUT. Instead, simply close the private browsing session. If you log out, the token will be invalidated.

Profit

You're good to go, check all your accounts from the comfort of your terminal:

โžœ netlify-builds
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ Team              โ”ƒ     Mins โ”ƒ Start Date โ”ƒ End Date   โ”ƒ Elapsed โ”ƒ  Used โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ team-blue         โ”‚   5 mins โ”‚ 2020-11-16 โ”‚ 2020-12-16 โ”‚   11.6% โ”‚  1.7% โ”‚
โ”‚ team-red          โ”‚ 182 mins โ”‚ 2020-10-27 โ”‚ 2020-11-27 โ”‚   75.9% โ”‚ 60.7% โ”‚
โ”‚ team-green        โ”‚  46 mins โ”‚ 2020-11-02 โ”‚ 2020-12-02 โ”‚   58.3% โ”‚ 15.3% โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

If you're likely to exceed the free quota (300 mins) the rows will appear in red, otherwise in green.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Bruno Alla

๐Ÿ’ป ๐Ÿ“– ๐Ÿค”

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Cookiecutter and the browniebroke/cookiecutter-pypackage project template.