Skip to content

Instantly share code, notes, and snippets.

View zhiweio's full-sized avatar
😊

Wang Zhiwei zhiweio

😊
View GitHub Profile
@zhiweio
zhiweio / supervisor_client.py
Created July 21, 2020 04:17 — forked from jalp/supervisor_client.py
Supervisor api client in Python
import xmlrpclib
class ProcessStatus(object):
RUNNING = 'RUNNING'
STOPPED = 'STOPPED'
FATAL = 'FATAL'
RESTARTING = 'RESTARTING'
SHUTDOWN = 'SHUTDOWN'
@zhiweio
zhiweio / header1.py
Last active June 17, 2019 08:11 — forked from arukavina/header1.py
Lazy C&P header
#!usr/bin/env python
# -*- coding: utf-8 -*-
"""
{Description}
{License_info}
"""
# Futures
from __future__ import print_function
@zhiweio
zhiweio / header1b.py
Created June 14, 2019 07:12 — forked from arukavina/header1b.py
Python Header Imports
# Futures
from __future__ import unicode_literals
from __future__ import print_function
# Generic/Built-in
import datetime
import argparse
# Other Libs
import youtube_dl