Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overall Structure for classes and API #4

Open
jeffreyliu opened this issue Apr 27, 2017 · 0 comments
Open

Overall Structure for classes and API #4

jeffreyliu opened this issue Apr 27, 2017 · 0 comments

Comments

@jeffreyliu
Copy link
Member

Recipe proposed structure

classdef Recipe(url):

def run():
    context.getMeta(url) # gets metadata from context service
    payload = recipe.harvest()
    try:
        archiveDB.upload(payload) #upload call also runs validation tests
    except validationError:
        # User needs to fix the recipe so that it passes the tests

def harvest():
    # main function, must return a payload and associated metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant