from nytapi import *

__version__ = "1.0.0"
__author__ = "Matt Morrison @MattDMo mattdmo@mattdmo.com"
__all__ = ["articleAPI"]

from search_api import *

__version__ = "1.0.0"
__author__ = "Matt Morrison (@MattDMo)"
__all__ = ["articleAPI"]

if __name__ == "__main__":
    print("This module cannot be run on its own. Please use by running ",
          "\"from NYTimesArticleAPI import articleAPI\"")
    exit(0)

Print message if module is run on its own
Print message if module is run on its own

- from nytapi import *
+ from search_api import *
  
  __version__ = "1.0.0"
- __author__ = "Matt Morrison @MattDMo mattdmo@mattdmo.com"
+ __author__ = "Matt Morrison (@MattDMo)"
  __all__ = ["articleAPI"]
  
+ if __name__ == "__main__":
+     print("This module cannot be run on its own. Please use by running ",
+           "\"from NYTimesArticleAPI import articleAPI\"")
+     exit(0)
+ 
Print message if module is run on its own
## Code Before:
from nytapi import *

__version__ = "1.0.0"
__author__ = "Matt Morrison @MattDMo mattdmo@mattdmo.com"
__all__ = ["articleAPI"]

## Instruction:
Print message if module is run on its own
## Code After:
from search_api import *

__version__ = "1.0.0"
__author__ = "Matt Morrison (@MattDMo)"
__all__ = ["articleAPI"]

if __name__ == "__main__":
    print("This module cannot be run on its own. Please use by running ",
          "\"from NYTimesArticleAPI import articleAPI\"")
    exit(0)
