Skip to main content

What is this?

Syntax validator compliant to RFC specifications for

  • Email
  • Hostname
  • URL
  • URI
  • IPv4 and IPv6
  • Mac address

Installation

This module can be installed from pypi website

pip install checkifvalid

Checking IPv4 or IPv6 syntax

import checkifvalid

checkifvalid.ipv6_address("::1")
True

checkifvalid.ipv4_address("127.0.0.1")
True

checkifvalid.ipv4_address("127.0.0.257")
False

Checking URL syntax

import checkifvalid

checkifvalid.url("https://www.google.com")
True

Other syntax validator

import checkifvalid

checkifvalid.email("john.doe@example.com")
True

checkifvalid.uri("sip:support@john.doe:443",)
True

checkifvalid.mac_address("00:11:22:33:44:55")
True

checkifvalid.hostname("john@doe")
False

For developpers

Run test units

python3 -m unittest discover tests/ -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checkifvalid-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checkifvalid-0.1.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file checkifvalid-0.1.1.tar.gz.

File metadata

  • Download URL: checkifvalid-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for checkifvalid-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b06f742845a718909fb9cf6ae9a1d533a82365e696216ad2d355bc93226da1e
MD5 fdb96a492fdfbb682c8f1529519ec802
BLAKE2b-256 75c77db2f020f629b8ebd9ae21226b1d299ba6846c0bbf9f5f95e26857550a93

See more details on using hashes here.

File details

Details for the file checkifvalid-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: checkifvalid-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for checkifvalid-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d85aee2d2893763df8b52469d70579ba7af0faac0d8b2a04af2ebb7d753e154d
MD5 1301540afc42f2da33886a850264c338
BLAKE2b-256 79e2ef114f22b3e1c564dc2020b3f31782f895146b957dc8f394499756963e6a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page