platzky 0.2.17__tar.gz → 0.2.18__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.
- {platzky-0.2.17 → platzky-0.2.18}/PKG-INFO +2 -1
- {platzky-0.2.17 → platzky-0.2.18}/pyproject.toml +2 -1
- platzky-0.2.17/platzky/plugins/sendmail/entrypoint.py +0 -39
- {platzky-0.2.17 → platzky-0.2.18}/README.md +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/__init__.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/blog/__init__.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/blog/blog.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/blog/comment_form.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/config.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/__init__.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/db.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/db_loader.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/google_json_db.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/graph_ql_db.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/json_db.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/db/json_file_db.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/locale/en/LC_MESSAGES/messages.po +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/locale/pl/LC_MESSAGES/messages.po +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/models.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/platzky.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/plugin_loader.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/plugins/google-tag-manager/entrypoint.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/plugins/redirections/entrypoint.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/seo/seo.py +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/static/blog.css +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/static/styles.css +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/404.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/base.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/blog.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/body_meta.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/dynamic_css.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/feed.xml +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/head_meta.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/page.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/post.html +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/robots.txt +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/templates/sitemap.xml +0 -0
- {platzky-0.2.17 → platzky-0.2.18}/platzky/www_handler.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: platzky
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.18
|
|
4
4
|
Summary: Not only blog engine
|
|
5
5
|
License: MIT
|
|
6
6
|
Requires-Python: >=3.10,<4.0
|
|
@@ -19,6 +19,7 @@ Requires-Dist: aiohttp (>=3.9.5,<4.0.0)
|
|
|
19
19
|
Requires-Dist: google-cloud-storage (>=2.5.0,<3.0.0)
|
|
20
20
|
Requires-Dist: gql (>=3.4.0,<4.0.0)
|
|
21
21
|
Requires-Dist: humanize (>=4.9.0,<5.0.0)
|
|
22
|
+
Requires-Dist: platzky-sendmail (>=0.1.1,<0.2.0)
|
|
22
23
|
Requires-Dist: pydantic (>=2.7.1,<3.0.0)
|
|
23
24
|
Description-Content-Type: text/markdown
|
|
24
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "platzky"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.18"
|
|
4
4
|
description = "Not only blog engine"
|
|
5
5
|
authors = []
|
|
6
6
|
license = "MIT"
|
|
@@ -18,6 +18,7 @@ Flask-Minify = "^0.42"
|
|
|
18
18
|
google-cloud-storage = "^2.5.0"
|
|
19
19
|
humanize = "^4.9.0"
|
|
20
20
|
pydantic = "^2.7.1"
|
|
21
|
+
platzky-sendmail = "^0.1.1"
|
|
21
22
|
|
|
22
23
|
[tool.poetry.group.dev.dependencies]
|
|
23
24
|
pytest = "^8.2.1"
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import smtplib
|
|
2
|
-
|
|
3
|
-
from pydantic import BaseModel, Field
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
def send_mail(sender_email, password, smtp_server, port, receiver_email, subject, message):
|
|
7
|
-
full_message = f"From: {sender_email}\nTo: {receiver_email}\nSubject: {subject}\n\n{message}"
|
|
8
|
-
server = smtplib.SMTP_SSL(smtp_server, port)
|
|
9
|
-
server.ehlo()
|
|
10
|
-
server.login(sender_email, password)
|
|
11
|
-
server.sendmail(sender_email, receiver_email, full_message)
|
|
12
|
-
server.close()
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class SendMailConfig(BaseModel):
|
|
16
|
-
user: str = Field(alias="sender_email")
|
|
17
|
-
password: str = Field(alias="password")
|
|
18
|
-
server: str = Field(alias="smtp_server")
|
|
19
|
-
port: int = Field(alias="port")
|
|
20
|
-
receiver: str = Field(alias="receiver_email")
|
|
21
|
-
subject: str = Field(alias="subject")
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
def process(app, config):
|
|
25
|
-
plugin_config = SendMailConfig.model_validate(config)
|
|
26
|
-
|
|
27
|
-
def notify(message):
|
|
28
|
-
send_mail(
|
|
29
|
-
sender_email=plugin_config.user,
|
|
30
|
-
password=plugin_config.password,
|
|
31
|
-
smtp_server=plugin_config.server,
|
|
32
|
-
port=plugin_config.port,
|
|
33
|
-
receiver_email=plugin_config.receiver,
|
|
34
|
-
subject=plugin_config.subject,
|
|
35
|
-
message=message,
|
|
36
|
-
)
|
|
37
|
-
|
|
38
|
-
app.add_notifier(notify)
|
|
39
|
-
return app
|
|
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
|