spiderweb-framework 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/PKG-INFO +16 -3
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/README.md +15 -2
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/quickstart.md +2 -2
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/pyproject.toml +1 -1
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/.gitignore +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/.junie/guidelines.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/LICENSE.txt +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/conftest.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/.nojekyll +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/README.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_coverpage.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/DMSans-Bold.ttf +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/DMSans-Medium.ttf +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/Favicon-32x32.png +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/favicon.png +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/spiderweb_logo.png +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/spiderweb_logo_cleaned.png +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/spiderweb_logo_cropped.png +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_sidebar.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/db.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/example.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/index.html +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/cors.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/csrf.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/custom_middleware.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/gzip.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/overview.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/pydantic.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/sessions.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/responses.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/routes.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/static_files.md +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/example.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/example2.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/example_middleware.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/poetry.lock +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/__init__.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/constants.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/converters.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/db.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/decorators.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/default_views.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/example_validator.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/exceptions.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/jinja_core.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/jinja_extensions.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/local_server.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/main.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/__init__.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/base.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/cors.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/csrf.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/gzip.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/pydantic.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/middleware/sessions.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/request.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/response.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/routes.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/secrets.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/server_checks.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/__init__.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/helpers.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/middleware.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/staticfiles/.gitkeep +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/staticfiles/file_for_testing_fileresponse.txt +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/staticfiles/style.css +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test.html +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_cookies.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_jinja_extras.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_middleware.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_responses.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_server.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_variable_urls.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/views_for_tests.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/utils.py +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb.db +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/static_files/aaaaaa.gif +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/templates/base.html +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/templates/form.html +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/templates/test.html +0 -0
- {spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: spiderweb-framework
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: A small web framework, just big enough for a spider.
|
|
5
5
|
Project-URL: Homepage, https://github.com/itsthejoker/spiderweb
|
|
6
6
|
Project-URL: Documentation, https://github.com/itsthejoker/spiderweb
|
|
@@ -49,7 +49,9 @@ So I built one.
|
|
|
49
49
|
`spiderweb` is a small web framework, just big enough to hold a spider. Getting started is easy:
|
|
50
50
|
|
|
51
51
|
```shell
|
|
52
|
-
|
|
52
|
+
uv add spiderweb-framework
|
|
53
|
+
# or
|
|
54
|
+
pip install spiderweb-framework
|
|
53
55
|
```
|
|
54
56
|
|
|
55
57
|
Create a new file and drop this in it:
|
|
@@ -70,6 +72,17 @@ if __name__ == "__main__":
|
|
|
70
72
|
|
|
71
73
|
## [View the docs here!](https://itsthejoker.github.io/spiderweb/#/)
|
|
72
74
|
|
|
75
|
+
### Development (using uv)
|
|
76
|
+
|
|
77
|
+
This repository uses uv for local development and testing.
|
|
78
|
+
|
|
79
|
+
- Create a virtual environment: `uv venv`
|
|
80
|
+
- Activate it (Windows): `.venv\Scripts\activate`
|
|
81
|
+
- Activate it (POSIX): `source .venv/bin/activate`
|
|
82
|
+
- Install deps (editable + dev): `uv pip install -e .[dev]`
|
|
83
|
+
- Run tests: `uv run python -m pytest`
|
|
84
|
+
- Lint/format: `uv run ruff check .` and `uv run black .`
|
|
85
|
+
|
|
73
86
|
My goal with this framework was to do three things:
|
|
74
87
|
|
|
75
88
|
1. Learn a lot
|
|
@@ -95,5 +108,5 @@ And, honestly, I think I got there. Here's a non-exhaustive list of things this
|
|
|
95
108
|
- CORS middleware
|
|
96
109
|
- Optional POST data validation middleware with Pydantic
|
|
97
110
|
- Session middleware with built-in session store
|
|
98
|
-
- Database support (using
|
|
111
|
+
- Database support (using SQLAlchemy, but you can use whatever you want as long as there's a SQLAlchemy driver for it)
|
|
99
112
|
- Tests (currently roughly 89% coverage)
|
|
@@ -22,7 +22,9 @@ So I built one.
|
|
|
22
22
|
`spiderweb` is a small web framework, just big enough to hold a spider. Getting started is easy:
|
|
23
23
|
|
|
24
24
|
```shell
|
|
25
|
-
|
|
25
|
+
uv add spiderweb-framework
|
|
26
|
+
# or
|
|
27
|
+
pip install spiderweb-framework
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
Create a new file and drop this in it:
|
|
@@ -43,6 +45,17 @@ if __name__ == "__main__":
|
|
|
43
45
|
|
|
44
46
|
## [View the docs here!](https://itsthejoker.github.io/spiderweb/#/)
|
|
45
47
|
|
|
48
|
+
### Development (using uv)
|
|
49
|
+
|
|
50
|
+
This repository uses uv for local development and testing.
|
|
51
|
+
|
|
52
|
+
- Create a virtual environment: `uv venv`
|
|
53
|
+
- Activate it (Windows): `.venv\Scripts\activate`
|
|
54
|
+
- Activate it (POSIX): `source .venv/bin/activate`
|
|
55
|
+
- Install deps (editable + dev): `uv pip install -e .[dev]`
|
|
56
|
+
- Run tests: `uv run python -m pytest`
|
|
57
|
+
- Lint/format: `uv run ruff check .` and `uv run black .`
|
|
58
|
+
|
|
46
59
|
My goal with this framework was to do three things:
|
|
47
60
|
|
|
48
61
|
1. Learn a lot
|
|
@@ -68,5 +81,5 @@ And, honestly, I think I got there. Here's a non-exhaustive list of things this
|
|
|
68
81
|
- CORS middleware
|
|
69
82
|
- Optional POST data validation middleware with Pydantic
|
|
70
83
|
- Session middleware with built-in session store
|
|
71
|
-
- Database support (using
|
|
84
|
+
- Database support (using SQLAlchemy, but you can use whatever you want as long as there's a SQLAlchemy driver for it)
|
|
72
85
|
- Tests (currently roughly 89% coverage)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/spiderweb_logo_cleaned.png
RENAMED
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/_media/spiderweb_logo_cropped.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/docs/middleware/custom_middleware.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/staticfiles/.gitkeep
RENAMED
|
File without changes
|
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/staticfiles/style.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_jinja_extras.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{spiderweb_framework-2.0.0 → spiderweb_framework-2.0.1}/spiderweb/tests/test_variable_urls.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|