Thanks to visit codestin.com
Credit goes to github.com

Skip to content

URLValidator and EmailValidator classes from Django extracted to a separate package. Used to avoid adding django dependency to a python only project.

License

Notifications You must be signed in to change notification settings

adonisnafeh/urlvalidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlvalidator Latest version on Pypi

Build Status - master branch Coverage of the code

URLValidator and EmailValidator classes from Django extracted to a separate package. Used to avoid adding django dependency to a python only project.

Installation

pip install urlvalidator (or add to your requirements.txt)

Usage

from urlvalidator import validate_url, validate_email, ValidationError


try:
   validate_url("https://www.google.com")
except ValidationError:
   raise ValidationError("Invalid URL")

try:
   validate_email("[email protected]")
except ValidationError:
   raise ValidationError("Invalid Email")

License

3 Clause BSD.

Bug report and Help

For bug reports open a github ticket. Patches gratefully accepted.

About

URLValidator and EmailValidator classes from Django extracted to a separate package. Used to avoid adding django dependency to a python only project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages