Last active
May 27, 2019 08:20
-
-
Save inhzus/85633200d8f2fdabec66e23e78d6d085 to your computer and use it in GitHub Desktop.
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
import argparse | |
from . import user_service, doc_service, repo_service | |
parser = argparse.ArgumentParser() | |
# ... set argument | |
args = parser.parse_args() | |
print(getattr( | |
globals()[f'{args.sub}_service'], | |
getattr(args, args.sub)) | |
(**vars(args))) |
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
# -*- coding: utf-8 -*- | |
def update(id_, name, **_): | |
return f'{id_}, {name}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment