semvec/pypi-packages huggingface dataset:
Check-Numbers 1.0.7
Numbers checker
License: MIT
Requires Python: >=3.6

# Check Numbers
Python numbers checker

## Installation

```
pip install Check-Numbers
```

## Usage

### Check Zero

```py
from check_numbers import is_zero


print(is_zero(0))
# => True
print(is_zero(1))
# => False
print(is_zero(-1))
# => False
```

### Check Positive

```py
from check_numbers import is_positive


print(is_positive(1))
# => True
print(is_positive(0))
# => False
print(is_positive(-1))
# => False
```

### Check Negative

```py
from check_numbers import is_negative


print(is_negative(-1))
# => True
print(is_negative(0))
# => False
print(is_negative(1))
# => False
```

### Check Odd

```py
from check_numbers import is_odd


print(is_odd(1))
# => True
print(is_odd(0))
# => False
print(is_odd(2))
# => False
```

### Check Even

```py
from check_numbers import is_even


print(is_even(2))
# => True
print(is_even(0))
# => False
print(is_even(1))
# => False
```

### Check Prime

```py
from check_numbers import is_prime


print(is_prime(5))
# => True
print(is_prime(0))
# => False
print(is_prime(1))
# => False
```
pylicy 0.1.1
Extensible and customizable policy definition and enforcement framework
License: MIT
Requires Python: >=3.9,<4.0

# Pylicy

An customizable and extensible policy creation and enforcement framework.

## Installation

```
$ pip install pylicy
```

## A Simple Example

Examples can be found in the `examples/` directory.

```python
import asyncio
import pylicy

@pylicy.policy_checker('token_age_policy')
async def my_policy(resource: pylicy.Resource, rule: pylicy.Rule) -> pylicy.PolicyDecision:
    if resource.data['token_age'] > 30:
        return pylicy.PolicyDecision(
            action=pylicy.PolicyDecisionAction.DENY,
            reason="expired",
            detail={'age': resource.data['token_age']}
        )
    elif resource.data['token_age'] > 20:
        return pylicy.PolicyDecision(action=pylicy.PolicyDecisionAction.WARN)
    else:
        return pylicy.PolicyDecision(action=pylicy.PolicyDecisionAction.ALLOW)

policies = pylicy.Pylicy.from_rules([
    pylicy.UserRule(
        name='token_age',
        resources=['*_token*'],
        policies=['token_*'],
    )
])

results = asyncio.run(policies.apply_all([
    pylicy.Resource(id='my_ok_token', data={'token_age': 10}),
    pylicy.Resource(id='my_old_token', data={'token_age': 21}),
    pylicy.Resource(id='my_expired_token', data={'token_age': 90})
]))

print(results)
```

## License
This project is licensed under the terms of the MIT license.
Numbers-Extract 1.0.6
Numbers extract from string
License: MIT
Requires Python: >=3.6

# Numbers Extract
Numbers extract from string

## Installation

```
pip install Numbers-Extract
```

## Usage

```py
import numbers_extract

string = """Hello,
You can contact me.
Ph No. +910000000000"""
print(numbers_extract.extract(string))
# => ['+910000000000']
```