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)
  • --headers_file: File containing headers to be used in the request (optional)
  • --cookies_file: File containing cookies to be used in the request (optional)

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)
  • --headers_file: File containing headers to be used in the request (optional)
  • --cookies_file: File containing cookies to be used in the request (optional)

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 Distribution

ttb_cli-0.4.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

ttb_cli-0.4-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file ttb_cli-0.4.tar.gz.

File metadata

  • Download URL: ttb_cli-0.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for ttb_cli-0.4.tar.gz
Algorithm Hash digest
SHA256 f527f7c06d6c284679454296a91a9bb0ca7a98ccd9aab4b4fee00fed65881f88
MD5 a215774435fcd2a12c5f28a2a3a8f23c
BLAKE2b-256 acabe97a1224b67c20d4bc8b04cea259c14f4b3099d976788ab067d4296236d9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ttb_cli-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f9070e3f25a62c213c5f8bde58ac766b5b9ac50fc2940861f92f65f9105d76ec
MD5 8be0d16e2425a8a846b0b40725553a32
BLAKE2b-256 03536f895a57d377e68a5b6121fd8bd7e22e8c83a940fe819e52074aa9bfe147

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