checkifvalid


Namecheckifvalid JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/dmachard/python-checkifvalid
SummarySyntax validator for email, hostname, url, uri and ip address, compliant to RFC specifications
upload_time2023-12-10 08:08:53
maintainer
docs_urlNone
authorDenis MACHARD
requires_python
license
keywords ipv6 ipv4 syntax validator regex
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://pypi.org/project/checkifvalid/) website

```bash
pip install checkifvalid
```

## Checking IPv4 or IPv6 syntax

```python
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

```python
import checkifvalid

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

## Other syntax validator

```python
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

```bash
python3 -m unittest discover tests/ -v
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dmachard/python-checkifvalid",
    "name": "checkifvalid",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ipv6 ipv4 syntax validator regex",
    "author": "Denis MACHARD",
    "author_email": "d.machard@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/75/c7/7db2f020f629b8ebd9ae21226b1d299ba6846c0bbf9f5f95e26857550a93/checkifvalid-0.1.1.tar.gz",
    "platform": "any",
    "description": "# What is this?\n\nSyntax validator compliant to RFC specifications for\n- Email\n- Hostname\n- URL\n- URI\n- IPv4 and IPv6\n- Mac address \n\n## Installation\n\nThis module can be installed from [pypi](https://pypi.org/project/checkifvalid/) website\n\n```bash\npip install checkifvalid\n```\n\n## Checking IPv4 or IPv6 syntax\n\n```python\nimport checkifvalid\n\ncheckifvalid.ipv6_address(\"::1\")\nTrue\n\ncheckifvalid.ipv4_address(\"127.0.0.1\")\nTrue\n\ncheckifvalid.ipv4_address(\"127.0.0.257\")\nFalse\n```\n\n## Checking URL syntax\n\n```python\nimport checkifvalid\n\ncheckifvalid.url(\"https://www.google.com\")\nTrue\n```\n\n## Other syntax validator\n\n```python\nimport checkifvalid\n\ncheckifvalid.email(\"john.doe@example.com\")\nTrue\n\ncheckifvalid.uri(\"sip:support@john.doe:443\",)\nTrue\n\ncheckifvalid.mac_address(\"00:11:22:33:44:55\")\nTrue\n\ncheckifvalid.hostname(\"john@doe\")\nFalse\n```\n\n## For developpers\n\nRun test units\n\n```bash\npython3 -m unittest discover tests/ -v\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Syntax validator for email, hostname, url, uri and ip address, compliant to RFC specifications",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/dmachard/python-checkifvalid"
    },
    "split_keywords": [
        "ipv6",
        "ipv4",
        "syntax",
        "validator",
        "regex"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "79e2ef114f22b3e1c564dc2020b3f31782f895146b957dc8f394499756963e6a",
                "md5": "1301540afc42f2da33886a850264c338",
                "sha256": "d85aee2d2893763df8b52469d70579ba7af0faac0d8b2a04af2ebb7d753e154d"
            },
            "downloads": -1,
            "filename": "checkifvalid-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1301540afc42f2da33886a850264c338",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10481,
            "upload_time": "2023-12-10T08:08:52",
            "upload_time_iso_8601": "2023-12-10T08:08:52.868694Z",
            "url": "https://files.pythonhosted.org/packages/79/e2/ef114f22b3e1c564dc2020b3f31782f895146b957dc8f394499756963e6a/checkifvalid-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75c77db2f020f629b8ebd9ae21226b1d299ba6846c0bbf9f5f95e26857550a93",
                "md5": "fdb96a492fdfbb682c8f1529519ec802",
                "sha256": "9b06f742845a718909fb9cf6ae9a1d533a82365e696216ad2d355bc93226da1e"
            },
            "downloads": -1,
            "filename": "checkifvalid-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fdb96a492fdfbb682c8f1529519ec802",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6855,
            "upload_time": "2023-12-10T08:08:53",
            "upload_time_iso_8601": "2023-12-10T08:08:53.691349Z",
            "url": "https://files.pythonhosted.org/packages/75/c7/7db2f020f629b8ebd9ae21226b1d299ba6846c0bbf9f5f95e26857550a93/checkifvalid-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-10 08:08:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dmachard",
    "github_project": "python-checkifvalid",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "checkifvalid"
}
        
Elapsed time: 0.49222s