Skip to main content

No project description provided

Project description

TToolbox CLI

This is a CLI tool for managing scripts and other tools for performance metrics and other automated tasks.

Installation

pip install ttb-cli

Usage

Config file

Create a .tt.config.yml file in your home directory with the following structure:

chrome_executable_path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
max_browser_instances: 5
tmp_dir: /Users/marko/.tmp

Running commands:

ttb <command> <arguments>

Aliases:

  • ttb
  • tammtoolbox

Commands

performance

Run performance metrics for given URLs.

ttb performance <arguments>

Arguments:

  • --url: List of URLs to test (required, can be specified multiple times)
  • --output: Output file for performance metrics (required)
  • --iterations: Number of iterations per URL (default: 10)
  • --headless: Run headless browser (optional flag)
  • --concurrent: Run tests concurrently (optional flag)

Example:

ttb performance --url https://tamm.abudhabi --url https://doh.gov.ae --iterations 5 --output metrics_report.csv --headless --concurrent

lighthouse

Prerequisites: npm install -g lighthouse

Run Lighthouse report for given URLs.

ttb lighthouse <arguments>

Arguments:

  • --url: List of URLs to test (required, can be specified multiple times)
  • --output: Output file for Lighthouse report (required)
  • --headless: Run headless browser (optional flag)
  • --concurrent: Run tests concurrently (optional flag)
  • --preset: Lighthouse preset (desktop or mobile, default: desktop)

Example:

ttb lighthouse --url https://tamm.abudhabi --url https://www.tamm.abudhabi/en/contact --output lighthouse_report.csv --headless --concurrent --preset mobile

These commands allow you to run performance metrics and Lighthouse reports on specified URLs, with options for headless browsing, concurrent execution, and customizable settings.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ttb_cli-0.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file ttb_cli-0.1-py3-none-any.whl.

File metadata

  • Download URL: ttb_cli-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for ttb_cli-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7d04a9ad52ec89d35a36a8503fa43df46b6dbdd29e5b79ce9401bbcc0abefb
MD5 fa32f9ea50c123324b5f0d09cf5b4431
BLAKE2b-256 512c98d9f90ff454574d6ecb9cb01d8acb03dfd71145912b7f24ea0c0f2b210d

See more details on using hashes here.

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