-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98f070a
commit 0aba5b1
Showing
5 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
version = "0.8.*" | ||
upstream_repository = "https://github.com/fredrik-corneliusson/click-web" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import types | ||
|
||
import click | ||
import flask | ||
import jinja2 | ||
|
||
jinja_env: jinja2.Environment | ||
|
||
def create_click_web_app(module: types.ModuleType, command: click.BaseCommand, root: str = "/") -> flask.Flask: ... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class ClickWebException(Exception): ... | ||
class CommandNotFound(ClickWebException): ... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import click | ||
|
||
class EmailParamType(click.ParamType): | ||
def convert(self, value: str, param: click.ParamType, ctx: click.Context) -> str: ... | ||
|
||
class PasswordParamType(click.ParamType): | ||
def convert(self, value: str, param: click.ParamType, ctx: click.Context) -> str: ... | ||
|
||
class TextAreaParamType(click.ParamType): | ||
def convert(self, value: str, param: click.ParamType, ctx: click.Context) -> str: ... | ||
|
||
EMAIL_TYPE: EmailParamType | ||
PASSWORD_TYPE: PasswordParamType | ||
TEXTAREA_TYPE: TextAreaParamType |