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.1.tar.gz (26.7 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.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file scitex_types-0.1.1.tar.gz.

File metadata

  • Download URL: scitex_types-0.1.1.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_types-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c63e74fa4264850468307da5366bebe2b4bf082b6f50919eb61883c57fdc7b2f
MD5 d9edf3329c4cdb8584c454c1e378160e
BLAKE2b-256 a10442c628ed5c30507dd7a9ce48eb0206de9230602797fd0cc394ffdf21fe84

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_types-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-types

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_types-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scitex_types-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_types-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d182cd396c28ad02c801a7f371a46f0add27d76ce5dfe7789a6fe431d6b93652
MD5 c1f08094ab4a6311996a9b7942fbe1fc
BLAKE2b-256 c8ee202df51ed4479638b1bda79f970f15eefe29a06dd813cf0d91b0f1b27a69

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_types-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ywatanabe1989/scitex-types

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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