smtpdev
Advanced tools
+0
-1
| include readme.md | ||
| include requirements.txt | ||
| recursive-include smtpdev/templates * | ||
| recursive-include smtpdev/static * |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: smtpdev | ||
| Version: 0.2.7 | ||
| Version: 0.2.8 | ||
| Summary: Asynchronous SMTP server for local development and email testing | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/asyncee/smtpdev |
+13
-3
@@ -14,3 +14,2 @@ import os | ||
| """ | ||
| requirements = open(os.path.join(here, "requirements.txt")).readlines() | ||
@@ -38,3 +37,3 @@ | ||
| name="smtpdev", | ||
| version="0.2.7", | ||
| version="0.2.8", | ||
| packages=find_packages(), | ||
@@ -59,3 +58,14 @@ author="asyncee", | ||
| zip_safe=False, | ||
| install_requires=requirements, | ||
| install_requires=[ | ||
| "aiohttp==3.6.2", | ||
| "aiohttp-jinja2==1.2.0", | ||
| "aiosmtpd==1.2", | ||
| "attrs==19.3.0", | ||
| "bleach==3.1.4", | ||
| "Jinja2==2.11.2", | ||
| "mail-parser==3.12.0", | ||
| "marshmallow==3.5.1", | ||
| "simplejson==3.17.0", | ||
| "click==7.1.2", | ||
| ], | ||
| entry_points=""" | ||
@@ -62,0 +72,0 @@ [console_scripts] |
| Metadata-Version: 1.1 | ||
| Name: smtpdev | ||
| Version: 0.2.7 | ||
| Version: 0.2.8 | ||
| Summary: Asynchronous SMTP server for local development and email testing | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/asyncee/smtpdev |
@@ -1,14 +0,10 @@ | ||
| aiohttp==3.5.4 | ||
| aiohttp-jinja2==1.1.1 | ||
| aiohttp==3.6.2 | ||
| aiohttp-jinja2==1.2.0 | ||
| aiosmtpd==1.2 | ||
| async-timeout==3.0.1 | ||
| atpublic==1.0 | ||
| attrs==19.3.0 | ||
| bleach==3.1.4 | ||
| Jinja2==2.10.1 | ||
| mail-parser==3.9.3 | ||
| marshmallow==3.0.0rc6 | ||
| multidict==4.5.2 | ||
| simplejson==3.16.0 | ||
| yarl==1.3.0 | ||
| click==7.0 | ||
| Jinja2==2.11.2 | ||
| mail-parser==3.12.0 | ||
| marshmallow==3.5.1 | ||
| simplejson==3.17.0 | ||
| click==7.1.2 |
| MANIFEST.in | ||
| readme.md | ||
| requirements.txt | ||
| setup.py | ||
@@ -5,0 +4,0 @@ smtpdev/__init__.py |
@@ -76,2 +76,3 @@ <!doctype html> | ||
| <md-button @click="refresh">Refresh</md-button> | ||
| <md-button @click="clearAll">Clear all</md-button> | ||
| </div> | ||
@@ -157,2 +158,19 @@ </md-app-toolbar> | ||
| async function postData(url = '', data = {}) { | ||
| // Default options are marked with * | ||
| const response = await fetch(url, { | ||
| method: 'POST', // *GET, POST, PUT, DELETE, etc. | ||
| mode: 'cors', // no-cors, *cors, same-origin | ||
| cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached | ||
| credentials: 'same-origin', // include, *same-origin, omit | ||
| headers: { | ||
| 'Content-Type': 'application/json' | ||
| }, | ||
| redirect: 'follow', // manual, *follow, error | ||
| referrerPolicy: 'no-referrer', // no-referrer, *client | ||
| body: JSON.stringify(data) // body data type must match "Content-Type" header | ||
| }); | ||
| return await response.json(); // parses JSON response into native JavaScript objects | ||
| } | ||
| Vue.use(VueMaterial.default); | ||
@@ -193,3 +211,3 @@ | ||
| .catch(function (error) { | ||
| console.log(error); | ||
| console.error(error); | ||
| that.loading = false; | ||
@@ -204,2 +222,10 @@ }); | ||
| }, | ||
| clearAll() { | ||
| postData('/commands/clear_all', {}) | ||
| .then(() => window.location.reload()) | ||
| .catch(function (error) { | ||
| console.error(error); | ||
| this.selected = null; | ||
| }); | ||
| }, | ||
| onSelect(message) { | ||
@@ -229,3 +255,3 @@ if (!message) { | ||
| .catch(function (error) { | ||
| console.log(error); | ||
| console.error(error); | ||
| that.loadingMessage = false; | ||
@@ -232,0 +258,0 @@ }); |
@@ -57,2 +57,6 @@ import asyncio | ||
| async def clear_all_messages(self, request): | ||
| self._maildir.clear() | ||
| return web.json_response({}) | ||
| async def websocket_handler(self, request): | ||
@@ -95,2 +99,3 @@ | ||
| web.get("/ws", self.websocket_handler), | ||
| web.post("/commands/clear_all", self.clear_all_messages), | ||
| web.static("/static", static_path), | ||
@@ -97,0 +102,0 @@ ] |
| aiohttp==3.5.4 | ||
| aiohttp-jinja2==1.1.1 | ||
| aiosmtpd==1.2 | ||
| async-timeout==3.0.1 | ||
| atpublic==1.0 | ||
| attrs==19.3.0 | ||
| bleach==3.1.4 | ||
| Jinja2==2.10.1 | ||
| mail-parser==3.9.3 | ||
| marshmallow==3.0.0rc6 | ||
| multidict==4.5.2 | ||
| simplejson==3.16.0 | ||
| yarl==1.3.0 | ||
| click==7.0 |
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
1133073
0.13%1228
1.15%52
-1.89%