Skip to content

Add hostname validator#220

Closed
Aetton wants to merge 1 commit intopython-validators:masterfrom
Aetton:master
Closed

Add hostname validator#220
Aetton wants to merge 1 commit intopython-validators:masterfrom
Aetton:master

Conversation

@Aetton
Copy link
Copy Markdown

@Aetton Aetton commented Dec 20, 2022

There are validators for URL, domain and IP addresses, but no validator for just host

@nandgator nandgator added duplicate Issue/PR: Redundant enhancement Issue/PR: A new feature labels Mar 8, 2023
nandgator added a commit to nandgator/pyvalidators that referenced this pull request Mar 11, 2023
- hostname can be
  - a simple alpha-numeral, in the context of system names
  - an ip address, in the context of URLs
  - a domain name, in the context of URLs
  - in all the above cases, it can be with or without port number
- adds tests, update docs

**Related items**

*PRs*

- Closes python-validators#220
@nandgator
Copy link
Copy Markdown
Collaborator

ref #240

nandgator added a commit to nandgator/pyvalidators that referenced this pull request Mar 11, 2023
- hostname can be
  - a simple alpha-numeral, in the context of system names
  - an ip address, in the context of URLs
  - a domain name, in the context of URLs
  - in all the above cases, it can be with or without port number
- adds tests, update docs

**Related items**

*PRs*

- Closes python-validators#220
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate Issue/PR: Redundant enhancement Issue/PR: A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants