This file contains 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 python3 | |
import requests | |
import json | |
import argparse | |
PAGE_LENGTH = '50' | |
PR_STATE = 'OPEN' | |
This file contains 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 python3 | |
# OBJECTIVE | |
# 1. script should be able to pick up from where it left off, assume that state is saved extrenally in some datastore | |
# 2. order of execution of methods matters | |
class statefulDispatcherUsingChaining(): | |
def __init__(self, current_state=None): | |
self.current_state = "one" if not current_state else current_state |