nornweave 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

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.
@@ -20,7 +20,7 @@ from nornweave.muninn.tools import create_inbox, search_email, send_email, wait_
20
20
  # Create the FastMCP server
21
21
  mcp = FastMCP(
22
22
  name="nornweave",
23
- version="0.1.2",
23
+ version="0.1.3",
24
24
  instructions="Email capabilities for AI agents - create inboxes, send emails, search messages",
25
25
  )
26
26
 
@@ -160,28 +160,33 @@ async def get_email_provider(
160
160
  settings: Settings = Depends(get_settings),
161
161
  ) -> EmailProvider:
162
162
  """FastAPI dependency to get the configured email provider."""
163
- # Import here to avoid circular imports
164
- from nornweave.adapters.mailgun import MailgunAdapter
165
- from nornweave.adapters.resend import ResendAdapter
166
- from nornweave.adapters.sendgrid import SendGridAdapter
167
- from nornweave.adapters.ses import SESAdapter
168
-
163
+ # Lazy-import only the adapter for the configured provider so optional
164
+ # dependencies (e.g. cryptography for SendGrid) are not required when
165
+ # using other providers.
169
166
  provider = settings.email_provider
170
167
 
171
168
  if provider == "mailgun":
169
+ from nornweave.adapters.mailgun import MailgunAdapter
170
+
172
171
  return MailgunAdapter(
173
172
  api_key=settings.mailgun_api_key,
174
173
  domain=settings.mailgun_domain,
175
174
  )
176
175
  elif provider == "sendgrid":
176
+ from nornweave.adapters.sendgrid import SendGridAdapter
177
+
177
178
  return SendGridAdapter(api_key=settings.sendgrid_api_key)
178
179
  elif provider == "ses":
180
+ from nornweave.adapters.ses import SESAdapter
181
+
179
182
  return SESAdapter(
180
183
  access_key_id=settings.aws_access_key_id,
181
184
  secret_access_key=settings.aws_secret_access_key,
182
185
  region=settings.aws_region,
183
186
  )
184
187
  elif provider == "resend":
188
+ from nornweave.adapters.resend import ResendAdapter
189
+
185
190
  return ResendAdapter(
186
191
  api_key=settings.resend_api_key,
187
192
  webhook_secret=settings.resend_webhook_secret,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nornweave
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Open-source, self-hosted Inbox-as-a-Service API for AI Agents
5
5
  Project-URL: Homepage, https://github.com/DataCovey/nornweave
6
6
  Project-URL: Documentation, https://nornweave.datacovey.com/docs/
@@ -16,7 +16,7 @@ nornweave/huginn/__init__.py,sha256=4mC_VL1ERiSoZXHpWD26efzqKwN20ED4GTHljJ8AGbs,
16
16
  nornweave/huginn/client.py,sha256=OZnWfiPpagQ913vs1FvPkkOP2b_DtxYXTILEFlVCxoo,9191
17
17
  nornweave/huginn/config.py,sha256=G1VE9bFtTaJAf-iipqxGkYnviq_yeHKOHySyc_w5tt4,1413
18
18
  nornweave/huginn/resources.py,sha256=-UwMD9faNuhF7N68BU03ahn3AA5ChV7liPbNsxjq_bE,4960
19
- nornweave/huginn/server.py,sha256=5lKiAQHMG6UbtBg3u-1LtV7DIaNlwK24nBaiFyD55rU,6278
19
+ nornweave/huginn/server.py,sha256=wLBO_Ct0Jb8lXG2l5GWpivUVP1gbTWYMkyIERFHm5W8,6278
20
20
  nornweave/models/__init__.py,sha256=qHHVmAIstLJFQzZlYjp4k-KDz6Fs_YqvOl9BWOaejYY,2616
21
21
  nornweave/models/attachment.py,sha256=TeeN3Fe42bo0DAyqBmOgAVOesVytKFJN6i45lz7C-7I,4021
22
22
  nornweave/models/event.py,sha256=JmndUxsEJvoqMyBYJMNLh8ZDaIORcyDCHzo5vYNzjig,6772
@@ -58,7 +58,7 @@ nornweave/verdandi/sanitizer.py,sha256=aLDiuslCkuBDgAhPKDDTaHtG51MWIRAbjDEzpN1cN
58
58
  nornweave/verdandi/threading.py,sha256=8XWVphAFDAPEMQZ-EzJPZiYcRhnkUuRwyb9-_oNdsmQ,10543
59
59
  nornweave/yggdrasil/__init__.py,sha256=AmtQ0PBXOqLWnaEXN4c4it0JzsbhPR4ACdTgsTZ0_Ak,41
60
60
  nornweave/yggdrasil/app.py,sha256=w3m6EOtJTeQKh2uGSVqBF8VkI6XBbl_INcyRKxzumho,2596
61
- nornweave/yggdrasil/dependencies.py,sha256=qbdPtN57SvXvcskGi7MEt7ne-t6TJQXK6rps3FVmaM4,6426
61
+ nornweave/yggdrasil/dependencies.py,sha256=TgrJXYEdBPCNkVmwbvgm36_Tdvkvtpr2g4M2avz4Vxw,6579
62
62
  nornweave/yggdrasil/middleware/__init__.py,sha256=epGY0eVYG4p8CSN2HrDVr3D34E_Vj_ZhKhHtSvZfuBo,33
63
63
  nornweave/yggdrasil/middleware/auth.py,sha256=v-JDrb3jIicrjg_QchHeiYgfnpIIiM31SHGdioBFaEk,54
64
64
  nornweave/yggdrasil/middleware/logging.py,sha256=AxAWfVLorrR6OWRfNHm6RP3QgG0UhIOsNyYKkaKLWTw,56
@@ -73,8 +73,8 @@ nornweave/yggdrasil/routes/webhooks/mailgun.py,sha256=G6c5Mr24uHyxft5U2wo7itHpkz
73
73
  nornweave/yggdrasil/routes/webhooks/resend.py,sha256=OExdLbNN9hwbUDMG-YH_Lw5NhV-bfZ6TXE7yOISzQfw,12332
74
74
  nornweave/yggdrasil/routes/webhooks/sendgrid.py,sha256=ABcpjRTJ8QE2h9_vzhfXtCwOyL_UEVObrghWwQoPyvc,465
75
75
  nornweave/yggdrasil/routes/webhooks/ses.py,sha256=c0cUs_DLjHGTXW26Dp20xQ76-SKZ9uzLTRNQlp6G06M,472
76
- nornweave-0.1.2.dist-info/METADATA,sha256=Z1ysC3qqqm25c31zXCuy1ngflEpy-AHDrMVURPjNeO8,10353
77
- nornweave-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
78
- nornweave-0.1.2.dist-info/entry_points.txt,sha256=0FFL4MJSIBy8S2YJ5fUpAQbTyH5D5c30rEM6KTc93yk,112
79
- nornweave-0.1.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
80
- nornweave-0.1.2.dist-info/RECORD,,
76
+ nornweave-0.1.3.dist-info/METADATA,sha256=QDGwR9d4H6S8Fn2dfU3y7qGArZqKZEy_E1-Ljz5aj6s,10353
77
+ nornweave-0.1.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
78
+ nornweave-0.1.3.dist-info/entry_points.txt,sha256=0FFL4MJSIBy8S2YJ5fUpAQbTyH5D5c30rEM6KTc93yk,112
79
+ nornweave-0.1.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
80
+ nornweave-0.1.3.dist-info/RECORD,,