CSenshi / Validator

Easy-to-use, Highly Configurable Python Data Validator. Inspired by Laravel Validator
https://pypi.org/project/validator/
MIT License
46 stars 23 forks source link

New Rule: URL #60

Open CSenshi opened 4 years ago

CSenshi commented 4 years ago

Write rule that validates data to be date. If data is already datetime class return true. For strings check if it's correctly formatted.

Description: "The field under validation must be a valid date string or class"

Please see CONTRIBUTING.md for Contribution details :100:

CSenshi commented 4 years ago

Suggestion: urllib provides parser for urls, you can use it if you want. from urllib.parse import urlparse Try to parse url, if error occurs return False

bakurits commented 4 years ago

I would like to work on that