Skip to main content

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

Project description

Netlify Builds

CI Status Test coverage percentage pre-commit.ci status

uv Ruff 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 uv:

uv tool 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.

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

netlify_builds-1.4.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

netlify_builds-1.4.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file netlify_builds-1.4.0.tar.gz.

File metadata

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

File hashes

Hashes for netlify_builds-1.4.0.tar.gz
Algorithm Hash digest
SHA256 fea7d26046254e8c05317cc51d03dfaeba7874aca669b3d9e9af8b7deab4eddd
MD5 026a4dbcf1ad494703fd2f9e666a5654
BLAKE2b-256 e3a37baf41cea0a97a5272a02f8374654caa89222e3a9d3ab1856ea12d6564ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for netlify_builds-1.4.0.tar.gz:

Publisher: ci.yml on browniebroke/netlify-builds

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

File details

Details for the file netlify_builds-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: netlify_builds-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for netlify_builds-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5cdfc8fa36b06bae4fa9a6b6fb1013e07d26f0e36e7a6244b143d0185c7dcdd
MD5 65fdad1e53b0a405702b94cece7730a7
BLAKE2b-256 d5a2d3a04d236f937fbb1133684c88aecd8edd664c26e4f3f8a0fbf207604223

See more details on using hashes here.

Provenance

The following attestation bundles were made for netlify_builds-1.4.0-py3-none-any.whl:

Publisher: ci.yml on browniebroke/netlify-builds

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