-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from lcdunne/develop
Develop
- Loading branch information
Showing
24 changed files
with
1,413 additions
and
451 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
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,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = . | ||
BUILDDIR = _build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
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,15 @@ | ||
API | ||
=== | ||
|
||
|
||
Decorator Functions | ||
------------------- | ||
|
||
.. automodule:: flask_reqcheck.decorators | ||
:members: | ||
|
||
Validated Request Data | ||
---------------------- | ||
|
||
.. automodule:: flask_reqcheck.valid_request | ||
:members: |
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,47 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
project = "Flask-Reqcheck" | ||
copyright = "2024, Lewis Dunne" | ||
author = "Lewis Dunne" | ||
|
||
# -- General configuration --------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | ||
|
||
extensions = [ | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.todo", | ||
"sphinx.ext.viewcode", | ||
# "pallets_sphinx_themes", | ||
"numpydoc", | ||
] | ||
numpydoc_show_class_members = False | ||
|
||
templates_path = ["_templates"] | ||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = "alabaster" | ||
html_theme_options = { | ||
"github_user": "lcdunne", | ||
"github_repo": "flask-reqcheck", | ||
"github_banner": True, | ||
"github_button": True, | ||
"github_type": "star", | ||
"fixed_sidebar": True, | ||
} | ||
|
||
html_static_path = ["_static"] | ||
|
||
# -- Options for todo extension ---------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration | ||
|
||
todo_include_todos = True |
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,37 @@ | ||
flask\_reqcheck package | ||
======================= | ||
|
||
Submodules | ||
---------- | ||
|
||
flask\_reqcheck.decorators module | ||
--------------------------------- | ||
|
||
.. automodule:: flask_reqcheck.decorators | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
flask\_reqcheck.request\_validation module | ||
------------------------------------------ | ||
|
||
.. automodule:: flask_reqcheck.request_validation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
flask\_reqcheck.valid\_request module | ||
------------------------------------- | ||
|
||
.. automodule:: flask_reqcheck.valid_request | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: flask_reqcheck | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,36 @@ | ||
.. Flask-Reqcheck documentation master file, created by | ||
sphinx-quickstart on Sat Aug 31 16:30:49 2024. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
============== | ||
Flask-Reqcheck | ||
============== | ||
|
||
**Flask-Reqcheck** lets you validate requests in your Flask applications. With a simple | ||
decorator and some `Pydantic <https://docs.pydantic.dev/latest/>`_ models, you can quickly | ||
validate incoming request bodies, query parameters, and url path parameters, reducing | ||
boilerplate code and minimizing errors. | ||
|
||
Installation | ||
============ | ||
|
||
Install it like most others, using ``pip``:: | ||
|
||
pip install flask-reqcheck | ||
|
||
Guide | ||
----- | ||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
usage | ||
|
||
|
||
API Reference | ||
------------- | ||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
api | ||
|
Oops, something went wrong.