Scientific type definitions (ArrayLike, ColorLike) and validation
Project description
scitex-types
Scientific type definitions (ArrayLike, ColorLike) and validation utilities.
Installation
pip install scitex-types
With optional dependencies:
pip install scitex-types[numpy,pandas]
pip install scitex-types[all]
Usage
from scitex_types import ArrayLike, ColorLike, is_array_like, is_list_of_type
# Type annotations
def process(data: ArrayLike) -> None: ...
def set_color(c: ColorLike) -> None: ...
# Runtime checks
is_array_like([1, 2, 3]) # True
is_list_of_type([1, 2, 3], int) # True
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scitex_types-0.1.0.tar.gz
(17.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scitex_types-0.1.0.tar.gz.
File metadata
- Download URL: scitex_types-0.1.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96fd87efa33cdaead36bd119c0be0c865b82b92306138cb62b6320fb1c545ea8
|
|
| MD5 |
e9173d355f09282c84a6c77d4133bb0c
|
|
| BLAKE2b-256 |
998fae40c2d9b15cc1d4d079d554b0c3dc06c794de5406fd5afcdfa44407e521
|
File details
Details for the file scitex_types-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scitex_types-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0rc1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f06882ec7468eb5d34530e906993c250833130240681fdeb81b864459694ac02
|
|
| MD5 |
a4f26f5f7191abde52d26730e0757754
|
|
| BLAKE2b-256 |
ac997e3628c50e76e6e539e4e9a9a6dc3b94ab2be8ec5304f6a4d4ebbc928145
|