Using parser.models forces email-validator dependency.
              
              #1431
            
            
              
  
  Closed
              
          
                  
                    
                      peterschutt
                    
                  
                
                  started this conversation in
                Maintainers discussions
              
            Replies: 2 comments 5 replies
-
| 
         Hey Pete, we've got a PR for this and an issue on this already.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    4 replies
                  
                
            -
| 
         That was the intention but we wouldn’t have the bandwidth to maintain both
- we might be able to next year.
For now, I think modularisation will be a great stepping stone. We’ll look
into that after 3.6 drop (v2). 
…On Sun, 7 Aug 2022 at 13:53, Peter Schutt ***@***.***> wrote:
 The topic in #1404
 <#1404> has
 me thinking about whether the pydantic models could be a totally separate
 library that powertools depends on so that they could maybe have a wider
 version support than the core library.
 —
 Reply to this email directly, view it on GitHub
 <#1431 (reply in thread)>,
 or unsubscribe
 <https://github.com/notifications/unsubscribe-auth/AAZPQBHP2OX6YKIBE2DNUKTVX6PUFANCNFSM55ZSEYUA>
 .
 You are receiving this because you commented.Message ID:
 <awslabs/aws-lambda-powertools-python/repo-discussions/1431/comments/3343059
 @github.com>
 
 | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I already use pydantic for domain modelling but before now haven't tried to use the parser models.
I figured seeing I already have pydantic around I would have been good to go, but the package namespace imports in
utilities.parser.modelsfrom.sescause pydantic to throw an import error due tofrom pydantic.networks import EmailStrinses.py.This is the lib it forces to install is https://github.com/JoshData/python-email-validator - not a big library by any stretch, so the bloat effect would be on the small side.
Just figured I'd canvas opinion before opening an issue.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions