Hypothesis + Steampipe
Hypothesis is a web annnotation system.
Steampipe is an open source CLI to instantly query cloud APIs using SQL.
List annotations on www.example.com
, with at least one tag, by a user other than judell
:
select username, tagsfrom hypothesis_searchwhere query = 'uri=https://www.example.com' and jsonb_array_length(tags) > 0 and username !~ 'judell'
+----------+--------------------------------------------------------------+| username | tags |+----------+--------------------------------------------------------------+| ryany25 | ["asdf;","asdfaasdf"] || ryany25 | ["T-cell acute lymphoblastic leukemia-associated antigen 1"] || robins80 | ["rikersierra1"] || robins80 | ["HypothesisTest","3219099"] || robins80 | ["HypothesisTest","3219099"] |+----------+--------------------------------------------------------------+
Documentation
Get started
Install
Download and install the latest Hypothesis plugin:
steampipe plugin install hypothesis
Credentials
Item | Description |
---|---|
Credentials | Get your API token from the Hypothesis service (you must be logged in to Hypothesis to view this page). The token is optional. Without it, you can still query the Hypothesis public layer. |
Configuration
Installing the latest hypothesis plugin will create a config file (~/.steampipe/config/hypothesis.spc
) with a single connection named hypothesis
:
If you are a Hypothesis user wanting to query your own private notes, or notes in private groups you belong to, then uncomment #token
and provide your API token.
connection "hypothesis" { plugin = "hypothesis" #token = "6879-35....3df5"}
Get involved
- Open source: https://github.com/turbot/steampipe-plugin-hypothesis
- Community: Slack Channel