Skip to content

Instantly share code, notes, and snippets.

@yui0
Created August 18, 2022 05:15
Show Gist options
  • Save yui0/a6cf92d9989a0a442671eb6ad558b46f to your computer and use it in GitHub Desktop.
Save yui0/a6cf92d9989a0a442671eb6ad558b46f to your computer and use it in GitHub Desktop.
template for python api
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys, json
result_json = {'key': 'value'}
print('Content-Type:application/json\n\n')
print(json.dumps(result_json))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment