{"library":"trcli","type":"library","category":null,"description":"The ThoughtSpot Python CLI (trcli) is a utility that enables users to perform administrative tasks, such as managing users, groups, objects, and configurations, on a ThoughtSpot cluster programmatically. It is actively developed by ThoughtSpot, with version 1.14.0 being the latest stable release. Releases typically align with ThoughtSpot platform updates or are issued as needed for bug fixes and new features.","language":"python","status":"active","version":"1.14.0","tags":["cli","thoughtspot","admin","automation"],"last_verified":"Sun May 24","install":[{"cmd":"pip install trcli","imports":["import subprocess\nimport os\n\nts_url = os.environ.get('TS_URL', 'https://your_thoughtspot_instance.com')\nts_username = os.environ.get('TS_USERNAME', 'admin')\nts_password = os.environ.get('TS_PASSWORD', 'password')\n\n# Example: Get trcli version\ntry:\n    result = subprocess.run(\n        ['trcli', 'version'],\n        capture_output=True, text=True, check=True\n    )\n    print(result.stdout)\nexcept subprocess.CalledProcessError as e:\n    print(f\"Error running trcli: {e.stderr}\")\n\n# Example: Login (requires environment variables or --url/--username/--password)\ntry:\n    # Using environment variables is common, ensure they are set\n    # os.environ['TS_URL'] = ts_url\n    # os.environ['TS_USERNAME'] = ts_username\n    # os.environ['TS_PASSWORD'] = ts_password\n    # Note: For security, avoid hardcoding credentials. Use env vars or config.\n    \n    result = subprocess.run(\n        ['trcli', 'login', '--url', ts_url, '--username', ts_username, '--password', ts_password],\n        capture_output=True, text=True, check=True\n    )\n    print(\"Login successful:\", result.stdout)\nexcept subprocess.CalledProcessError as e:\n    print(f\"Login failed: {e.stderr}\")"]}],"homepage":"https://thoughtspot.com","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/trcli/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":6.9,"avg_import_s":0.01,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/trcli/compatibility"}}