Skip to content

Web Provider

Allows access to web resources such as http requests and opening a web browser to a url. Wraps functionality of python requests library.

Hooks

Type Description Return
http_delete Hook for Requests 'delete' type prompts.Link None
http_get Hook for Requests 'get' type prompts.Link dict
http_patch Hook for Requests 'patch' type prompts.Link None
http_post Hook for Requests 'post' type prompts.Link dict
http_put Hook for Requests 'put' type prompts.Link None
webbrowser Open a web browser. Wraps python's webbrowser module. None

Requirements

  • requests

Examples

webbrowser

Open a web browser. Wraps python's webbrowser module.

compact->: http_get https://httpbin.org/get

http_get

Make get request and store output in key

compact->: http_get https://httpbin.org/get

http_put

Make put request and store output in key

input_json:
  stuff: things

compact->: http_post https://httpbin.org/post --json input_json

expanded:
  ->: http_post
  url: https://httpbin.org/post
  json:
    stuff: things

http_post

Make post request and store output in key

input_json:
  stuff: things

compact->: http_post https://httpbin.org/post --json input_json

expanded:
  ->: http_post
  url: https://httpbin.org/post
  json:
    stuff: things

http_delete

Make delete request and store response code in key

compact->: http_delete https://httpbin.org/delete
expanded:
  ->: http_delete
  url: https://httpbin.org/delete

http_patch

Make patch request and store response code in key

input_json:
  stuff: things

compact->: http_patch https://httpbin.org/patch --json input_json

expanded:
  ->: http_patch
  url: https://httpbin.org/patch
  json:
    stuff: things