Visitar URL original
feature request: validators.uri() · Issue #40 · python-validators/validators · GitHub
Skip to content

feature request: validators.uri() #40

Description

@johnnybubonic

it may be worth adding a separate method, validators.uri()

https://en.wikipedia.org/wiki/Uniform_Resource_Identifier

validators.url() could then be validators.uri.url() (while retaining validators.url() for backwards compatibility).

this would also allow file paths to be validated, e.g.

validators.uri.file('file:///tmp/file.txt')

IRC connections:

validators.uri.irc('irc://irc.freenode.org:6667/#somechannel

etc.

For official specification, see RFC3986 § 3.

Activity

  1. maaaaz commented on Oct 29, 2023

    @maaaaz

    An URI validator would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIssue/PR: A new featureoutdatedIssue/PR: Open for more than 3 months

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions