Skip to content

PyIs

A lightweight Python library providing small helpers for type, presence, and number validation.

PyIs offers reusable validation functions for common value checks, helping reduce repetitive conditional statements and improve code readability.

PyPI version

Package Information

Property Value
Package pyis
Registry PyPI
Latest Version npm
Python >=3.10
License MIT

Resources

Installation

Using pip:

pip install pyis

Using uv:

uv add pyis

Quick Start

from pyis import validations

# Type validation
print(validations.type.is_string("hello"))  # True
print(validations.type.is_int(42))          # True

# Presence validation
print(validations.amount.is_set(10))        # True
print(validations.amount.is_empty(None))    # True

# Number validation
print(validations.numbers.is_positive(10))  # True
print(validations.numbers.is_negative(-5))  # True
print(validations.numbers.is_zero(0))       # True

Available Validation Groups

Group Description
validations.type Checks Python value types
validations.amount Checks whether a value is set or empty
validations.numbers Checks positive, negative, and zero values

PyIs provides helpers for common types such as integers, strings, floats, booleans, lists, dictionaries, and tuples.

For the complete list of methods and their behavior, visit the official documentation.

License

PyIs is distributed under the MIT License.