This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# A python reimplementation of the `curl` command, with a twist: command line | |
# arguments can be passed in via stdin. This is useful for passing in secret | |
# tokens that many web APIs require. Rationale: passing secrets via a pipe is | |
# considered better than passing via command line. It's possible for other | |
# applications to see the entire command line, secrets and all! Oops! So, don't | |
# do it! | |
# | |
# "Whoami" example with digitalocean: |