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

load application from factory function #2178

Merged
merged 3 commits into from
Nov 19, 2019
Merged

load application from factory function #2178

merged 3 commits into from
Nov 19, 2019

Commits on Nov 17, 2019

  1. load application from factory function

    Use `ast.parse` to validate that the string passed to the CLI is either
    an attribute name or a function call. Use `ast.literal_eval` to parse
    any positional and keyword arguments to the function. Call the function
    to get the real application.
    
    Co-authored-by: Connor Brinton <connor.brinton@gmail.com>
    davidism and connorbrinton committed Nov 17, 2019
    Configuration menu
    Copy the full SHA
    1518b57 View commit details
    Browse the repository at this point in the history
  2. document app factory pattern

    davidism committed Nov 17, 2019
    Configuration menu
    Copy the full SHA
    b1c01dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2786775 View commit details
    Browse the repository at this point in the history