Skip to main content

Happenstance CLI — search your network and research individual people

Project description

happenstance

Command-line interface for the Happenstance API — search your network and research individual people.

Install

# pip
pip install happenstance

# pipx (recommended for CLI tools)
pipx install happenstance

# uv
uv tool install happenstance

Quick start

# Configure your API key (get one at https://happenstance.ai/settings/api)
hpn config set --api-key YOUR_API_KEY

# Search your network
hpn search "CISOs interested in AI in the SF Bay Area"

# Research a specific person
hpn research "Jane Smith, CTO at Acme Corp"

# Check your credit balance
hpn usage

Commands

Command Description
hpn config set --api-key KEY Save your API key
hpn config show Show saved API key (masked)
hpn search "query" Search your network
hpn search get ID Get search results
hpn search find-more ID Find additional results
hpn research "description" Research a person
hpn research get ID Get research results
hpn friends List your friends
hpn groups List your groups
hpn groups get ID Get group details
hpn usage Show credit balance

Configuration

The API key can be provided in three ways (in priority order):

  1. --api-key flag on any command
  2. HPN_API_KEY environment variable
  3. Config file at ~/.hpn/config.json (set via hpn config set)

All output is JSON and can be piped to jq for processing.

Documentation

Full API docs: https://developer.happenstance.ai

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

happenstance-0.1.0.tar.gz (47.3 kB view details)

Uploaded Source

Built Distribution

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

happenstance-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: happenstance-0.1.0.tar.gz
  • Upload date:
  • Size: 47.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for happenstance-0.1.0.tar.gz
Algorithm Hash digest
SHA256 75959a4df7c5752a3b18130e027b46afdc1ca60feeabce921495ca58e0abb197
MD5 ec89f9480a8da6de9105489d2a24adf4
BLAKE2b-256 af6fb730254b2c15499bf07a0e07355320d2e0e2eaa62f3f61af830ea666bb10

See more details on using hashes here.

Provenance

The following attestation bundles were made for happenstance-0.1.0.tar.gz:

Publisher: publish-hpn-cli.yml on happenstance-ai/happenstance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: happenstance-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for happenstance-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e134410c2ff8c154fb176aa502cc888823f6e46c637580174b2fc9dfdca4ba8d
MD5 73c3b1fbbea034aa7facbf833d76af37
BLAKE2b-256 206bd924977ccd6ed27c9a677bf24669bc04c03f82c58f18abeba1bf1fe42723

See more details on using hashes here.

Provenance

The following attestation bundles were made for happenstance-0.1.0-py3-none-any.whl:

Publisher: publish-hpn-cli.yml on happenstance-ai/happenstance

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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