aws / aws/chalice

[Feature Request] Add option to use app factory pattern

Open
#1,587 0 comments 2 reactions 0 assignees View on GitHub
feature-request
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

As chalice mimicks flask api,it would be useful to provide the possibility of the module defining a `create_app` method instead of an `app` module attribute.

My use case is connecting to an sqs queue on app creation and creating an attribute on the app for easier access

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Chalice discovers the module-level `app` entry point and compare that flow with the requested `create_app` entry point. Check how application attributes and SQS setup would be available after creation. Done means an app factory can be used without breaking existing app-attribute projects, with tests covering both patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.