@vicoa/cli 0.1.3 → 0.1.4-darwin-arm64

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.
Files changed (288) hide show
  1. package/bin/_internal/81d243bd2c585b0f4821__mypyc.cpython-312-darwin.so +0 -0
  2. package/bin/_internal/_cffi_backend.cpython-312-darwin.so +0 -0
  3. package/bin/_internal/aiohttp/_http_parser.cpython-312-darwin.so +0 -0
  4. package/bin/_internal/aiohttp/_http_writer.cpython-312-darwin.so +0 -0
  5. package/bin/_internal/aiohttp/_websocket/mask.cpython-312-darwin.so +0 -0
  6. package/bin/_internal/aiohttp/_websocket/reader_c.cpython-312-darwin.so +0 -0
  7. package/bin/_internal/asyncpg/protocol/protocol.cpython-312-darwin.so +0 -0
  8. package/bin/_internal/attrs-26.1.0.dist-info/INSTALLER +1 -0
  9. package/bin/_internal/attrs-26.1.0.dist-info/METADATA +199 -0
  10. package/bin/_internal/attrs-26.1.0.dist-info/RECORD +55 -0
  11. package/bin/_internal/attrs-26.1.0.dist-info/WHEEL +4 -0
  12. package/bin/_internal/attrs-26.1.0.dist-info/licenses/LICENSE +21 -0
  13. package/bin/_internal/base_library.zip +0 -0
  14. package/bin/_internal/certifi/cacert.pem +4494 -0
  15. package/bin/_internal/certifi/py.typed +0 -0
  16. package/bin/_internal/charset_normalizer/cd.cpython-312-darwin.so +0 -0
  17. package/bin/_internal/charset_normalizer/md.cpython-312-darwin.so +0 -0
  18. package/bin/_internal/click-8.3.2.dist-info/INSTALLER +1 -0
  19. package/bin/_internal/click-8.3.2.dist-info/METADATA +84 -0
  20. package/bin/_internal/click-8.3.2.dist-info/RECORD +40 -0
  21. package/bin/_internal/click-8.3.2.dist-info/WHEEL +4 -0
  22. package/bin/_internal/click-8.3.2.dist-info/licenses/LICENSE.txt +28 -0
  23. package/bin/_internal/cryptography/hazmat/bindings/_rust.abi3.so +0 -0
  24. package/bin/_internal/cryptography-46.0.7.dist-info/INSTALLER +1 -0
  25. package/bin/_internal/cryptography-46.0.7.dist-info/METADATA +139 -0
  26. package/bin/_internal/cryptography-46.0.7.dist-info/RECORD +180 -0
  27. package/bin/_internal/cryptography-46.0.7.dist-info/WHEEL +4 -0
  28. package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE +3 -0
  29. package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE.APACHE +202 -0
  30. package/bin/_internal/cryptography-46.0.7.dist-info/licenses/LICENSE.BSD +27 -0
  31. package/bin/_internal/email_validator-2.1.0.dist-info/INSTALLER +1 -0
  32. package/bin/_internal/email_validator-2.1.0.dist-info/LICENSE +121 -0
  33. package/bin/_internal/email_validator-2.1.0.dist-info/METADATA +482 -0
  34. package/bin/_internal/email_validator-2.1.0.dist-info/RECORD +26 -0
  35. package/bin/_internal/email_validator-2.1.0.dist-info/REQUESTED +0 -0
  36. package/bin/_internal/email_validator-2.1.0.dist-info/WHEEL +5 -0
  37. package/bin/_internal/email_validator-2.1.0.dist-info/entry_points.txt +2 -0
  38. package/bin/_internal/email_validator-2.1.0.dist-info/top_level.txt +1 -0
  39. package/bin/_internal/fastmcp-2.9.2.dist-info/INSTALLER +1 -0
  40. package/bin/_internal/fastmcp-2.9.2.dist-info/METADATA +465 -0
  41. package/bin/_internal/fastmcp-2.9.2.dist-info/RECORD +150 -0
  42. package/bin/_internal/fastmcp-2.9.2.dist-info/REQUESTED +0 -0
  43. package/bin/_internal/fastmcp-2.9.2.dist-info/WHEEL +4 -0
  44. package/bin/_internal/fastmcp-2.9.2.dist-info/entry_points.txt +2 -0
  45. package/bin/_internal/fastmcp-2.9.2.dist-info/licenses/LICENSE +201 -0
  46. package/bin/_internal/frozenlist/_frozenlist.cpython-312-darwin.so +0 -0
  47. package/bin/_internal/h2-4.3.0.dist-info/INSTALLER +1 -0
  48. package/bin/_internal/h2-4.3.0.dist-info/METADATA +129 -0
  49. package/bin/_internal/h2-4.3.0.dist-info/RECORD +29 -0
  50. package/bin/_internal/h2-4.3.0.dist-info/WHEEL +5 -0
  51. package/bin/_internal/h2-4.3.0.dist-info/licenses/LICENSE +21 -0
  52. package/bin/_internal/h2-4.3.0.dist-info/top_level.txt +1 -0
  53. package/bin/_internal/httptools/parser/parser.cpython-312-darwin.so +0 -0
  54. package/bin/_internal/httptools/parser/url_parser.cpython-312-darwin.so +0 -0
  55. package/bin/_internal/integrations/cli_wrappers/IMPORTANT_USE_CASES.md +33 -0
  56. package/bin/_internal/integrations/github/claude-code-action/.prettierignore +2 -0
  57. package/bin/_internal/integrations/github/claude-code-action/.prettierrc +1 -0
  58. package/bin/_internal/integrations/github/claude-code-action/CLAUDE.md +136 -0
  59. package/bin/_internal/integrations/github/claude-code-action/CODE_OF_CONDUCT.md +128 -0
  60. package/bin/_internal/integrations/github/claude-code-action/CONTRIBUTING.md +116 -0
  61. package/bin/_internal/integrations/github/claude-code-action/LICENSE +21 -0
  62. package/bin/_internal/integrations/github/claude-code-action/README.md +53 -0
  63. package/bin/_internal/integrations/github/claude-code-action/ROADMAP.md +20 -0
  64. package/bin/_internal/integrations/github/claude-code-action/SECURITY.md +15 -0
  65. package/bin/_internal/integrations/github/claude-code-action/action.yml +294 -0
  66. package/bin/_internal/integrations/github/claude-code-action/base-action/.prettierrc +1 -0
  67. package/bin/_internal/integrations/github/claude-code-action/base-action/CLAUDE.md +60 -0
  68. package/bin/_internal/integrations/github/claude-code-action/base-action/CODE_OF_CONDUCT.md +128 -0
  69. package/bin/_internal/integrations/github/claude-code-action/base-action/CONTRIBUTING.md +136 -0
  70. package/bin/_internal/integrations/github/claude-code-action/base-action/LICENSE +21 -0
  71. package/bin/_internal/integrations/github/claude-code-action/base-action/MIRROR_DISCLAIMER.md +11 -0
  72. package/bin/_internal/integrations/github/claude-code-action/base-action/README.md +521 -0
  73. package/bin/_internal/integrations/github/claude-code-action/base-action/action.yml +149 -0
  74. package/bin/_internal/integrations/github/claude-code-action/base-action/bun.lock +54 -0
  75. package/bin/_internal/integrations/github/claude-code-action/base-action/examples/issue-triage.yml +108 -0
  76. package/bin/_internal/integrations/github/claude-code-action/base-action/package.json +23 -0
  77. package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/install-hooks.sh +13 -0
  78. package/bin/_internal/integrations/github/claude-code-action/base-action/scripts/pre-push +46 -0
  79. package/bin/_internal/integrations/github/claude-code-action/base-action/src/index.ts +82 -0
  80. package/bin/_internal/integrations/github/claude-code-action/base-action/src/prepare-prompt.ts +82 -0
  81. package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-claude.ts +257 -0
  82. package/bin/_internal/integrations/github/claude-code-action/base-action/src/run-vicoa.ts +301 -0
  83. package/bin/_internal/integrations/github/claude-code-action/base-action/src/setup-claude-code-settings.ts +68 -0
  84. package/bin/_internal/integrations/github/claude-code-action/base-action/src/validate-env.ts +54 -0
  85. package/bin/_internal/integrations/github/claude-code-action/base-action/test-local.sh +12 -0
  86. package/bin/_internal/integrations/github/claude-code-action/base-action/test-mcp-local.sh +18 -0
  87. package/bin/_internal/integrations/github/claude-code-action/base-action/tsconfig.json +30 -0
  88. package/bin/_internal/integrations/github/claude-code-action/bun.lock +384 -0
  89. package/bin/_internal/integrations/github/claude-code-action/docs/capabilities-and-limitations.md +33 -0
  90. package/bin/_internal/integrations/github/claude-code-action/docs/cloud-providers.md +99 -0
  91. package/bin/_internal/integrations/github/claude-code-action/docs/configuration.md +345 -0
  92. package/bin/_internal/integrations/github/claude-code-action/docs/custom-automations.md +113 -0
  93. package/bin/_internal/integrations/github/claude-code-action/docs/experimental.md +128 -0
  94. package/bin/_internal/integrations/github/claude-code-action/docs/faq.md +205 -0
  95. package/bin/_internal/integrations/github/claude-code-action/docs/migration-guide.md +261 -0
  96. package/bin/_internal/integrations/github/claude-code-action/docs/security.md +38 -0
  97. package/bin/_internal/integrations/github/claude-code-action/docs/setup.md +146 -0
  98. package/bin/_internal/integrations/github/claude-code-action/docs/usage.md +213 -0
  99. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/auto-fix-ci.yml +97 -0
  100. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci/commands/fix-ci.md +127 -0
  101. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/auto-fix-ci-signed.yml +97 -0
  102. package/bin/_internal/integrations/github/claude-code-action/examples/auto-fix-ci-signed/commands/fix-ci-signed.md +148 -0
  103. package/bin/_internal/integrations/github/claude-code-action/examples/issue-deduplication.yml +63 -0
  104. package/bin/_internal/integrations/github/claude-code-action/examples/issue-triage.yml +75 -0
  105. package/bin/_internal/integrations/github/claude-code-action/examples/vicoa.yml +75 -0
  106. package/bin/_internal/integrations/github/claude-code-action/package.json +31 -0
  107. package/bin/_internal/integrations/github/claude-code-action/scripts/install-hooks.sh +13 -0
  108. package/bin/_internal/integrations/github/claude-code-action/scripts/pre-commit +46 -0
  109. package/bin/_internal/integrations/github/claude-code-action/scripts/setup-network-restrictions.sh +123 -0
  110. package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/index.ts +799 -0
  111. package/bin/_internal/integrations/github/claude-code-action/src/create-prompt/types.ts +102 -0
  112. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/collect-inputs.ts +58 -0
  113. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/format-turns.ts +465 -0
  114. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/prepare.ts +98 -0
  115. package/bin/_internal/integrations/github/claude-code-action/src/entrypoints/update-comment-link.ts +245 -0
  116. package/bin/_internal/integrations/github/claude-code-action/src/github/api/client.ts +23 -0
  117. package/bin/_internal/integrations/github/claude-code-action/src/github/api/config.ts +4 -0
  118. package/bin/_internal/integrations/github/claude-code-action/src/github/api/queries/github.ts +117 -0
  119. package/bin/_internal/integrations/github/claude-code-action/src/github/context.ts +277 -0
  120. package/bin/_internal/integrations/github/claude-code-action/src/github/data/fetcher.ts +233 -0
  121. package/bin/_internal/integrations/github/claude-code-action/src/github/data/formatter.ts +144 -0
  122. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch-cleanup.ts +132 -0
  123. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/branch.ts +163 -0
  124. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comment-logic.ts +203 -0
  125. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/common.ts +33 -0
  126. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/create-initial.ts +111 -0
  127. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-claude-comment.ts +70 -0
  128. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/comments/update-with-branch.ts +57 -0
  129. package/bin/_internal/integrations/github/claude-code-action/src/github/operations/git-config.ts +62 -0
  130. package/bin/_internal/integrations/github/claude-code-action/src/github/token.ts +108 -0
  131. package/bin/_internal/integrations/github/claude-code-action/src/github/types.ts +98 -0
  132. package/bin/_internal/integrations/github/claude-code-action/src/github/utils/image-downloader.ts +246 -0
  133. package/bin/_internal/integrations/github/claude-code-action/src/github/utils/sanitizer.ts +100 -0
  134. package/bin/_internal/integrations/github/claude-code-action/src/github/validation/actor.ts +64 -0
  135. package/bin/_internal/integrations/github/claude-code-action/src/github/validation/permissions.ts +47 -0
  136. package/bin/_internal/integrations/github/claude-code-action/src/github/validation/trigger.ts +148 -0
  137. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-actions-server.ts +279 -0
  138. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-comment-server.ts +101 -0
  139. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-file-ops-server.ts +677 -0
  140. package/bin/_internal/integrations/github/claude-code-action/src/mcp/github-inline-comment-server.ts +184 -0
  141. package/bin/_internal/integrations/github/claude-code-action/src/mcp/install-mcp-server.ts +201 -0
  142. package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/index.ts +152 -0
  143. package/bin/_internal/integrations/github/claude-code-action/src/modes/agent/parse-tools.ts +22 -0
  144. package/bin/_internal/integrations/github/claude-code-action/src/modes/detector.ts +66 -0
  145. package/bin/_internal/integrations/github/claude-code-action/src/modes/registry.ts +54 -0
  146. package/bin/_internal/integrations/github/claude-code-action/src/modes/tag/index.ts +187 -0
  147. package/bin/_internal/integrations/github/claude-code-action/src/modes/types.ts +100 -0
  148. package/bin/_internal/integrations/github/claude-code-action/src/prepare/index.ts +20 -0
  149. package/bin/_internal/integrations/github/claude-code-action/src/prepare/types.ts +20 -0
  150. package/bin/_internal/integrations/github/claude-code-action/src/utils/retry.ts +40 -0
  151. package/bin/_internal/integrations/github/claude-code-action/tsconfig.json +30 -0
  152. package/bin/_internal/integrations/n8n/.prettierrc +10 -0
  153. package/bin/_internal/integrations/n8n/LICENSE +21 -0
  154. package/bin/_internal/integrations/n8n/README.md +298 -0
  155. package/bin/_internal/integrations/n8n/package-lock.json +2989 -0
  156. package/bin/_internal/integrations/n8n/package.json +68 -0
  157. package/bin/_internal/jiter/jiter.cpython-312-darwin.so +0 -0
  158. package/bin/_internal/libbz2.dylib +0 -0
  159. package/bin/_internal/libcom_err.3.0.dylib +0 -0
  160. package/bin/_internal/libcrypto.3.dylib +0 -0
  161. package/bin/_internal/libexpat.1.dylib +0 -0
  162. package/bin/_internal/libffi.8.dylib +0 -0
  163. package/bin/_internal/libgssapi_krb5.2.2.dylib +0 -0
  164. package/bin/_internal/libintl.8.dylib +0 -0
  165. package/bin/_internal/libk5crypto.3.1.dylib +0 -0
  166. package/bin/_internal/libkrb5.3.3.dylib +0 -0
  167. package/bin/_internal/libkrb5support.1.1.dylib +0 -0
  168. package/bin/_internal/liblzma.5.dylib +0 -0
  169. package/bin/_internal/libncursesw.6.dylib +0 -0
  170. package/bin/_internal/libpq.5.dylib +0 -0
  171. package/bin/_internal/libpython3.12.dylib +0 -0
  172. package/bin/_internal/libreadline.8.dylib +0 -0
  173. package/bin/_internal/libsqlite3.dylib +0 -0
  174. package/bin/_internal/libssl.3.dylib +0 -0
  175. package/bin/_internal/libtinfow.6.dylib +0 -0
  176. package/bin/_internal/libz.1.dylib +0 -0
  177. package/bin/_internal/mcp-1.9.4.dist-info/INSTALLER +1 -0
  178. package/bin/_internal/mcp-1.9.4.dist-info/METADATA +939 -0
  179. package/bin/_internal/mcp-1.9.4.dist-info/RECORD +154 -0
  180. package/bin/_internal/mcp-1.9.4.dist-info/WHEEL +4 -0
  181. package/bin/_internal/mcp-1.9.4.dist-info/entry_points.txt +2 -0
  182. package/bin/_internal/mcp-1.9.4.dist-info/licenses/LICENSE +21 -0
  183. package/bin/_internal/multidict/_multidict.cpython-312-darwin.so +0 -0
  184. package/bin/_internal/propcache/_helpers_c.cpython-312-darwin.so +0 -0
  185. package/bin/_internal/psycopg2/.dylibs/libcom_err.3.0.dylib +0 -0
  186. package/bin/_internal/psycopg2/.dylibs/libcrypto.3.dylib +0 -0
  187. package/bin/_internal/psycopg2/.dylibs/libgssapi_krb5.2.2.dylib +0 -0
  188. package/bin/_internal/psycopg2/.dylibs/libintl.8.dylib +0 -0
  189. package/bin/_internal/psycopg2/.dylibs/libk5crypto.3.1.dylib +0 -0
  190. package/bin/_internal/psycopg2/.dylibs/libkrb5.3.3.dylib +0 -0
  191. package/bin/_internal/psycopg2/.dylibs/libkrb5support.1.1.dylib +0 -0
  192. package/bin/_internal/psycopg2/.dylibs/libpq.5.dylib +0 -0
  193. package/bin/_internal/psycopg2/.dylibs/libssl.3.dylib +0 -0
  194. package/bin/_internal/psycopg2/_psycopg.cpython-312-darwin.so +0 -0
  195. package/bin/_internal/pydantic_core/_pydantic_core.cpython-312-darwin.so +0 -0
  196. package/bin/_internal/python3.12/lib-dynload/_asyncio.cpython-312-darwin.so +0 -0
  197. package/bin/_internal/python3.12/lib-dynload/_bisect.cpython-312-darwin.so +0 -0
  198. package/bin/_internal/python3.12/lib-dynload/_blake2.cpython-312-darwin.so +0 -0
  199. package/bin/_internal/python3.12/lib-dynload/_bz2.cpython-312-darwin.so +0 -0
  200. package/bin/_internal/python3.12/lib-dynload/_codecs_cn.cpython-312-darwin.so +0 -0
  201. package/bin/_internal/python3.12/lib-dynload/_codecs_hk.cpython-312-darwin.so +0 -0
  202. package/bin/_internal/python3.12/lib-dynload/_codecs_iso2022.cpython-312-darwin.so +0 -0
  203. package/bin/_internal/python3.12/lib-dynload/_codecs_jp.cpython-312-darwin.so +0 -0
  204. package/bin/_internal/python3.12/lib-dynload/_codecs_kr.cpython-312-darwin.so +0 -0
  205. package/bin/_internal/python3.12/lib-dynload/_codecs_tw.cpython-312-darwin.so +0 -0
  206. package/bin/_internal/python3.12/lib-dynload/_contextvars.cpython-312-darwin.so +0 -0
  207. package/bin/_internal/python3.12/lib-dynload/_csv.cpython-312-darwin.so +0 -0
  208. package/bin/_internal/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so +0 -0
  209. package/bin/_internal/python3.12/lib-dynload/_datetime.cpython-312-darwin.so +0 -0
  210. package/bin/_internal/python3.12/lib-dynload/_decimal.cpython-312-darwin.so +0 -0
  211. package/bin/_internal/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so +0 -0
  212. package/bin/_internal/python3.12/lib-dynload/_heapq.cpython-312-darwin.so +0 -0
  213. package/bin/_internal/python3.12/lib-dynload/_json.cpython-312-darwin.so +0 -0
  214. package/bin/_internal/python3.12/lib-dynload/_lzma.cpython-312-darwin.so +0 -0
  215. package/bin/_internal/python3.12/lib-dynload/_md5.cpython-312-darwin.so +0 -0
  216. package/bin/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so +0 -0
  217. package/bin/_internal/python3.12/lib-dynload/_multiprocessing.cpython-312-darwin.so +0 -0
  218. package/bin/_internal/python3.12/lib-dynload/_opcode.cpython-312-darwin.so +0 -0
  219. package/bin/_internal/python3.12/lib-dynload/_pickle.cpython-312-darwin.so +0 -0
  220. package/bin/_internal/python3.12/lib-dynload/_posixshmem.cpython-312-darwin.so +0 -0
  221. package/bin/_internal/python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so +0 -0
  222. package/bin/_internal/python3.12/lib-dynload/_queue.cpython-312-darwin.so +0 -0
  223. package/bin/_internal/python3.12/lib-dynload/_random.cpython-312-darwin.so +0 -0
  224. package/bin/_internal/python3.12/lib-dynload/_scproxy.cpython-312-darwin.so +0 -0
  225. package/bin/_internal/python3.12/lib-dynload/_sha1.cpython-312-darwin.so +0 -0
  226. package/bin/_internal/python3.12/lib-dynload/_sha2.cpython-312-darwin.so +0 -0
  227. package/bin/_internal/python3.12/lib-dynload/_sha3.cpython-312-darwin.so +0 -0
  228. package/bin/_internal/python3.12/lib-dynload/_socket.cpython-312-darwin.so +0 -0
  229. package/bin/_internal/python3.12/lib-dynload/_sqlite3.cpython-312-darwin.so +0 -0
  230. package/bin/_internal/python3.12/lib-dynload/_ssl.cpython-312-darwin.so +0 -0
  231. package/bin/_internal/python3.12/lib-dynload/_statistics.cpython-312-darwin.so +0 -0
  232. package/bin/_internal/python3.12/lib-dynload/_struct.cpython-312-darwin.so +0 -0
  233. package/bin/_internal/python3.12/lib-dynload/_uuid.cpython-312-darwin.so +0 -0
  234. package/bin/_internal/python3.12/lib-dynload/_zoneinfo.cpython-312-darwin.so +0 -0
  235. package/bin/_internal/python3.12/lib-dynload/array.cpython-312-darwin.so +0 -0
  236. package/bin/_internal/python3.12/lib-dynload/binascii.cpython-312-darwin.so +0 -0
  237. package/bin/_internal/python3.12/lib-dynload/fcntl.cpython-312-darwin.so +0 -0
  238. package/bin/_internal/python3.12/lib-dynload/grp.cpython-312-darwin.so +0 -0
  239. package/bin/_internal/python3.12/lib-dynload/math.cpython-312-darwin.so +0 -0
  240. package/bin/_internal/python3.12/lib-dynload/mmap.cpython-312-darwin.so +0 -0
  241. package/bin/_internal/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so +0 -0
  242. package/bin/_internal/python3.12/lib-dynload/readline.cpython-312-darwin.so +0 -0
  243. package/bin/_internal/python3.12/lib-dynload/resource.cpython-312-darwin.so +0 -0
  244. package/bin/_internal/python3.12/lib-dynload/select.cpython-312-darwin.so +0 -0
  245. package/bin/_internal/python3.12/lib-dynload/syslog.cpython-312-darwin.so +0 -0
  246. package/bin/_internal/python3.12/lib-dynload/termios.cpython-312-darwin.so +0 -0
  247. package/bin/_internal/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so +0 -0
  248. package/bin/_internal/python3.12/lib-dynload/zlib.cpython-312-darwin.so +0 -0
  249. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/INSTALLER +1 -0
  250. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/METADATA +133 -0
  251. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/RECORD +21 -0
  252. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/REQUESTED +0 -0
  253. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/WHEEL +5 -0
  254. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +73 -0
  255. package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/top_level.txt +1 -0
  256. package/bin/_internal/setuptools/_vendor/jaraco/text/Lorem ipsum.txt +2 -0
  257. package/bin/_internal/sqlalchemy/cyextension/collections.cpython-312-darwin.so +0 -0
  258. package/bin/_internal/sqlalchemy/cyextension/immutabledict.cpython-312-darwin.so +0 -0
  259. package/bin/_internal/sqlalchemy/cyextension/processors.cpython-312-darwin.so +0 -0
  260. package/bin/_internal/sqlalchemy/cyextension/resultproxy.cpython-312-darwin.so +0 -0
  261. package/bin/_internal/sqlalchemy/cyextension/util.cpython-312-darwin.so +0 -0
  262. package/bin/_internal/uvloop/loop.cpython-312-darwin.so +0 -0
  263. package/bin/_internal/vicoa/_bin/README.md +28 -0
  264. package/bin/_internal/vicoa-1.3.9.dist-info/INSTALLER +1 -0
  265. package/bin/_internal/vicoa-1.3.9.dist-info/METADATA +311 -0
  266. package/bin/_internal/vicoa-1.3.9.dist-info/RECORD +11 -0
  267. package/bin/_internal/vicoa-1.3.9.dist-info/REQUESTED +0 -0
  268. package/bin/_internal/vicoa-1.3.9.dist-info/WHEEL +5 -0
  269. package/bin/_internal/vicoa-1.3.9.dist-info/direct_url.json +1 -0
  270. package/bin/_internal/vicoa-1.3.9.dist-info/entry_points.txt +2 -0
  271. package/bin/_internal/vicoa-1.3.9.dist-info/licenses/LICENSE +201 -0
  272. package/bin/_internal/vicoa-1.3.9.dist-info/top_level.txt +3 -0
  273. package/bin/_internal/watchfiles/_rust_notify.cpython-312-darwin.so +0 -0
  274. package/bin/_internal/websockets/speedups.cpython-312-darwin.so +0 -0
  275. package/bin/_internal/websockets-14.2.dist-info/INSTALLER +1 -0
  276. package/bin/_internal/websockets-14.2.dist-info/LICENSE +24 -0
  277. package/bin/_internal/websockets-14.2.dist-info/METADATA +178 -0
  278. package/bin/_internal/websockets-14.2.dist-info/RECORD +98 -0
  279. package/bin/_internal/websockets-14.2.dist-info/WHEEL +5 -0
  280. package/bin/_internal/websockets-14.2.dist-info/top_level.txt +1 -0
  281. package/bin/_internal/yaml/_yaml.cpython-312-darwin.so +0 -0
  282. package/bin/_internal/yarl/_quoting_c.cpython-312-darwin.so +0 -0
  283. package/bin/_internal/zstandard/_cffi.cpython-312-darwin.so +0 -0
  284. package/bin/_internal/zstandard/backend_c.cpython-312-darwin.so +0 -0
  285. package/bin/vicoa +0 -0
  286. package/package.json +10 -17
  287. package/README.md +0 -57
  288. package/bin/vicoa.js +0 -38
@@ -0,0 +1,482 @@
1
+ Metadata-Version: 2.1
2
+ Name: email-validator
3
+ Version: 2.1.0
4
+ Summary: A robust email address syntax and deliverability validation library.
5
+ Home-page: https://github.com/JoshData/python-email-validator
6
+ Author: Joshua Tauberer
7
+ Author-email: jt@occams.info
8
+ License: CC0 (copyright waived)
9
+ Keywords: email address validator
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.7
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: dnspython >=2.0.0
24
+ Requires-Dist: idna >=2.0.0
25
+
26
+ email-validator: Validate Email Addresses
27
+ =========================================
28
+
29
+ A robust email address syntax and deliverability validation library for
30
+ Python 3.8+ by [Joshua Tauberer](https://joshdata.me).
31
+
32
+ This library validates that a string is of the form `name@example.com`
33
+ and optionally checks that the domain name is set up to receive email.
34
+ This is the sort of validation you would want when you are identifying
35
+ users by their email address like on a registration/login form (but not
36
+ necessarily for composing an email message, see below).
37
+
38
+ Key features:
39
+
40
+ * Checks that an email address has the correct syntax --- good for
41
+ registration/login forms or other uses related to identifying users.
42
+ * Gives friendly English error messages when validation fails that you
43
+ can display to end-users.
44
+ * Checks deliverability (optional): Does the domain name resolve?
45
+ (You can override the default DNS resolver to add query caching.)
46
+ * Supports internationalized domain names and internationalized local parts.
47
+ * Rejects addresses with unsafe Unicode characters, obsolete email address
48
+ syntax that you'd find unexpected, special use domain names like
49
+ `@localhost`, and domains without a dot by default. This is an
50
+ opinionated library!
51
+ * Normalizes email addresses (important for internationalized
52
+ and quoted-string addresses! see below).
53
+ * Python type annotations are used.
54
+
55
+ This is an opinionated library. You should definitely also consider using
56
+ the less-opinionated [pyIsEmail](https://github.com/michaelherold/pyIsEmail) and
57
+ [flanker](https://github.com/mailgun/flanker) if they are better for your
58
+ use case.
59
+
60
+ [![Build Status](https://github.com/JoshData/python-email-validator/actions/workflows/test_and_build.yaml/badge.svg)](https://github.com/JoshData/python-email-validator/actions/workflows/test_and_build.yaml)
61
+
62
+ View the [CHANGELOG / Release Notes](CHANGELOG.md) for the version history of changes in the library. Occasionally this README is ahead of the latest published package --- see the CHANGELOG for details.
63
+
64
+ ---
65
+
66
+ Installation
67
+ ------------
68
+
69
+ This package [is on PyPI](https://pypi.org/project/email-validator/), so:
70
+
71
+ ```sh
72
+ pip install email-validator
73
+ ```
74
+
75
+ (You might need to use `pip3` depending on your local environment.)
76
+
77
+ Quick Start
78
+ -----------
79
+
80
+ If you're validating a user's email address before creating a user
81
+ account in your application, you might do this:
82
+
83
+ ```python
84
+ from email_validator import validate_email, EmailNotValidError
85
+
86
+ email = "my+address@example.org"
87
+
88
+ try:
89
+
90
+ # Check that the email address is valid. Turn on check_deliverability
91
+ # for first-time validations like on account creation pages (but not
92
+ # login pages).
93
+ emailinfo = validate_email(email, check_deliverability=False)
94
+
95
+ # After this point, use only the normalized form of the email address,
96
+ # especially before going to a database query.
97
+ email = emailinfo.normalized
98
+
99
+ except EmailNotValidError as e:
100
+
101
+ # The exception message is human-readable explanation of why it's
102
+ # not a valid (or deliverable) email address.
103
+ print(str(e))
104
+ ```
105
+
106
+ This validates the address and gives you its normalized form. You should
107
+ **put the normalized form in your database** and always normalize before
108
+ checking if an address is in your database. When using this in a login form,
109
+ set `check_deliverability` to `False` to avoid unnecessary DNS queries.
110
+
111
+ Usage
112
+ -----
113
+
114
+ ### Overview
115
+
116
+ The module provides a function `validate_email(email_address)` which
117
+ takes an email address and:
118
+
119
+ - Raises a `EmailNotValidError` with a helpful, human-readable error
120
+ message explaining why the email address is not valid, or
121
+ - Returns an object with a normalized form of the email address (which
122
+ you should use!) and other information about it.
123
+
124
+ When an email address is not valid, `validate_email` raises either an
125
+ `EmailSyntaxError` if the form of the address is invalid or an
126
+ `EmailUndeliverableError` if the domain name fails DNS checks. Both
127
+ exception classes are subclasses of `EmailNotValidError`, which in turn
128
+ is a subclass of `ValueError`.
129
+
130
+ But when an email address is valid, an object is returned containing
131
+ a normalized form of the email address (which you should use!) and
132
+ other information.
133
+
134
+ The validator doesn't, by default, permit obsoleted forms of email addresses
135
+ that no one uses anymore even though they are still valid and deliverable, since
136
+ they will probably give you grief if you're using email for login. (See
137
+ later in the document about how to allow some obsolete forms.)
138
+
139
+ The validator optionally checks that the domain name in the email address has
140
+ a DNS MX record indicating that it can receive email. (Except a Null MX record.
141
+ If there is no MX record, a fallback A/AAAA-record is permitted, unless
142
+ a reject-all SPF record is present.) DNS is slow and sometimes unavailable or
143
+ unreliable, so consider whether these checks are useful for your use case and
144
+ turn them off if they aren't.
145
+ There is nothing to be gained by trying to actually contact an SMTP server, so
146
+ that's not done here. For privacy, security, and practicality reasons, servers
147
+ are good at not giving away whether an address is
148
+ deliverable or not: email addresses that appear to accept mail at first
149
+ can bounce mail after a delay, and bounced mail may indicate a temporary
150
+ failure of a good email address (sometimes an intentional failure, like
151
+ greylisting).
152
+
153
+ ### Options
154
+
155
+ The `validate_email` function also accepts the following keyword arguments
156
+ (defaults are as shown below):
157
+
158
+ `check_deliverability=True`: If true, DNS queries are made to check that the domain name in the email address (the part after the @-sign) can receive mail, as described above. Set to `False` to skip this DNS-based check. It is recommended to pass `False` when performing validation for login pages (but not account creation pages) since re-validation of a previously validated domain in your database by querying DNS at every login is probably undesirable. You can also set `email_validator.CHECK_DELIVERABILITY` to `False` to turn this off for all calls by default.
159
+
160
+ `dns_resolver=None`: Pass an instance of [dns.resolver.Resolver](https://dnspython.readthedocs.io/en/latest/resolver-class.html) to control the DNS resolver including setting a timeout and [a cache](https://dnspython.readthedocs.io/en/latest/resolver-caching.html). The `caching_resolver` function shown below is a helper function to construct a dns.resolver.Resolver with a [LRUCache](https://dnspython.readthedocs.io/en/latest/resolver-caching.html#dns.resolver.LRUCache). Reuse the same resolver instance across calls to `validate_email` to make use of the cache.
161
+
162
+ `test_environment=False`: If `True`, DNS-based deliverability checks are disabled and `test` and `**.test` domain names are permitted (see below). You can also set `email_validator.TEST_ENVIRONMENT` to `True` to turn it on for all calls by default.
163
+
164
+ `allow_smtputf8=True`: Set to `False` to prohibit internationalized addresses that would
165
+ require the
166
+ [SMTPUTF8](https://tools.ietf.org/html/rfc6531) extension. You can also set `email_validator.ALLOW_SMTPUTF8` to `False` to turn it off for all calls by default.
167
+
168
+ `allow_quoted_local=False`: Set to `True` to allow obscure and potentially problematic email addresses in which the part of the address before the @-sign contains spaces, @-signs, or other surprising characters when the local part is surrounded in quotes (so-called quoted-string local parts). In the object returned by `validate_email`, the normalized local part removes any unnecessary backslash-escaping and even removes the surrounding quotes if the address would be valid without them. You can also set `email_validator.ALLOW_QUOTED_LOCAL` to `True` to turn this on for all calls by default.
169
+
170
+ `allow_domain_literal=False`: Set to `True` to allow bracketed IPv4 and "IPv6:"-prefixd IPv6 addresses in the domain part of the email address. No deliverability checks are performed for these addresses. In the object returned by `validate_email`, the normalized domain will use the condensed IPv6 format, if applicable. The object's `domain_address` attribute will hold the parsed `ipaddress.IPv4Address` or `ipaddress.IPv6Address` object if applicable. You can also set `email_validator.ALLOW_DOMAIN_LITERAL` to `True` to turn this on for all calls by default.
171
+
172
+ `allow_empty_local=False`: Set to `True` to allow an empty local part (i.e.
173
+ `@example.com`), e.g. for validating Postfix aliases.
174
+
175
+
176
+ ### DNS timeout and cache
177
+
178
+ When validating many email addresses or to control the timeout (the default is 15 seconds), create a caching [dns.resolver.Resolver](https://dnspython.readthedocs.io/en/latest/resolver-class.html) to reuse in each call. The `caching_resolver` function returns one easily for you:
179
+
180
+ ```python
181
+ from email_validator import validate_email, caching_resolver
182
+
183
+ resolver = caching_resolver(timeout=10)
184
+
185
+ while True:
186
+ validate_email(email, dns_resolver=resolver)
187
+ ```
188
+
189
+ ### Test addresses
190
+
191
+ This library rejects email addresses that use the [Special Use Domain Names](https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml) `invalid`, `localhost`, `test`, and some others by raising `EmailSyntaxError`. This is to protect your system from abuse: You probably don't want a user to be able to cause an email to be sent to `localhost` (although they might be able to still do so via a malicious MX record). However, in your non-production test environments you may want to use `@test` or `@myname.test` email addresses. There are three ways you can allow this:
192
+
193
+ 1. Add `test_environment=True` to the call to `validate_email` (see above).
194
+ 2. Set `email_validator.TEST_ENVIRONMENT` to `True` globally.
195
+ 3. Remove the special-use domain name that you want to use from `email_validator.SPECIAL_USE_DOMAIN_NAMES`, e.g.:
196
+
197
+ ```python
198
+ import email_validator
199
+ email_validator.SPECIAL_USE_DOMAIN_NAMES.remove("test")
200
+ ```
201
+
202
+ It is tempting to use `@example.com/net/org` in tests. They are *not* in this library's `SPECIAL_USE_DOMAIN_NAMES` list so you can, but shouldn't, use them. These domains are reserved to IANA for use in documentation so there is no risk of accidentally emailing someone at those domains. But beware that this library will nevertheless reject these domain names if DNS-based deliverability checks are not disabled because these domains do not resolve to domains that accept email. In tests, consider using your own domain name or `@test` or `@myname.test` instead.
203
+
204
+ Internationalized email addresses
205
+ ---------------------------------
206
+
207
+ The email protocol SMTP and the domain name system DNS have historically
208
+ only allowed English (ASCII) characters in email addresses and domain names,
209
+ respectively. Each has adapted to internationalization in a separate
210
+ way, creating two separate aspects to email address
211
+ internationalization.
212
+
213
+ ### Internationalized domain names (IDN)
214
+
215
+ The first is [internationalized domain names (RFC
216
+ 5891)](https://tools.ietf.org/html/rfc5891), a.k.a IDNA 2008. The DNS
217
+ system has not been updated with Unicode support. Instead, internationalized
218
+ domain names are converted into a special IDNA ASCII "[Punycode](https://www.rfc-editor.org/rfc/rfc3492.txt)"
219
+ form starting with `xn--`. When an email address has non-ASCII
220
+ characters in its domain part, the domain part is replaced with its IDNA
221
+ ASCII equivalent form in the process of mail transmission. Your mail
222
+ submission library probably does this for you transparently. ([Compliance
223
+ around the web is not very good though](http://archives.miloush.net/michkap/archive/2012/02/27/10273315.html).) This library conforms to IDNA 2008
224
+ using the [idna](https://github.com/kjd/idna) module by Kim Davies.
225
+
226
+ ### Internationalized local parts
227
+
228
+ The second sort of internationalization is internationalization in the
229
+ *local* part of the address (before the @-sign). In non-internationalized
230
+ email addresses, only English letters, numbers, and some punctuation
231
+ (`._!#$%&'^``*+-=~/?{|}`) are allowed. In internationalized email address
232
+ local parts, a wider range of Unicode characters are allowed.
233
+
234
+ A surprisingly large number of Unicode characters are not safe to display,
235
+ especially when the email address is concatenated with other text, so this
236
+ library tries to protect you by not permitting resvered, non-, private use,
237
+ formatting (which can be used to alter the display order of characters),
238
+ whitespace, and control characters, and combining characters
239
+ as the first character of the local part and the domain name (so that they
240
+ cannot combine with something outside of the email address string or with
241
+ the @-sign). See https://qntm.org/safe and https://trojansource.codes/
242
+ for relevant prior work. (Other than whitespace, these are checks that
243
+ you should be applying to nearly all user inputs in a security-sensitive
244
+ context.)
245
+
246
+ These character checks are performed after Unicode normalization (see below),
247
+ so you are only fully protected if you replace all user-provided email addresses
248
+ with the normalized email address string returned by this library. This does not
249
+ guard against the well known problem that many Unicode characters look alike
250
+ (or are identical), which can be used to fool humans reading displayed text.
251
+
252
+ Email addresses with these non-ASCII characters require that your mail
253
+ submission library and the mail servers along the route to the destination,
254
+ including your own outbound mail server, all support the
255
+ [SMTPUTF8 (RFC 6531)](https://tools.ietf.org/html/rfc6531) extension.
256
+ Support for SMTPUTF8 varies. See the `allow_smtputf8` parameter.
257
+
258
+ ### If you know ahead of time that SMTPUTF8 is not supported by your mail submission stack
259
+
260
+ By default all internationalized forms are accepted by the validator.
261
+ But if you know ahead of time that SMTPUTF8 is not supported by your
262
+ mail submission stack, then you must filter out addresses that require
263
+ SMTPUTF8 using the `allow_smtputf8=False` keyword argument (see above).
264
+ This will cause the validation function to raise a `EmailSyntaxError` if
265
+ delivery would require SMTPUTF8. That's just in those cases where
266
+ non-ASCII characters appear before the @-sign. If you do not set
267
+ `allow_smtputf8=False`, you can also check the value of the `smtputf8`
268
+ field in the returned object.
269
+
270
+ If your mail submission library doesn't support Unicode at all --- even
271
+ in the domain part of the address --- then immediately prior to mail
272
+ submission you must replace the email address with its ASCII-ized form.
273
+ This library gives you back the ASCII-ized form in the `ascii_email`
274
+ field in the returned object, which you can get like this:
275
+
276
+ ```python
277
+ emailinfo = validate_email(email, allow_smtputf8=False)
278
+ email = emailinfo.ascii_email
279
+ ```
280
+
281
+ The local part is left alone (if it has internationalized characters
282
+ `allow_smtputf8=False` will force validation to fail) and the domain
283
+ part is converted to [IDNA ASCII](https://tools.ietf.org/html/rfc5891).
284
+ (You probably should not do this at account creation time so you don't
285
+ change the user's login information without telling them.)
286
+
287
+ Normalization
288
+ -------------
289
+
290
+ ### Unicode Normalization
291
+
292
+ The use of Unicode in email addresses introduced a normalization
293
+ problem. Different Unicode strings can look identical and have the same
294
+ semantic meaning to the user. The `normalized` field returned on successful
295
+ validation provides the correctly normalized form of the given email
296
+ address.
297
+
298
+ For example, the CJK fullwidth Latin letters are considered semantically
299
+ equivalent in domain names to their ASCII counterparts. This library
300
+ normalizes them to their ASCII counterparts:
301
+
302
+ ```python
303
+ emailinfo = validate_email("me@Domain.com")
304
+ print(emailinfo.normalized)
305
+ print(emailinfo.ascii_email)
306
+ # prints "me@domain.com" twice
307
+ ```
308
+
309
+ Because an end-user might type their email address in different (but
310
+ equivalent) un-normalized forms at different times, you ought to
311
+ replace what they enter with the normalized form immediately prior to
312
+ going into your database (during account creation), querying your database
313
+ (during login), or sending outbound mail. Normalization may also change
314
+ the length of an email address, and this may affect whether it is valid
315
+ and acceptable by your SMTP provider.
316
+
317
+ The normalizations include lowercasing the domain part of the email
318
+ address (domain names are case-insensitive), [Unicode "NFC"
319
+ normalization](https://en.wikipedia.org/wiki/Unicode_equivalence) of the
320
+ whole address (which turns characters plus [combining
321
+ characters](https://en.wikipedia.org/wiki/Combining_character) into
322
+ precomposed characters where possible, replacement of [fullwidth and
323
+ halfwidth
324
+ characters](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
325
+ in the domain part, possibly other
326
+ [UTS46](http://unicode.org/reports/tr46) mappings on the domain part,
327
+ and conversion from Punycode to Unicode characters.
328
+
329
+ (See [RFC 6532 (internationalized email) section
330
+ 3.1](https://tools.ietf.org/html/rfc6532#section-3.1) and [RFC 5895
331
+ (IDNA 2008) section 2](http://www.ietf.org/rfc/rfc5895.txt).)
332
+
333
+ ### Other Normalization
334
+
335
+ Normalization is also applied to quoted-string local parts and domain
336
+ literal IPv6 addresses if you have allowed them by the `allow_quoted_local`
337
+ and `allow_domain_literal` options. In quoted-string local parts, unnecessary
338
+ backslash escaping is removed and even the surrounding quotes are removed if
339
+ they are unnecessary. For IPv6 domain literals, the IPv6 address is
340
+ normalized to condensed form. [RFC 2142](https://datatracker.ietf.org/doc/html/rfc2142)
341
+ also requires lowercase normalization for some specific mailbox names like `postmaster@`.
342
+
343
+ ### Length checks
344
+
345
+ This library checks that the length of the email address is not longer than
346
+ the maximum length. The check is performed on the normalized form of the
347
+ address, which might be different from a string provided by a user. If you
348
+ send email to the original string and not the normalized address, the email
349
+ might be rejected because the original address could be too long.
350
+
351
+ Examples
352
+ --------
353
+
354
+ For the email address `test@joshdata.me`, the returned object is:
355
+
356
+ ```python
357
+ ValidatedEmail(
358
+ normalized='test@joshdata.me',
359
+ local_part='test',
360
+ domain='joshdata.me',
361
+ ascii_email='test@joshdata.me',
362
+ ascii_local_part='test',
363
+ ascii_domain='joshdata.me',
364
+ smtputf8=False)
365
+ ```
366
+
367
+ For the fictitious but valid address `example@ツ.ⓁⒾⒻⒺ`, which has an
368
+ internationalized domain but ASCII local part, the returned object is:
369
+
370
+ ```python
371
+ ValidatedEmail(
372
+ normalized='example@ツ.life',
373
+ local_part='example',
374
+ domain='ツ.life',
375
+ ascii_email='example@xn--bdk.life',
376
+ ascii_local_part='example',
377
+ ascii_domain='xn--bdk.life',
378
+ smtputf8=False)
379
+
380
+ ```
381
+
382
+ Note that `normalized` and other fields provide a normalized form of the
383
+ email address, domain name, and (in other cases) local part (see earlier
384
+ discussion of normalization), which you should use in your database.
385
+
386
+ Calling `validate_email` with the ASCII form of the above email address,
387
+ `example@xn--bdk.life`, returns the exact same information (i.e., the
388
+ `normalized` field always will contain Unicode characters, not Punycode).
389
+
390
+ For the fictitious address `ツ-test@joshdata.me`, which has an
391
+ internationalized local part, the returned object is:
392
+
393
+ ```python
394
+ ValidatedEmail(
395
+ normalized='ツ-test@joshdata.me',
396
+ local_part='ツ-test',
397
+ domain='joshdata.me',
398
+ ascii_email=None,
399
+ ascii_local_part=None,
400
+ ascii_domain='joshdata.me',
401
+ smtputf8=True)
402
+ ```
403
+
404
+ Now `smtputf8` is `True` and `ascii_email` is `None` because the local
405
+ part of the address is internationalized. The `local_part` and `normalized` fields
406
+ return the normalized form of the address.
407
+
408
+ Return value
409
+ ------------
410
+
411
+ When an email address passes validation, the fields in the returned object
412
+ are:
413
+
414
+ | Field | Value |
415
+ | -----:|-------|
416
+ | `normalized` | The normalized form of the email address that you should put in your database. This combines the `local_part` and `domain` fields (see below). |
417
+ | `ascii_email` | If set, an ASCII-only form of the normalized email address by replacing the domain part with [IDNA](https://tools.ietf.org/html/rfc5891) [Punycode](https://www.rfc-editor.org/rfc/rfc3492.txt). This field will be present when an ASCII-only form of the email address exists (including if the email address is already ASCII). If the local part of the email address contains internationalized characters, `ascii_email` will be `None`. If set, it merely combines `ascii_local_part` and `ascii_domain`. |
418
+ | `local_part` | The normalized local part of the given email address (before the @-sign). Normalization includes Unicode NFC normalization and removing unnecessary quoted-string quotes and backslashes. If `allow_quoted_local` is True and the surrounding quotes are necessary, the quotes _will_ be present in this field. |
419
+ | `ascii_local_part` | If set, the local part, which is composed of ASCII characters only. |
420
+ | `domain` | The canonical internationalized Unicode form of the domain part of the email address. If the returned string contains non-ASCII characters, either the [SMTPUTF8](https://tools.ietf.org/html/rfc6531) feature of your mail relay will be required to transmit the message or else the email address's domain part must be converted to IDNA ASCII first: Use `ascii_domain` field instead. |
421
+ | `ascii_domain` | The [IDNA](https://tools.ietf.org/html/rfc5891) [Punycode](https://www.rfc-editor.org/rfc/rfc3492.txt)-encoded form of the domain part of the given email address, as it would be transmitted on the wire. |
422
+ | `domain_address` | If domain literals are allowed and if the email address contains one, an `ipaddress.IPv4Address` or `ipaddress.IPv6Address` object. |
423
+ | `smtputf8` | A boolean indicating that the [SMTPUTF8](https://tools.ietf.org/html/rfc6531) feature of your mail relay will be required to transmit messages to this address because the local part of the address has non-ASCII characters (the local part cannot be IDNA-encoded). If `allow_smtputf8=False` is passed as an argument, this flag will always be false because an exception is raised if it would have been true. |
424
+ | `mx` | A list of (priority, domain) tuples of MX records specified in the DNS for the domain (see [RFC 5321 section 5](https://tools.ietf.org/html/rfc5321#section-5)). May be `None` if the deliverability check could not be completed because of a temporary issue like a timeout. |
425
+ | `mx_fallback_type` | `None` if an `MX` record is found. If no MX records are actually specified in DNS and instead are inferred, through an obsolete mechanism, from A or AAAA records, the value is the type of DNS record used instead (`A` or `AAAA`). May be `None` if the deliverability check could not be completed because of a temporary issue like a timeout. |
426
+ | `spf` | Any SPF record found while checking deliverability. Only set if the SPF record is queried. |
427
+
428
+ Assumptions
429
+ -----------
430
+
431
+ By design, this validator does not pass all email addresses that
432
+ strictly conform to the standards. Many email address forms are obsolete
433
+ or likely to cause trouble:
434
+
435
+ * The validator assumes the email address is intended to be
436
+ usable on the public Internet. The domain part
437
+ of the email address must be a resolvable domain name
438
+ (see the deliverability checks described above).
439
+ Most [Special Use Domain Names](https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml)
440
+ and their subdomains, as well as
441
+ domain names without a `.`, are rejected as a syntax error
442
+ (except see the `test_environment` parameter above).
443
+ * Obsolete email syntaxes are rejected:
444
+ The unusual ["(comment)" syntax](https://github.com/JoshData/python-email-validator/issues/77)
445
+ is rejected. Extremely old obsolete syntaxes are
446
+ rejected. Quoted-string local parts and domain-literal addresses
447
+ are rejected by default, but there are options to allow them (see above).
448
+ No one uses these forms anymore, and I can't think of any reason why anyone
449
+ using this library would need to accept them.
450
+
451
+
452
+ Testing
453
+ -------
454
+
455
+ Tests can be run using
456
+
457
+ ```sh
458
+ pip install -r test_requirements.txt
459
+ make test
460
+ ```
461
+
462
+ Tests run with mocked DNS responses. When adding or changing tests, temporarily turn on the `BUILD_MOCKED_DNS_RESPONSE_DATA` flag in `tests/mocked_dns_responses.py` to re-build the database of mocked responses from live queries.
463
+
464
+ For Project Maintainers
465
+ -----------------------
466
+
467
+ The package is distributed as a universal wheel and as a source package.
468
+
469
+ To release:
470
+
471
+ * Update CHANGELOG.md.
472
+ * Update the version number in `email_validator/version.py`.
473
+ * Make & push a commit with the new version number and make sure tests pass.
474
+ * Make & push a tag (see command below).
475
+ * Make a release at https://github.com/JoshData/python-email-validator/releases/new.
476
+ * Publish a source and wheel distribution to pypi (see command below).
477
+
478
+ ```sh
479
+ git tag v$(cat email_validator/version.py | sed "s/.* = //" | sed 's/"//g')
480
+ git push --tags
481
+ ./release_to_pypi.sh
482
+ ```
@@ -0,0 +1,26 @@
1
+ ../../../bin/email_validator,sha256=K5kKJcfPQaWCVLQ13fK3vQ0RDfs0wsKezKXmf_CRp90,204
2
+ email_validator-2.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
3
+ email_validator-2.1.0.dist-info/LICENSE,sha256=ogEPNDSH0_dhiv_lT3ifVIdgIzHAqNA_SemnxUfPBJk,7048
4
+ email_validator-2.1.0.dist-info/METADATA,sha256=05Enu__QXkc80dt3d_ny2oA-4oWyjpGyxvD25PJaOKE,25834
5
+ email_validator-2.1.0.dist-info/RECORD,,
6
+ email_validator-2.1.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ email_validator-2.1.0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
8
+ email_validator-2.1.0.dist-info/entry_points.txt,sha256=zRM_6bNIUSHTbNx5u6M3nK1MAguvryrc9hICC6HyrBg,66
9
+ email_validator-2.1.0.dist-info/top_level.txt,sha256=fYDOSWFZke46ut7WqdOAJjjhlpPYAaOwOwIsh3s8oWI,16
10
+ email_validator/__init__.py,sha256=_GA_uk_JuZcy6dPSVpvyyQuEPZt7iD-sXDbOd4f9sIQ,4236
11
+ email_validator/__main__.py,sha256=SgarDcfH3W5KlcuUi6aaiQPqMdL3C-mOZVnTS6WesS4,2146
12
+ email_validator/__pycache__/__init__.cpython-312.pyc,,
13
+ email_validator/__pycache__/__main__.cpython-312.pyc,,
14
+ email_validator/__pycache__/deliverability.cpython-312.pyc,,
15
+ email_validator/__pycache__/exceptions_types.cpython-312.pyc,,
16
+ email_validator/__pycache__/rfc_constants.cpython-312.pyc,,
17
+ email_validator/__pycache__/syntax.cpython-312.pyc,,
18
+ email_validator/__pycache__/validate_email.cpython-312.pyc,,
19
+ email_validator/__pycache__/version.cpython-312.pyc,,
20
+ email_validator/deliverability.py,sha256=it2lcdg-uML_-AVXOWQ6FbUW0bJjtViVEh-w2Im1E3g,5861
21
+ email_validator/exceptions_types.py,sha256=yX1-0rSQ-f7HEIy8br_dEhW_Ctw9PCtgCceUSRFEdPo,5807
22
+ email_validator/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
+ email_validator/rfc_constants.py,sha256=2yJVQgKFaVcG2CV-XT4PWevBUjAPVHRycgzOpBaqRZE,2720
24
+ email_validator/syntax.py,sha256=6YF_2M5oSEKgtaX6E5wFnZHCU_9sGrO-We4UReqXGME,27307
25
+ email_validator/validate_email.py,sha256=DDdTj7Xwqhq0pCCMw-fRy213SuM0kmGzu-b2I1yTRNU,6585
26
+ email_validator/version.py,sha256=Xybt2skBZamGMNlLuOX1IG-h4uIxqUDGAO8MIGWrJac,22
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.41.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ email_validator = email_validator.__main__:main