semvec/pypi-packages huggingface dataset:
cronexpr-validator 1.0.2
The python validator for cron expressions
License: MIT
Keywords: cron expression validator

# cronexpr-validator

The python validator for cron expressions

`cronexpr-validator` leverages regex expressions to do syntax validations on your cron expressions.

| **Fields**   | **Required** | **Allowed values** | **Allowed Special Characters** |
|--------------|--------------|--------------------|--------------------------------|
| Seconds      |       Y      | 0-59               | , - * /                        |
| Minutes      |       Y      | 0-59               | , - * /                        |
| Hours        |       Y      | 0-23               | , - * /                        |
| Day of Month |       Y      | 1-31               | , - * / ? L W                  |
| Month        |       Y      | 1-12 or JAN-DEC    | , - * /                        |
| Day of Week  |       Y      | 0-6 or SUN-SAT     | , - * / ? L                    |
| Year         |       N      | empty or 1970-2099 | , - * /                        |

### Methods available

`validate` -> Validates a given cron expression and returns a boolean evaluated value. 
Example: `Validator.validate("0 0 12 * * *")`

`validate_seconds_and_minutes` -> Validates a cron subexpression of seconds or minutes and returns a boolean evaluated values.
Example: `Validator.validate_seconds_and_minutes("*/5")`

`validate_hours` -> Validates a cron subexpression of hours and returns a boolean evaluated values.
Example: `Validator.validate_hours("*/5")`

`validate_day_of_month` -> Validates a cron subexpression of the day of the month and returns a boolean evaluated value.
Example: `Validator.validate_day_of_month("31")`

`validate_month` -> Validates a cron subexpression of the month and returns a boolean evaluated value.
Example: `Validator.validate_month("DEC")`

`validate_day_of_week` -> Validates a cron subexpression of the day of the week and returns a boolean evaluated value.
Example: `Validator.validate_day_of_week("0")`

`validate_year` -> Validates a cron subexpression of the year and returns a boolean evaluated value.
Example: `Validator.validate_year("0")`
lighthash 0.2.1
Fast coarse hashes from files
License: MIT
Keywords: hash,file,fibonacci,crc32,md5,sha256

#  Install

``` bash
$ pip3 install lighthash
```

# Use

Calculate the checksum based on ten equidistant bytes, and the file size. 
The very first and the very last byte of the file will be among the ten read.

``` python3
from pathlib import Path
from lighthash import file_to_hash_equidistant 

print(file_to_hash_equidistant(Path('/path/to/file.dat'), n=10))
```

Calculate the checksum based on the bytes located at an increasing distance from
each other, and the file size. In this case, we will read more bytes from the
file header than from the body.

``` python3
from pathlib import Path
from lighthash import file_to_hash_fibonacci

print(file_to_hash_fibonacci(Path('/path/to/file.dat')))
```

### HashAlgo

The optional `HashAlgo` argument allows you to select a hashing algorithm.

| Algorithm         | Digest Size (bytes) |
|-------------------|---------------------|
| `HashAlgo.crc32`  | 4                   |
| `HashAlgo.md5`    | 24                  |
| `HashAlgo.sha256` | 32                  |

```python3
from pathlib import Path
from lighthash import file_to_hash_fibonacci, HashAlgo

print(file_to_hash_fibonacci(Path('/path/to/file.dat'), algo=HashAlgo.crc32))
```
owmeta 0.12.4.dev20220619003248
A Python library for working with OpenWorm data and models
License: MIT


owmeta
======

A unified, simple data access library in Python for data, facts, and models of
*C. elegans* anatomy for the `OpenWorm project <http://www.openworm.org>`_

What does it do?
----------------

Enables a simple Python API for asking various questions about the cells of the
*C. elegans*, enabling the sharing of data about *C. elegans* for the purpose
of building a `data-to-model pipeline <http://docs.openworm.org/en/latest/projects>`_
for the OpenWorm project. In addition, it is a repository for various iterations
of inferred / predicted data about *C. elegans*. Uncontroversial facts and
inferred information are distinguished through the use of explicit Evidence
references.