checkBest


NamecheckBest JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/Bestsenator/checkBest
SummaryA collection of Python functions designed to validate various types of input. These functions can be used to ensure that user inputs such as passwords, emails, and other required fields meet specific criteria.
upload_time2024-08-16 07:21:00
maintainerNone
docs_urlNone
authorBestsenator
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Validator Functions Repository

This repository contains a collection of Python functions designed to validate various types of input. These functions can be used to ensure that user inputs such as passwords, emails, and other required fields meet specific criteria.

## Features

- **Password Validator**: Checks if the password meets the required structure (e.g., length, special characters, uppercase, and lowercase).
- **Email Validator**: Validates the structure of an email to ensure it follows standard email formatting rules.
- **Null Check**: Ensures that the input is not null or empty.
- **Custom Validators**: Other custom validation functions tailored for specific use cases.

## Installation

You can install this package using pip:


```bash
pip install checkBest
```

## Usage

Here is how you can use the provided validation functions:

### Password Validator

```python
from checkBest import checkPassword

password = "YourP@ssw0rd"
if checkPassword(password):
    print("Password is valid!")
else:
    print("Password is invalid.")
```

### Email Validator

```python
from checkBest import checkEmail

email = "example@example.com"
if checkEmail(email):
    print("Email is valid!")
else:
    print("Email is invalid.")
```

### Null Check

```python
from checkBest import checkInput

input_value = ["test", 2, "test2", null]
if checkInput(input_value):
    print("Inputs is not null!")
else:
    print("Inputs is null.")
```

### Phone/Line Check

```python
from checkBest import checkPhone

input_value = "09123456789"
if checkPhone(input_value, "phone"):
    print("Inputs is valid!")
else:
    print("Inputs is invalid.")

input_value = "01234567890"
if checkPhone(input_value, "line"):
    print("Input is valid!")
else:
    print("Input is invalid.")
```

### Type Int Check

```python
from checkBest import checkInputInt

input_value = "524155"
if checkInputInt(input_value) is False:
    print("Input is not Int!")
else:
    print("Input is Int.")
```

## Functions List

- **checkPassword(password: str) -> bool**: Returns `True` if the password is valid based on predefined criteria.
- **checkEmail(email: str) -> bool**: Returns `True` if the email is valid.
- **checkInput(input_value: list) -> bool**: Returns `True` if the all inputs is not null or empty.
- **checkPhone(input_value: str, tp: str) -> bool**: Returns `True` if the input is a phone or live valid.
- **checkInputInt(input_value: any) -> bool**: Returns `False` if the input is not Int.

## Contributing

If you would like to contribute to this project, please fork the repository and submit a pull request. We welcome any improvements or additional validators.

## Contact

For any questions or inquiries, feel free to open an issue or contact me at [senator136019@gmail.com](mailto:senator136019@gmail.com).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Bestsenator/checkBest",
    "name": "checkBest",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Bestsenator",
    "author_email": "senator136019@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/88/e3/163df75d1756fb76d594fe0bb95628aaff5256a2fc645999a6ac9c5370e2/checkBest-0.1.1.tar.gz",
    "platform": null,
    "description": "\r\n# Validator Functions Repository\r\n\r\nThis repository contains a collection of Python functions designed to validate various types of input. These functions can be used to ensure that user inputs such as passwords, emails, and other required fields meet specific criteria.\r\n\r\n## Features\r\n\r\n- **Password Validator**: Checks if the password meets the required structure (e.g., length, special characters, uppercase, and lowercase).\r\n- **Email Validator**: Validates the structure of an email to ensure it follows standard email formatting rules.\r\n- **Null Check**: Ensures that the input is not null or empty.\r\n- **Custom Validators**: Other custom validation functions tailored for specific use cases.\r\n\r\n## Installation\r\n\r\nYou can install this package using pip:\r\n\r\n\r\n```bash\r\npip install checkBest\r\n```\r\n\r\n## Usage\r\n\r\nHere is how you can use the provided validation functions:\r\n\r\n### Password Validator\r\n\r\n```python\r\nfrom checkBest import checkPassword\r\n\r\npassword = \"YourP@ssw0rd\"\r\nif checkPassword(password):\r\n    print(\"Password is valid!\")\r\nelse:\r\n    print(\"Password is invalid.\")\r\n```\r\n\r\n### Email Validator\r\n\r\n```python\r\nfrom checkBest import checkEmail\r\n\r\nemail = \"example@example.com\"\r\nif checkEmail(email):\r\n    print(\"Email is valid!\")\r\nelse:\r\n    print(\"Email is invalid.\")\r\n```\r\n\r\n### Null Check\r\n\r\n```python\r\nfrom checkBest import checkInput\r\n\r\ninput_value = [\"test\", 2, \"test2\", null]\r\nif checkInput(input_value):\r\n    print(\"Inputs is not null!\")\r\nelse:\r\n    print(\"Inputs is null.\")\r\n```\r\n\r\n### Phone/Line Check\r\n\r\n```python\r\nfrom checkBest import checkPhone\r\n\r\ninput_value = \"09123456789\"\r\nif checkPhone(input_value, \"phone\"):\r\n    print(\"Inputs is valid!\")\r\nelse:\r\n    print(\"Inputs is invalid.\")\r\n\r\ninput_value = \"01234567890\"\r\nif checkPhone(input_value, \"line\"):\r\n    print(\"Input is valid!\")\r\nelse:\r\n    print(\"Input is invalid.\")\r\n```\r\n\r\n### Type Int Check\r\n\r\n```python\r\nfrom checkBest import checkInputInt\r\n\r\ninput_value = \"524155\"\r\nif checkInputInt(input_value) is False:\r\n    print(\"Input is not Int!\")\r\nelse:\r\n    print(\"Input is Int.\")\r\n```\r\n\r\n## Functions List\r\n\r\n- **checkPassword(password: str) -> bool**: Returns `True` if the password is valid based on predefined criteria.\r\n- **checkEmail(email: str) -> bool**: Returns `True` if the email is valid.\r\n- **checkInput(input_value: list) -> bool**: Returns `True` if the all inputs is not null or empty.\r\n- **checkPhone(input_value: str, tp: str) -> bool**: Returns `True` if the input is a phone or live valid.\r\n- **checkInputInt(input_value: any) -> bool**: Returns `False` if the input is not Int.\r\n\r\n## Contributing\r\n\r\nIf you would like to contribute to this project, please fork the repository and submit a pull request. We welcome any improvements or additional validators.\r\n\r\n## Contact\r\n\r\nFor any questions or inquiries, feel free to open an issue or contact me at [senator136019@gmail.com](mailto:senator136019@gmail.com).\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A collection of Python functions designed to validate various types of input. These functions can be used to ensure that user inputs such as passwords, emails, and other required fields meet specific criteria.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/Bestsenator/checkBest"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc8c7775aa1553a81a4183f393d91d92a4859b7d691ae142839a27ef012e873b",
                "md5": "93f35199d9742ab9e5c9e111b6159408",
                "sha256": "db20eb626ab0eadb93dd59270ebbe0fd8cd788000c0abe123b65927277ecc219"
            },
            "downloads": -1,
            "filename": "checkBest-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93f35199d9742ab9e5c9e111b6159408",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2974,
            "upload_time": "2024-08-16T07:20:58",
            "upload_time_iso_8601": "2024-08-16T07:20:58.537507Z",
            "url": "https://files.pythonhosted.org/packages/cc/8c/7775aa1553a81a4183f393d91d92a4859b7d691ae142839a27ef012e873b/checkBest-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88e3163df75d1756fb76d594fe0bb95628aaff5256a2fc645999a6ac9c5370e2",
                "md5": "166811d507b5df801028a0411d5b4475",
                "sha256": "498e1b661aa7ca45f8f87d13b3c96128292c081ec6badf3db1d18b86b1001885"
            },
            "downloads": -1,
            "filename": "checkBest-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "166811d507b5df801028a0411d5b4475",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2771,
            "upload_time": "2024-08-16T07:21:00",
            "upload_time_iso_8601": "2024-08-16T07:21:00.036520Z",
            "url": "https://files.pythonhosted.org/packages/88/e3/163df75d1756fb76d594fe0bb95628aaff5256a2fc645999a6ac9c5370e2/checkBest-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-16 07:21:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Bestsenator",
    "github_project": "checkBest",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "checkbest"
}
        
Elapsed time: 1.67747s