plain.redirection 0.1.0__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.
- plain_redirection-0.1.0/.gitignore +16 -0
- plain_redirection-0.1.0/PKG-INFO +12 -0
- plain_redirection-0.1.0/README.md +3 -0
- plain_redirection-0.1.0/plain/redirection/README.md +1 -0
- plain_redirection-0.1.0/plain/redirection/__init__.py +3 -0
- plain_redirection-0.1.0/plain/redirection/config.py +6 -0
- plain_redirection-0.1.0/plain/redirection/middleware.py +29 -0
- plain_redirection-0.1.0/plain/redirection/migrations/0001_initial.py +66 -0
- plain_redirection-0.1.0/plain/redirection/migrations/0002_redirect_enabled_redirect_is_regex.py +23 -0
- plain_redirection-0.1.0/plain/redirection/migrations/__init__.py +0 -0
- plain_redirection-0.1.0/plain/redirection/models.py +126 -0
- plain_redirection-0.1.0/plain/redirection/staff.py +82 -0
- plain_redirection-0.1.0/plain/redirection/templates/staff/plainredirection/redirect_form.html +12 -0
- plain_redirection-0.1.0/pyproject.toml +18 -0
- plain_redirection-0.1.0/uv.lock +133 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: plain.redirection
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Requires-Dist: plain-models<1.0.0
|
|
7
|
+
Requires-Dist: plain<1.0.0
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
<!-- This file is compiled from plain-redirection/plain/redirection/README.md. Do not edit this file directly. -->
|
|
11
|
+
|
|
12
|
+
# plain-redirection
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# plain-redirection
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from plain.http import ResponseRedirect
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RedirectionMiddleware:
|
|
5
|
+
def __init__(self, get_response):
|
|
6
|
+
self.get_response = get_response
|
|
7
|
+
|
|
8
|
+
def __call__(self, request):
|
|
9
|
+
response = self.get_response(request)
|
|
10
|
+
|
|
11
|
+
if response.status_code == 404:
|
|
12
|
+
from .models import NotFoundLog, Redirect, RedirectLog
|
|
13
|
+
|
|
14
|
+
redirects = Redirect.objects.filter(enabled=True).only(
|
|
15
|
+
"id", "from_pattern", "to_pattern", "http_status", "is_regex"
|
|
16
|
+
)
|
|
17
|
+
for redirect in redirects:
|
|
18
|
+
if redirect.matches_request(request):
|
|
19
|
+
# Log it
|
|
20
|
+
redirect_log = RedirectLog.from_redirect(redirect, request)
|
|
21
|
+
# Then redirect
|
|
22
|
+
return ResponseRedirect(
|
|
23
|
+
redirect_log.to_url, status=redirect.http_status
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
# Nothing matched, just log the 404
|
|
27
|
+
NotFoundLog.from_request(request)
|
|
28
|
+
|
|
29
|
+
return response
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Generated by Plain 0.20.0 on 2025-02-05 19:32
|
|
2
|
+
|
|
3
|
+
import plain.models.deletion
|
|
4
|
+
from plain import models
|
|
5
|
+
from plain.models import migrations
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Migration(migrations.Migration):
|
|
9
|
+
initial = True
|
|
10
|
+
|
|
11
|
+
dependencies = []
|
|
12
|
+
|
|
13
|
+
operations = [
|
|
14
|
+
migrations.CreateModel(
|
|
15
|
+
name="NotFoundLog",
|
|
16
|
+
fields=[
|
|
17
|
+
("id", models.BigAutoField(auto_created=True, primary_key=True)),
|
|
18
|
+
("url", models.URLField()),
|
|
19
|
+
("ip_address", models.GenericIPAddressField()),
|
|
20
|
+
("user_agent", models.CharField(max_length=255)),
|
|
21
|
+
("referer", models.URLField(blank=True, null=True)),
|
|
22
|
+
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
23
|
+
],
|
|
24
|
+
options={
|
|
25
|
+
"ordering": ["-created_at"],
|
|
26
|
+
},
|
|
27
|
+
),
|
|
28
|
+
migrations.CreateModel(
|
|
29
|
+
name="Redirect",
|
|
30
|
+
fields=[
|
|
31
|
+
("id", models.BigAutoField(auto_created=True, primary_key=True)),
|
|
32
|
+
("from_pattern", models.CharField(max_length=255)),
|
|
33
|
+
("to_pattern", models.CharField(max_length=255)),
|
|
34
|
+
("http_status", models.IntegerField(default=301)),
|
|
35
|
+
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
36
|
+
("updated_at", models.DateTimeField(auto_now=True)),
|
|
37
|
+
("order", models.IntegerField(default=0)),
|
|
38
|
+
],
|
|
39
|
+
options={
|
|
40
|
+
"ordering": ["order", "-created_at"],
|
|
41
|
+
},
|
|
42
|
+
),
|
|
43
|
+
migrations.CreateModel(
|
|
44
|
+
name="RedirectLog",
|
|
45
|
+
fields=[
|
|
46
|
+
("id", models.BigAutoField(auto_created=True, primary_key=True)),
|
|
47
|
+
("ip_address", models.GenericIPAddressField()),
|
|
48
|
+
("user_agent", models.CharField(max_length=255)),
|
|
49
|
+
("referer", models.URLField(blank=True, null=True)),
|
|
50
|
+
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
51
|
+
("from_url", models.URLField()),
|
|
52
|
+
("to_url", models.URLField()),
|
|
53
|
+
("http_status", models.IntegerField(default=301)),
|
|
54
|
+
(
|
|
55
|
+
"redirect",
|
|
56
|
+
models.ForeignKey(
|
|
57
|
+
on_delete=plain.models.deletion.CASCADE,
|
|
58
|
+
to="plainredirection.redirect",
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
],
|
|
62
|
+
options={
|
|
63
|
+
"ordering": ["-created_at"],
|
|
64
|
+
},
|
|
65
|
+
),
|
|
66
|
+
]
|
plain_redirection-0.1.0/plain/redirection/migrations/0002_redirect_enabled_redirect_is_regex.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Generated by Plain 0.20.0 on 2025-02-05 20:12
|
|
2
|
+
|
|
3
|
+
from plain import models
|
|
4
|
+
from plain.models import migrations
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
dependencies = [
|
|
9
|
+
("plainredirection", "0001_initial"),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AddField(
|
|
14
|
+
model_name="redirect",
|
|
15
|
+
name="enabled",
|
|
16
|
+
field=models.BooleanField(default=True),
|
|
17
|
+
),
|
|
18
|
+
migrations.AddField(
|
|
19
|
+
model_name="redirect",
|
|
20
|
+
name="is_regex",
|
|
21
|
+
field=models.BooleanField(default=False),
|
|
22
|
+
),
|
|
23
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import re
|
|
2
|
+
|
|
3
|
+
from plain import models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def _get_client_ip(request):
|
|
7
|
+
if x_forwarded_for := request.headers.get("X-Forwarded-For"):
|
|
8
|
+
return x_forwarded_for.split(",")[0].strip()
|
|
9
|
+
else:
|
|
10
|
+
return request.META.get("REMOTE_ADDR")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class Redirect(models.Model):
|
|
14
|
+
from_pattern = models.CharField(max_length=255, unique=True)
|
|
15
|
+
to_pattern = models.CharField(max_length=255)
|
|
16
|
+
http_status = models.IntegerField(
|
|
17
|
+
default=301
|
|
18
|
+
) # Default to permanent - could be choices?
|
|
19
|
+
created_at = models.DateTimeField(auto_now_add=True)
|
|
20
|
+
updated_at = models.DateTimeField(auto_now=True)
|
|
21
|
+
order = models.IntegerField(default=0)
|
|
22
|
+
enabled = models.BooleanField(default=True)
|
|
23
|
+
is_regex = models.BooleanField(default=False)
|
|
24
|
+
|
|
25
|
+
# query params?
|
|
26
|
+
# logged in or not? auth not required necessarily...
|
|
27
|
+
# headers?
|
|
28
|
+
|
|
29
|
+
class Meta:
|
|
30
|
+
ordering = ["order", "-created_at"]
|
|
31
|
+
|
|
32
|
+
def __str__(self):
|
|
33
|
+
return f"{self.from_pattern}"
|
|
34
|
+
|
|
35
|
+
def matches_request(self, request):
|
|
36
|
+
"""
|
|
37
|
+
Decide whether a request matches this Redirect,
|
|
38
|
+
automatically checking whether the pattern is path based or full URL based.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
if self.from_pattern.startswith("http"):
|
|
42
|
+
# Full url with query params
|
|
43
|
+
url = request.build_absolute_uri()
|
|
44
|
+
else:
|
|
45
|
+
# Doesn't include query params or host
|
|
46
|
+
url = request.path
|
|
47
|
+
|
|
48
|
+
if self.is_regex:
|
|
49
|
+
return re.match(self.from_pattern, url)
|
|
50
|
+
else:
|
|
51
|
+
return url == self.from_pattern
|
|
52
|
+
|
|
53
|
+
def get_redirect_url(self, request):
|
|
54
|
+
if not self.is_regex:
|
|
55
|
+
return self.to_pattern
|
|
56
|
+
|
|
57
|
+
# Replace any regex groups in the to_pattern
|
|
58
|
+
if self.from_pattern.startswith("http"):
|
|
59
|
+
url = request.build_absolute_uri()
|
|
60
|
+
else:
|
|
61
|
+
url = request.path
|
|
62
|
+
|
|
63
|
+
return re.sub(self.from_pattern, self.to_pattern, url)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class RedirectLog(models.Model):
|
|
67
|
+
redirect = models.ForeignKey(Redirect, on_delete=models.CASCADE)
|
|
68
|
+
|
|
69
|
+
# The actuals that were used to redirect
|
|
70
|
+
from_url = models.URLField()
|
|
71
|
+
to_url = models.URLField()
|
|
72
|
+
http_status = models.IntegerField(default=301)
|
|
73
|
+
|
|
74
|
+
# Request metadata
|
|
75
|
+
ip_address = models.GenericIPAddressField()
|
|
76
|
+
user_agent = models.CharField(max_length=255)
|
|
77
|
+
referer = models.URLField(null=True, blank=True)
|
|
78
|
+
|
|
79
|
+
created_at = models.DateTimeField(auto_now_add=True)
|
|
80
|
+
|
|
81
|
+
class Meta:
|
|
82
|
+
ordering = ["-created_at"]
|
|
83
|
+
|
|
84
|
+
@classmethod
|
|
85
|
+
def from_redirect(cls, redirect, request):
|
|
86
|
+
from_url = request.build_absolute_uri()
|
|
87
|
+
to_url = redirect.get_redirect_url(request)
|
|
88
|
+
|
|
89
|
+
if not to_url.startswith("http"):
|
|
90
|
+
to_url = request.build_absolute_uri(to_url)
|
|
91
|
+
|
|
92
|
+
if from_url == to_url:
|
|
93
|
+
raise ValueError("Redirecting to the same URL")
|
|
94
|
+
|
|
95
|
+
return cls.objects.create(
|
|
96
|
+
redirect=redirect,
|
|
97
|
+
from_url=from_url,
|
|
98
|
+
to_url=to_url,
|
|
99
|
+
http_status=redirect.http_status,
|
|
100
|
+
ip_address=_get_client_ip(request),
|
|
101
|
+
user_agent=request.headers.get("User-Agent"),
|
|
102
|
+
referer=request.headers.get("Referer"),
|
|
103
|
+
)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class NotFoundLog(models.Model):
|
|
107
|
+
url = models.URLField()
|
|
108
|
+
|
|
109
|
+
# Request metadata
|
|
110
|
+
ip_address = models.GenericIPAddressField()
|
|
111
|
+
user_agent = models.CharField(max_length=255)
|
|
112
|
+
referer = models.URLField(null=True, blank=True)
|
|
113
|
+
|
|
114
|
+
created_at = models.DateTimeField(auto_now_add=True)
|
|
115
|
+
|
|
116
|
+
class Meta:
|
|
117
|
+
ordering = ["-created_at"]
|
|
118
|
+
|
|
119
|
+
@classmethod
|
|
120
|
+
def from_request(cls, request):
|
|
121
|
+
return cls.objects.create(
|
|
122
|
+
url=request.build_absolute_uri(),
|
|
123
|
+
ip_address=_get_client_ip(request),
|
|
124
|
+
user_agent=request.headers.get("User-Agent"),
|
|
125
|
+
referer=request.headers.get("Referer"),
|
|
126
|
+
)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from plain.models.forms import ModelForm
|
|
2
|
+
|
|
3
|
+
# from plain.staff.cards import Card
|
|
4
|
+
from plain.staff.views import (
|
|
5
|
+
StaffModelCreateView,
|
|
6
|
+
StaffModelDeleteView,
|
|
7
|
+
StaffModelDetailView,
|
|
8
|
+
StaffModelListView,
|
|
9
|
+
StaffModelUpdateView,
|
|
10
|
+
StaffModelViewset,
|
|
11
|
+
register_viewset,
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
from .models import NotFoundLog, Redirect, RedirectLog
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class RedirectForm(ModelForm):
|
|
18
|
+
class Meta:
|
|
19
|
+
model = Redirect
|
|
20
|
+
fields = [
|
|
21
|
+
"from_pattern",
|
|
22
|
+
"to_pattern",
|
|
23
|
+
"http_status",
|
|
24
|
+
"order",
|
|
25
|
+
"enabled",
|
|
26
|
+
"is_regex",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@register_viewset
|
|
31
|
+
class RedirectStaff(StaffModelViewset):
|
|
32
|
+
class ListView(StaffModelListView):
|
|
33
|
+
model = Redirect
|
|
34
|
+
nav_section = "Redirection"
|
|
35
|
+
title = "Redirects"
|
|
36
|
+
fields = ["from_pattern", "to_pattern", "http_status", "order", "enabled"]
|
|
37
|
+
|
|
38
|
+
class DetailView(StaffModelDetailView):
|
|
39
|
+
model = Redirect
|
|
40
|
+
|
|
41
|
+
class CreateView(StaffModelCreateView):
|
|
42
|
+
model = Redirect
|
|
43
|
+
form_class = RedirectForm
|
|
44
|
+
|
|
45
|
+
class UpdateView(StaffModelUpdateView):
|
|
46
|
+
model = Redirect
|
|
47
|
+
form_class = RedirectForm
|
|
48
|
+
|
|
49
|
+
class DeleteView(StaffModelDeleteView):
|
|
50
|
+
model = Redirect
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@register_viewset
|
|
54
|
+
class RedirectLogStaff(StaffModelViewset):
|
|
55
|
+
class ListView(StaffModelListView):
|
|
56
|
+
model = RedirectLog
|
|
57
|
+
nav_section = "Redirection"
|
|
58
|
+
title = "Redirect logs"
|
|
59
|
+
fields = [
|
|
60
|
+
"created_at",
|
|
61
|
+
"from_url",
|
|
62
|
+
"to_url",
|
|
63
|
+
"http_status",
|
|
64
|
+
"user_agent",
|
|
65
|
+
"ip_address",
|
|
66
|
+
"referer",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
class DetailView(StaffModelDetailView):
|
|
70
|
+
model = RedirectLog
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@register_viewset
|
|
74
|
+
class NotFoundLogStaff(StaffModelViewset):
|
|
75
|
+
class ListView(StaffModelListView):
|
|
76
|
+
model = NotFoundLog
|
|
77
|
+
nav_section = "Redirection"
|
|
78
|
+
title = "404 logs"
|
|
79
|
+
fields = ["created_at", "url", "user_agent", "ip_address", "referer"]
|
|
80
|
+
|
|
81
|
+
class DetailView(StaffModelDetailView):
|
|
82
|
+
model = NotFoundLog
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{% extends "staff/form.html" %}
|
|
2
|
+
|
|
3
|
+
{% block form_content %}
|
|
4
|
+
<div class="space-y-4">
|
|
5
|
+
<staff.InputField label="From pattern" field=form.from_pattern />
|
|
6
|
+
<staff.InputField label="To pattern" field=form.to_pattern />
|
|
7
|
+
<staff.CheckboxField label="Use regular expressions" field=form.is_regex />
|
|
8
|
+
<staff.InputField label="HTTP status code" field=form.http_status />
|
|
9
|
+
<staff.InputField label="Order" field=form.order />
|
|
10
|
+
<staff.CheckboxField label="Enabled" field=form.enabled />
|
|
11
|
+
</div>
|
|
12
|
+
{% endblock %}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "plain.redirection"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = ""
|
|
5
|
+
authors = [{name = "Dave Gaeddert", email = "dave.gaeddert@dropseed.dev"}]
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
requires-python = ">=3.11"
|
|
8
|
+
dependencies = [
|
|
9
|
+
"plain<1.0.0",
|
|
10
|
+
"plain.models<1.0.0",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
[tool.hatch.build.targets.wheel]
|
|
14
|
+
packages = ["plain"]
|
|
15
|
+
|
|
16
|
+
[build-system]
|
|
17
|
+
requires = ["hatchling"]
|
|
18
|
+
build-backend = "hatchling.build"
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
version = 1
|
|
2
|
+
requires-python = ">=3.11"
|
|
3
|
+
|
|
4
|
+
[[package]]
|
|
5
|
+
name = "click"
|
|
6
|
+
version = "8.1.8"
|
|
7
|
+
source = { registry = "https://pypi.org/simple" }
|
|
8
|
+
dependencies = [
|
|
9
|
+
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
10
|
+
]
|
|
11
|
+
sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 }
|
|
12
|
+
wheels = [
|
|
13
|
+
{ url = "https://files.pythonhosted.org/packages/7e/d4/7ebdbd03970677812aac39c869717059dbb71a4cfc033ca6e5221787892c/click-8.1.8-py3-none-any.whl", hash = "sha256:63c132bbbed01578a06712a2d1f497bb62d9c1c0d329b7903a866228027263b2", size = 98188 },
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[[package]]
|
|
17
|
+
name = "colorama"
|
|
18
|
+
version = "0.4.6"
|
|
19
|
+
source = { registry = "https://pypi.org/simple" }
|
|
20
|
+
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 }
|
|
21
|
+
wheels = [
|
|
22
|
+
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 },
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[[package]]
|
|
26
|
+
name = "jinja2"
|
|
27
|
+
version = "3.1.5"
|
|
28
|
+
source = { registry = "https://pypi.org/simple" }
|
|
29
|
+
dependencies = [
|
|
30
|
+
{ name = "markupsafe" },
|
|
31
|
+
]
|
|
32
|
+
sdist = { url = "https://files.pythonhosted.org/packages/af/92/b3130cbbf5591acf9ade8708c365f3238046ac7cb8ccba6e81abccb0ccff/jinja2-3.1.5.tar.gz", hash = "sha256:8fefff8dc3034e27bb80d67c671eb8a9bc424c0ef4c0826edbff304cceff43bb", size = 244674 }
|
|
33
|
+
wheels = [
|
|
34
|
+
{ url = "https://files.pythonhosted.org/packages/bd/0f/2ba5fbcd631e3e88689309dbe978c5769e883e4b84ebfe7da30b43275c5a/jinja2-3.1.5-py3-none-any.whl", hash = "sha256:aba0f4dc9ed8013c424088f68a5c226f7d6097ed89b246d7749c2ec4175c6adb", size = 134596 },
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[[package]]
|
|
38
|
+
name = "markupsafe"
|
|
39
|
+
version = "3.0.2"
|
|
40
|
+
source = { registry = "https://pypi.org/simple" }
|
|
41
|
+
sdist = { url = "https://files.pythonhosted.org/packages/b2/97/5d42485e71dfc078108a86d6de8fa46db44a1a9295e89c5d6d4a06e23a62/markupsafe-3.0.2.tar.gz", hash = "sha256:ee55d3edf80167e48ea11a923c7386f4669df67d7994554387f84e7d8b0a2bf0", size = 20537 }
|
|
42
|
+
wheels = [
|
|
43
|
+
{ url = "https://files.pythonhosted.org/packages/6b/28/bbf83e3f76936960b850435576dd5e67034e200469571be53f69174a2dfd/MarkupSafe-3.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9025b4018f3a1314059769c7bf15441064b2207cb3f065e6ea1e7359cb46db9d", size = 14353 },
|
|
44
|
+
{ url = "https://files.pythonhosted.org/packages/6c/30/316d194b093cde57d448a4c3209f22e3046c5bb2fb0820b118292b334be7/MarkupSafe-3.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:93335ca3812df2f366e80509ae119189886b0f3c2b81325d39efdb84a1e2ae93", size = 12392 },
|
|
45
|
+
{ url = "https://files.pythonhosted.org/packages/f2/96/9cdafba8445d3a53cae530aaf83c38ec64c4d5427d975c974084af5bc5d2/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2cb8438c3cbb25e220c2ab33bb226559e7afb3baec11c4f218ffa7308603c832", size = 23984 },
|
|
46
|
+
{ url = "https://files.pythonhosted.org/packages/f1/a4/aefb044a2cd8d7334c8a47d3fb2c9f328ac48cb349468cc31c20b539305f/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a123e330ef0853c6e822384873bef7507557d8e4a082961e1defa947aa59ba84", size = 23120 },
|
|
47
|
+
{ url = "https://files.pythonhosted.org/packages/8d/21/5e4851379f88f3fad1de30361db501300d4f07bcad047d3cb0449fc51f8c/MarkupSafe-3.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e084f686b92e5b83186b07e8a17fc09e38fff551f3602b249881fec658d3eca", size = 23032 },
|
|
48
|
+
{ url = "https://files.pythonhosted.org/packages/00/7b/e92c64e079b2d0d7ddf69899c98842f3f9a60a1ae72657c89ce2655c999d/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d8213e09c917a951de9d09ecee036d5c7d36cb6cb7dbaece4c71a60d79fb9798", size = 24057 },
|
|
49
|
+
{ url = "https://files.pythonhosted.org/packages/f9/ac/46f960ca323037caa0a10662ef97d0a4728e890334fc156b9f9e52bcc4ca/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:5b02fb34468b6aaa40dfc198d813a641e3a63b98c2b05a16b9f80b7ec314185e", size = 23359 },
|
|
50
|
+
{ url = "https://files.pythonhosted.org/packages/69/84/83439e16197337b8b14b6a5b9c2105fff81d42c2a7c5b58ac7b62ee2c3b1/MarkupSafe-3.0.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0bff5e0ae4ef2e1ae4fdf2dfd5b76c75e5c2fa4132d05fc1b0dabcd20c7e28c4", size = 23306 },
|
|
51
|
+
{ url = "https://files.pythonhosted.org/packages/9a/34/a15aa69f01e2181ed8d2b685c0d2f6655d5cca2c4db0ddea775e631918cd/MarkupSafe-3.0.2-cp311-cp311-win32.whl", hash = "sha256:6c89876f41da747c8d3677a2b540fb32ef5715f97b66eeb0c6b66f5e3ef6f59d", size = 15094 },
|
|
52
|
+
{ url = "https://files.pythonhosted.org/packages/da/b8/3a3bd761922d416f3dc5d00bfbed11f66b1ab89a0c2b6e887240a30b0f6b/MarkupSafe-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:70a87b411535ccad5ef2f1df5136506a10775d267e197e4cf531ced10537bd6b", size = 15521 },
|
|
53
|
+
{ url = "https://files.pythonhosted.org/packages/22/09/d1f21434c97fc42f09d290cbb6350d44eb12f09cc62c9476effdb33a18aa/MarkupSafe-3.0.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:9778bd8ab0a994ebf6f84c2b949e65736d5575320a17ae8984a77fab08db94cf", size = 14274 },
|
|
54
|
+
{ url = "https://files.pythonhosted.org/packages/6b/b0/18f76bba336fa5aecf79d45dcd6c806c280ec44538b3c13671d49099fdd0/MarkupSafe-3.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:846ade7b71e3536c4e56b386c2a47adf5741d2d8b94ec9dc3e92e5e1ee1e2225", size = 12348 },
|
|
55
|
+
{ url = "https://files.pythonhosted.org/packages/e0/25/dd5c0f6ac1311e9b40f4af06c78efde0f3b5cbf02502f8ef9501294c425b/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1c99d261bd2d5f6b59325c92c73df481e05e57f19837bdca8413b9eac4bd8028", size = 24149 },
|
|
56
|
+
{ url = "https://files.pythonhosted.org/packages/f3/f0/89e7aadfb3749d0f52234a0c8c7867877876e0a20b60e2188e9850794c17/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e17c96c14e19278594aa4841ec148115f9c7615a47382ecb6b82bd8fea3ab0c8", size = 23118 },
|
|
57
|
+
{ url = "https://files.pythonhosted.org/packages/d5/da/f2eeb64c723f5e3777bc081da884b414671982008c47dcc1873d81f625b6/MarkupSafe-3.0.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:88416bd1e65dcea10bc7569faacb2c20ce071dd1f87539ca2ab364bf6231393c", size = 22993 },
|
|
58
|
+
{ url = "https://files.pythonhosted.org/packages/da/0e/1f32af846df486dce7c227fe0f2398dc7e2e51d4a370508281f3c1c5cddc/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2181e67807fc2fa785d0592dc2d6206c019b9502410671cc905d132a92866557", size = 24178 },
|
|
59
|
+
{ url = "https://files.pythonhosted.org/packages/c4/f6/bb3ca0532de8086cbff5f06d137064c8410d10779c4c127e0e47d17c0b71/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:52305740fe773d09cffb16f8ed0427942901f00adedac82ec8b67752f58a1b22", size = 23319 },
|
|
60
|
+
{ url = "https://files.pythonhosted.org/packages/a2/82/8be4c96ffee03c5b4a034e60a31294daf481e12c7c43ab8e34a1453ee48b/MarkupSafe-3.0.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ad10d3ded218f1039f11a75f8091880239651b52e9bb592ca27de44eed242a48", size = 23352 },
|
|
61
|
+
{ url = "https://files.pythonhosted.org/packages/51/ae/97827349d3fcffee7e184bdf7f41cd6b88d9919c80f0263ba7acd1bbcb18/MarkupSafe-3.0.2-cp312-cp312-win32.whl", hash = "sha256:0f4ca02bea9a23221c0182836703cbf8930c5e9454bacce27e767509fa286a30", size = 15097 },
|
|
62
|
+
{ url = "https://files.pythonhosted.org/packages/c1/80/a61f99dc3a936413c3ee4e1eecac96c0da5ed07ad56fd975f1a9da5bc630/MarkupSafe-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:8e06879fc22a25ca47312fbe7c8264eb0b662f6db27cb2d3bbbc74b1df4b9b87", size = 15601 },
|
|
63
|
+
{ url = "https://files.pythonhosted.org/packages/83/0e/67eb10a7ecc77a0c2bbe2b0235765b98d164d81600746914bebada795e97/MarkupSafe-3.0.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ba9527cdd4c926ed0760bc301f6728ef34d841f405abf9d4f959c478421e4efd", size = 14274 },
|
|
64
|
+
{ url = "https://files.pythonhosted.org/packages/2b/6d/9409f3684d3335375d04e5f05744dfe7e9f120062c9857df4ab490a1031a/MarkupSafe-3.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f8b3d067f2e40fe93e1ccdd6b2e1d16c43140e76f02fb1319a05cf2b79d99430", size = 12352 },
|
|
65
|
+
{ url = "https://files.pythonhosted.org/packages/d2/f5/6eadfcd3885ea85fe2a7c128315cc1bb7241e1987443d78c8fe712d03091/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:569511d3b58c8791ab4c2e1285575265991e6d8f8700c7be0e88f86cb0672094", size = 24122 },
|
|
66
|
+
{ url = "https://files.pythonhosted.org/packages/0c/91/96cf928db8236f1bfab6ce15ad070dfdd02ed88261c2afafd4b43575e9e9/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:15ab75ef81add55874e7ab7055e9c397312385bd9ced94920f2802310c930396", size = 23085 },
|
|
67
|
+
{ url = "https://files.pythonhosted.org/packages/c2/cf/c9d56af24d56ea04daae7ac0940232d31d5a8354f2b457c6d856b2057d69/MarkupSafe-3.0.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f3818cb119498c0678015754eba762e0d61e5b52d34c8b13d770f0719f7b1d79", size = 22978 },
|
|
68
|
+
{ url = "https://files.pythonhosted.org/packages/2a/9f/8619835cd6a711d6272d62abb78c033bda638fdc54c4e7f4272cf1c0962b/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:cdb82a876c47801bb54a690c5ae105a46b392ac6099881cdfb9f6e95e4014c6a", size = 24208 },
|
|
69
|
+
{ url = "https://files.pythonhosted.org/packages/f9/bf/176950a1792b2cd2102b8ffeb5133e1ed984547b75db47c25a67d3359f77/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:cabc348d87e913db6ab4aa100f01b08f481097838bdddf7c7a84b7575b7309ca", size = 23357 },
|
|
70
|
+
{ url = "https://files.pythonhosted.org/packages/ce/4f/9a02c1d335caabe5c4efb90e1b6e8ee944aa245c1aaaab8e8a618987d816/MarkupSafe-3.0.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:444dcda765c8a838eaae23112db52f1efaf750daddb2d9ca300bcae1039adc5c", size = 23344 },
|
|
71
|
+
{ url = "https://files.pythonhosted.org/packages/ee/55/c271b57db36f748f0e04a759ace9f8f759ccf22b4960c270c78a394f58be/MarkupSafe-3.0.2-cp313-cp313-win32.whl", hash = "sha256:bcf3e58998965654fdaff38e58584d8937aa3096ab5354d493c77d1fdd66d7a1", size = 15101 },
|
|
72
|
+
{ url = "https://files.pythonhosted.org/packages/29/88/07df22d2dd4df40aba9f3e402e6dc1b8ee86297dddbad4872bd5e7b0094f/MarkupSafe-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:e6a2a455bd412959b57a172ce6328d2dd1f01cb2135efda2e4576e8a23fa3b0f", size = 15603 },
|
|
73
|
+
{ url = "https://files.pythonhosted.org/packages/62/6a/8b89d24db2d32d433dffcd6a8779159da109842434f1dd2f6e71f32f738c/MarkupSafe-3.0.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b5a6b3ada725cea8a5e634536b1b01c30bcdcd7f9c6fff4151548d5bf6b3a36c", size = 14510 },
|
|
74
|
+
{ url = "https://files.pythonhosted.org/packages/7a/06/a10f955f70a2e5a9bf78d11a161029d278eeacbd35ef806c3fd17b13060d/MarkupSafe-3.0.2-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a904af0a6162c73e3edcb969eeeb53a63ceeb5d8cf642fade7d39e7963a22ddb", size = 12486 },
|
|
75
|
+
{ url = "https://files.pythonhosted.org/packages/34/cf/65d4a571869a1a9078198ca28f39fba5fbb910f952f9dbc5220afff9f5e6/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa4e5faecf353ed117801a068ebab7b7e09ffb6e1d5e412dc852e0da018126c", size = 25480 },
|
|
76
|
+
{ url = "https://files.pythonhosted.org/packages/0c/e3/90e9651924c430b885468b56b3d597cabf6d72be4b24a0acd1fa0e12af67/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c0ef13eaeee5b615fb07c9a7dadb38eac06a0608b41570d8ade51c56539e509d", size = 23914 },
|
|
77
|
+
{ url = "https://files.pythonhosted.org/packages/66/8c/6c7cf61f95d63bb866db39085150df1f2a5bd3335298f14a66b48e92659c/MarkupSafe-3.0.2-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d16a81a06776313e817c951135cf7340a3e91e8c1ff2fac444cfd75fffa04afe", size = 23796 },
|
|
78
|
+
{ url = "https://files.pythonhosted.org/packages/bb/35/cbe9238ec3f47ac9a7c8b3df7a808e7cb50fe149dc7039f5f454b3fba218/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:6381026f158fdb7c72a168278597a5e3a5222e83ea18f543112b2662a9b699c5", size = 25473 },
|
|
79
|
+
{ url = "https://files.pythonhosted.org/packages/e6/32/7621a4382488aa283cc05e8984a9c219abad3bca087be9ec77e89939ded9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:3d79d162e7be8f996986c064d1c7c817f6df3a77fe3d6859f6f9e7be4b8c213a", size = 24114 },
|
|
80
|
+
{ url = "https://files.pythonhosted.org/packages/0d/80/0985960e4b89922cb5a0bac0ed39c5b96cbc1a536a99f30e8c220a996ed9/MarkupSafe-3.0.2-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:131a3c7689c85f5ad20f9f6fb1b866f402c445b220c19fe4308c0b147ccd2ad9", size = 24098 },
|
|
81
|
+
{ url = "https://files.pythonhosted.org/packages/82/78/fedb03c7d5380df2427038ec8d973587e90561b2d90cd472ce9254cf348b/MarkupSafe-3.0.2-cp313-cp313t-win32.whl", hash = "sha256:ba8062ed2cf21c07a9e295d5b8a2a5ce678b913b45fdf68c32d95d6c1291e0b6", size = 15208 },
|
|
82
|
+
{ url = "https://files.pythonhosted.org/packages/4f/65/6079a46068dfceaeabb5dcad6d674f5f5c61a6fa5673746f42a9f4c233b3/MarkupSafe-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:e444a31f8db13eb18ada366ab3cf45fd4b31e4db1236a4448f68778c1d1a5a2f", size = 15739 },
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "plain"
|
|
87
|
+
version = "0.15.0"
|
|
88
|
+
source = { registry = "https://pypi.org/simple" }
|
|
89
|
+
dependencies = [
|
|
90
|
+
{ name = "click" },
|
|
91
|
+
{ name = "jinja2" },
|
|
92
|
+
]
|
|
93
|
+
sdist = { url = "https://files.pythonhosted.org/packages/ec/36/e7d02fea50db93371f4ec002697e6b6d61f903154c4334c4569bd34a9829/plain-0.15.0.tar.gz", hash = "sha256:64fb01cfc626ed8601cab81cea642a797d06632cb458d8f3284a77bb22f8b178", size = 180129 }
|
|
94
|
+
wheels = [
|
|
95
|
+
{ url = "https://files.pythonhosted.org/packages/38/72/91022959d8a660efcb611e6474db2d7dc7955a30e6d75152e7cd80986c8d/plain-0.15.0-py3-none-any.whl", hash = "sha256:57efb1345a8a7d230537a732566a02d6a79051be7324685e42a704fb58d63a6f", size = 219753 },
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "plain-models"
|
|
100
|
+
version = "0.11.0"
|
|
101
|
+
source = { registry = "https://pypi.org/simple" }
|
|
102
|
+
dependencies = [
|
|
103
|
+
{ name = "plain" },
|
|
104
|
+
{ name = "sqlparse" },
|
|
105
|
+
]
|
|
106
|
+
sdist = { url = "https://files.pythonhosted.org/packages/21/ae/5756603b12b0ed2d483ae8b47c0e21b06687276126385cf05a05ee902da4/plain_models-0.11.0.tar.gz", hash = "sha256:14c970202cc3d35673ad4d24880971404dc2088cc1d588fe1193c38c82b23f64", size = 392517 }
|
|
107
|
+
wheels = [
|
|
108
|
+
{ url = "https://files.pythonhosted.org/packages/03/eb/36a209ac0e575bbfce9678fb7120f623df005e2844ca4cfe5bf2d4045b03/plain_models-0.11.0-py3-none-any.whl", hash = "sha256:deaa2b4feb7febb1b45f24579c870c5240e26df3ea202501c995f47f6fb0bf4d", size = 440517 },
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "plain-redirection"
|
|
113
|
+
version = "0.1.0"
|
|
114
|
+
source = { editable = "." }
|
|
115
|
+
dependencies = [
|
|
116
|
+
{ name = "plain" },
|
|
117
|
+
{ name = "plain-models" },
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
[package.metadata]
|
|
121
|
+
requires-dist = [
|
|
122
|
+
{ name = "plain", specifier = "<1.0.0" },
|
|
123
|
+
{ name = "plain-models", specifier = "<1.0.0" },
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "sqlparse"
|
|
128
|
+
version = "0.5.3"
|
|
129
|
+
source = { registry = "https://pypi.org/simple" }
|
|
130
|
+
sdist = { url = "https://files.pythonhosted.org/packages/e5/40/edede8dd6977b0d3da179a342c198ed100dd2aba4be081861ee5911e4da4/sqlparse-0.5.3.tar.gz", hash = "sha256:09f67787f56a0b16ecdbde1bfc7f5d9c3371ca683cfeaa8e6ff60b4807ec9272", size = 84999 }
|
|
131
|
+
wheels = [
|
|
132
|
+
{ url = "https://files.pythonhosted.org/packages/a9/5c/bfd6bd0bf979426d405cc6e71eceb8701b148b16c21d2dc3c261efc61c7b/sqlparse-0.5.3-py3-none-any.whl", hash = "sha256:cf2196ed3418f3ba5de6af7e82c694a9fbdbfecccdfc72e281548517081f16ca", size = 44415 },
|
|
133
|
+
]
|