This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# /// script | |
# requires-python = ">=3.8" | |
# dependencies = [ | |
# "click>=8.0", | |
# "rich>=13.0", | |
# ] | |
# /// | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# /// script | |
# requires-python = ">=3.8" | |
# dependencies = [ | |
# "rich>=13.7.0", | |
# "questionary>=2.0.1", | |
# ] | |
# /// | |
""" |
Generated by /bruno-api bruno/analytics/user_metrics.bru
GET
/api/v2/companies/{company_id}/user-metrics/
🔐 Authentication: JWT Bearer Token Required
👮 Permissions: IsAuthenticated + CompanyMember
🏢 Multi-tenant: Company-scoped data access
⚡ Rate Limit: 100 requests/minute per company
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meta { | |
name: User Metrics | |
type: http | |
seq: 1 | |
} | |
get { | |
url: {{BASE_URL}}/api/v2/companies/{{COMPANY_ID}}/user-metrics/ | |
body: none | |
auth: bearer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# /// script | |
# dependencies = [] | |
# /// | |
""" | |
Bruno environment file validator. | |
Validates .bru files for correct Bruno API client format. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command -v uv >/dev/null 2>&1 && { | |
auto_uv_env() { | |
# Early exit for performance - check if we're in a Python project | |
if [[ -f "pyproject.toml" ]]; then | |
local py_version="" | |
# Parse Python version requirement from common pyproject.toml patterns | |
# Supports: requires-python = ">=3.11", python_requires = ">=3.11.5", etc. | |
if grep -q "requires-python" pyproject.toml; then | |
py_version=$(grep "requires-python" pyproject.toml | sed -E 's/.*[">]=?([0-9]+\.[0-9]+(\.[0-9]+)?).*/\1/' | head -1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Claude Code notifications hook for macOS using jq | |
# Reads JSON from stdin, plays a sound, and displays macOS alert | |
# | |
# Environment variables: | |
# CLAUDE_ALERT_SOUND - Sound name (default: Glass) | |
# Options: Basso, Blow, Bottle, Frog, Funk, Glass, | |
# Hero, Morse, Ping, Pop, Purr, Sosumi, | |
# Submarine, Tink |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /// script | |
# requires-python = ">=3.11" | |
# dependencies = [ | |
# "requests<3", | |
# "rich", | |
# ] | |
# /// | |
import time | |
import statistics |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download Airtable's API response retrieved from browser console as CSV | |
import csv | |
import sys | |
import json | |
file_path = sys.argv[1] | |
with open(file_path) as f_in, open("airtable.csv", "w") as f_out: | |
data = json.load(f_in) |
NewerOlder