{"categories":[{"label":"Scientific/Engineering","url":"https://skillfed.io/packages/category/scientific-engineering/5"}],"enrichment":{"capability":"Provides type hints and runtime type checking for NumPy arrays and pandas DataFrames, including shape and dtype validation.","skillfed_tags":["type-hints","numpy","runtime-validation"],"use_cases":["Add type hints to NumPy array function signatures so IDEs and MyPy can catch shape/dtype mismatches before runtime.","Validate that incoming arrays match expected structure (shape, dtype, field names) using runtime isinstance checks.","Document the expected structure of pandas DataFrames in function signatures for better code clarity.","Catch accidental type errors in numerical computing pipelines by asserting array properties at key points.","Express complex structured arrays (with named fields and nested shapes) in a readable, type-checkable form."],"what_it_does":"nptyping adds type-hint support for NumPy arrays and pandas DataFrames, letting you annotate array shape, dtype, and structure in your code. It works with standard Python type hints (e.g., `NDArray[Shape[\"2, 2\"], Int]`) so type checkers like MyPy can validate your code statically. Beyond static checking, it also provides runtime validation through `isinstance()` checks and an `assert_isinstance()` helper, so you can verify that actual arrays match their declared types at runtime\u2014catching shape mismatches, dtype errors, or structural inconsistencies.\n\nThe package handles NumPy's structured arrays, record arrays, and pandas DataFrames with a concise syntax. It depends only on typing-extensions and numpy, making it lightweight to add to existing projects. However, maintenance is dormant (last release February 2023), so it receives no active updates or bug fixes.","worth_installing":"Yes, if you need type hints for NumPy or pandas and are comfortable with a dormant package. The low install friction and permissive license make it easy to adopt. However, verify that it works with your current NumPy and pandas versions, and be aware that no active maintenance means bugs or incompatibilities with future releases will not be fixed."},"id":"nptyping","links":{"html":"https://skillfed.io/packages/nptyping","md":"https://skillfed.io/packages/nptyping.md","pypi":"https://pypi.org/project/nptyping/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-02-20","license_spdx":null,"license_treatment":"permissive","name":"nptyping","python_support":"supports_current","summary":"Type hints for NumPy."},"popularity":{"monthly_downloads":285526,"position":8054,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.5.0"}
