Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_types-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

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

Hashes for scitex_types-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96fd87efa33cdaead36bd119c0be0c865b82b92306138cb62b6320fb1c545ea8
MD5 e9173d355f09282c84a6c77d4133bb0c
BLAKE2b-256 998fae40c2d9b15cc1d4d079d554b0c3dc06c794de5406fd5afcdfa44407e521

See more details on using hashes here.

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

Hashes for scitex_types-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f06882ec7468eb5d34530e906993c250833130240681fdeb81b864459694ac02
MD5 a4f26f5f7191abde52d26730e0757754
BLAKE2b-256 ac997e3628c50e76e6e539e4e9a9a6dc3b94ab2be8ec5304f6a4d4ebbc928145

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page