### Install Oblix SDK (Python) Source: https://github.com/oblix-ai/oblix-python/blob/main/README.md Installs the Oblix Python SDK using pip. This command downloads and installs the necessary packages for using the Oblix SDK on macOS. Ensure you have pip installed and are using a supported Python version. ```Python pip install oblix ``` -------------------------------- ### Install macmon via Homebrew Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Install macmon using Homebrew, a package manager for macOS. ```sh $ brew install macmon ``` -------------------------------- ### Install macmon from Source Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Steps to install macmon from source code, including cloning the repository, building, and running the executable. ```sh git clone https://github.com/vladkens/macmon.git && cd macmon ``` ```sh cargo run -r ``` ```sh sudo cp target/release/macmon /usr/local/bin ``` -------------------------------- ### macmon JSON Output Example Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Example of the JSON output format produced by the `macmon pipe` command. ```jsonc { "timestamp": "2025-02-24T20:38:15.427569+00:00", "temp": { "cpu_temp_avg": 43.73614, // Celsius "gpu_temp_avg": 36.95167 // Celsius }, "memory": { "ram_total": 25769803776, // Bytes "ram_usage": 20985479168, // Bytes "swap_total": 4294967296, // Bytes "swap_usage": 2602434560 // Bytes }, "ecpu_usage": [1181, 0.082656614], // (Frequency MHz, Usage %) "pcpu_usage": [1974, 0.015181795], // (Frequency MHz, Usage %) "gpu_usage": [461, 0.021497859], // (Frequency MHz, Usage %) "cpu_power": 0.20486385, // Watts "gpu_power": 0.017451683, // Watts "ane_power": 0.0, // Watts "all_power": 0.22231553, // Watts "sys_power": 5.876533, // Watts "ram_power": 0.11635789, // Watts "gpu_ram_power": 0.0009615385 // Watts (not sure what it means) } ``` -------------------------------- ### Install macmon via MacPorts Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Install macmon using MacPorts, another package manager for macOS. ```sh $ sudo port install macmon ``` -------------------------------- ### Install Oblix SDK with Specific Python Version Source: https://github.com/oblix-ai/oblix-python/blob/main/README.md Installs the Oblix SDK using pip, specifying a particular Python version. This command ensures the SDK is installed for the designated Python environment. Replace '3.11' with your desired Python version. ```Python python3.11 -m pip install oblix ``` -------------------------------- ### macmon Pipe Command Example Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Demonstrates how to use the pipe subcommand to output metrics in JSON format and pipe it to another tool. ```sh macmon pipe | jq ``` -------------------------------- ### macmon Usage Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Shows the basic usage of the macmon command with available options and commands. ```sh Usage: macmon [OPTIONS] [COMMAND] Commands: pipe Output metrics in JSON format debug Print debug information help Print this message or the help of the given subcommand(s) Options: -i, --interval Update interval in milliseconds [default: 1000] -h, --help Print help -V, --version Print version Controls: c - change color v - switch charts view: gauge / sparkline q - quit ``` -------------------------------- ### macmon Pipe Command with Parameters Source: https://github.com/oblix-ai/oblix-python/blob/main/oblix/agents/resource_monitor/darwin/macmon/readme.md Shows how to use the pipe subcommand with parameters to specify the number of samples and the update interval. ```sh macmon pipe -s 10 -i 500 | jq ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.