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.1.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.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ptedge_cli-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 18ac557dc354126a989cb7eca18061874154c285372238aa1c25b2f3b91a5d46
MD5 292feebe259d1c908a6723caac1d1c92
BLAKE2b-256 f3ee193ef6fb255be0cdaee6531660363704418ceab30ec3fa3cf4e57777b419

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ptedge_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ea0840c0fe9428fa1df464c5c27a4f12618804e1c6f958f409e0d852414cdda
MD5 e666ad1e5cf17caef4a2c29d9583acfe
BLAKE2b-256 5b7e273c869b9d88dc141d53ba5ec83dde02967f10c7624421d6ca8cd82f1f2a

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