Skip to main content

CLI for PT-Edge AI ecosystem intelligence — query 220K+ repos from your terminal

Project description

ptedge-cli

Query the AI open-source ecosystem from your terminal. Search 220,000+ repos, run SQL, explore domains — powered by PT-Edge.

Install

pip install ptedge-cli

Quick start

# What data is available?
ptedge status

# Browse the schema
ptedge tables
ptedge describe ai_repos

# Run a query
ptedge query "SELECT full_name, stars FROM ai_repos ORDER BY stars DESC LIMIT 10"

# Search by description
ptedge search "autonomous coding agent"

Commands

Command Description
ptedge status Table count, repo count, domains, last sync
ptedge tables List all database tables with row counts
ptedge describe <table> Column names, types, nullability
ptedge search-tables <keyword> Find tables by keyword
ptedge query "<SQL>" Run a read-only SELECT query (5s timeout)
ptedge workflows Pre-built SQL recipe templates
ptedge search "<query>" Semantic search across 220K+ AI repos
ptedge feedback "<topic>" "<text>" Submit feedback about the data
ptedge login Store your API key

Authentication

Works without a key (100 requests/day). For higher limits:

# Store a key
ptedge login

# Or use an environment variable
export PTEDGE_API_KEY=pte_your_key_here

# Or pass per-command
ptedge --key pte_xxx query "SELECT ..."

Get a free API key (1,000/day) at mcp.phasetransitions.ai/api/docs.

Output formats

# Default: aligned table
ptedge tables

# JSON (pipe to jq, use in scripts)
ptedge --format json query "SELECT domain, COUNT(*) FROM ai_repos GROUP BY domain"

For AI agents

If you're an AI agent in Claude Code, Cursor, or similar:

ptedge --help                    # discover the interface
ptedge --format json status      # structured output
ptedge --format json query "..." # pipe-friendly

Links

License

MIT

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

ptedge_cli-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

ptedge_cli-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file ptedge_cli-0.1.0.tar.gz.

File metadata

  • Download URL: ptedge_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ptedge_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 69428aee03bb49a4b193a070ead732f74c36057c40bbab32761f88723b5fa8de
MD5 772139fb11434c8b80677e8f28db29f9
BLAKE2b-256 91a0b3199413241ce4d290383a8d7e71baddd05f46b5e44f7eefea34391b71f8

See more details on using hashes here.

File details

Details for the file ptedge_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ptedge_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for ptedge_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8f7f7d3cd61ca81e9e729c1ede22cec72f948e4fe16f5f4e385918b27384e14
MD5 48f9c361137374146a5cad479bc05f73
BLAKE2b-256 53c58cf18428407f8771a7bc1c1df0eac69dad83e0a160222f07899d5ab8b322

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