Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python-validators
validators
Repository navigation
Code
Issues
6
(6)
Pull requests
27
(27)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
validators
tests
test_domain.py
on
docs-zensical
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 10, 2026
test: cover IDN octet length and the #407 example
nandgator
committed
cd6facb
View commit details
Copy full SHA for cd6facb
View code at this point
Browse repository at this point
test: cover RFC length limits for domain() and hostname()
nandgator
committed
13a7773
View commit details
Copy full SHA for 13a7773
View code at this point
Browse repository at this point
fix: reject an underscore in the last domain label
Show description for a3d77c8
SashaMIT
authored and
nandgator
committed
a3d77c8
View commit details
Copy full SHA for a3d77c8
View code at this point
Browse repository at this point
Commits on Sep 15, 2024
fix(domain): accept .onion as a valid TLD
davidt99
committed
0a791b6
View commit details
Copy full SHA for 0a791b6
View code at this point
Browse repository at this point
Commits on Apr 18, 2024
fix: rfc cases in the `domain` validator
nandgator
committed
181f6dc
View commit details
Copy full SHA for 181f6dc
View code at this point
Browse repository at this point
Commits on Apr 3, 2024
feat: adds `consider_tld` parameter to `domain`, `hostname` and `url` modules
Show description for ebcea68
nandgator
committed
ebcea68
View commit details
Copy full SHA for ebcea68
View code at this point
Browse repository at this point
Commits on Mar 22, 2024
fix: domain name not confirming to rfc_2782
nandgator
committed
c0e29cf
View commit details
Copy full SHA for c0e29cf
View code at this point
Browse repository at this point
patch: `domain` & `url` modules
Show description for 5f6437c
nandgator
committed
5f6437c
View commit details
Copy full SHA for 5f6437c
View code at this point
Browse repository at this point
Commits on Aug 7, 2023
feat: refactoring; updates; fixes; bump version
Show description for 2e0d0ec
nandgator
committed
2e0d0ec
View commit details
Copy full SHA for 2e0d0ec
View code at this point
Browse repository at this point
Commits on Aug 1, 2023
feat: `ValidationFailure` is now `ValidationError`
Show description for 12ae1f5
nandgator
committed
12ae1f5
View commit details
Copy full SHA for 12ae1f5
View code at this point
Browse repository at this point
Commits on Mar 6, 2023
maint: improve `hashes` and `iban` modules
Show description for 6666c1e
nandgator
committed
6666c1e
View commit details
Copy full SHA for 6666c1e
View code at this point
Browse repository at this point
Commits on Mar 2, 2023
maint: improves `domain` module
Show description for 7489857
nandgator
committed
7489857
View commit details
Copy full SHA for 7489857
View code at this point
Browse repository at this point
Commits on Jan 24, 2020
#136 - fixed (#137)
ehmkah
authored and
kvesteri
committed
289ff53
View commit details
Copy full SHA for 289ff53
View code at this point
Browse repository at this point
Commits on Dec 4, 2019
Fix domain validation (#133)
Show description for 7dcfe3c
jmeridth
authored and
kvesteri
committed
7dcfe3c
View commit details
Copy full SHA for 7dcfe3c
View code at this point
Browse repository at this point
Commits on May 8, 2019
Fixes issue with domains that have a single character (#122)
kingbuzzman
authored and
kvesteri
committed
8067721
View commit details
Copy full SHA for 8067721
View code at this point
Browse repository at this point
Commits on Jun 3, 2018
Small change to domain RE (#76)
Show description for fa3cb28
Ni-Knight
authored and
kvesteri
committed
fa3cb28
View commit details
Copy full SHA for fa3cb28
View code at this point
Browse repository at this point
Commits on Jan 30, 2018
IDNA encoded tlds were note implemented correctly.
Show description for 1efa47c
piewpiew
authored and
kvesteri
committed
1efa47c
View commit details
Copy full SHA for 1efa47c
View code at this point
Browse repository at this point
Commits on May 9, 2016
Numeric domains, two numbers in length, not validated
shaunpud
authored and
kvesteri
committed
00c7814
View commit details
Copy full SHA for 00c7814
View code at this point
Browse repository at this point
Commits on Jan 9, 2016
Add support for IDN validation, refs #14
kvesteri
committed
3e51bae
View commit details
Copy full SHA for 3e51bae
View code at this point
Browse repository at this point
Commits on Oct 10, 2015
Add isort and flake8 checks
kvesteri
committed
ef06b9e
View commit details
Copy full SHA for ef06b9e
View code at this point
Browse repository at this point
Add domain validator, refs #9
vanzhiganov
authored and
kvesteri
committed
7a77373
View commit details
Copy full SHA for 7a77373
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.