{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Provides a custom JSON encoder class that serializes NumPy data types (arrays, scalars, etc.) to JSON-compatible formats, allowing NumPy objects to be written directly to JSON files without manual conversion.","skillfed_tags":["numpy-integration","json-serialization"],"use_cases":["Save NumPy computation results (arrays, statistics) to JSON configuration or data files","Serialize machine learning model outputs or intermediate arrays for logging or API responses","Convert NumPy-based scientific data to JSON for web APIs or inter-process communication","Export numerical simulation or analysis results to JSON-compatible formats without manual type conversion"],"what_it_does":"numpyencoder is a lightweight JSON encoder that extends Python's standard json module to handle NumPy data types. When you try to serialize a NumPy array or scalar using the standard json.dump() or json.dumps(), you normally get a TypeError; this package provides a NumpyEncoder class that you pass as the cls parameter to transparently convert NumPy objects into JSON-serializable Python types.\n\nThe package depends on numpy and packaging. It's designed for workflows where you're working with NumPy arrays or calculations and need to write results to JSON files or transmit them over JSON APIs without writing custom conversion logic. The encoder integrates directly into Python's json module, so you use it by simply specifying cls=NumpyEncoder in your json.dump() call.","worth_installing":"Yes, if you regularly work with NumPy and need to serialize to JSON. The package is lightweight, has no known vulnerabilities, and uses a permissive license. Maintenance is aging (last release 395 days ago), so verify that it handles your specific NumPy types before relying on it for new projects; for established workflows it is a straightforward, low-risk addition."},"id":"numpyencoder","links":{"html":"https://skillfed.io/packages/numpyencoder","md":"https://skillfed.io/packages/numpyencoder.md","pypi":"https://pypi.org/project/numpyencoder/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-07-15","license_spdx":"MIT","license_treatment":"permissive","name":"numpyencoder","python_support":"supports_current","summary":"Python JSON encoder for handling Numpy data types."},"popularity":{"monthly_downloads":168629,"position":10442,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.2"}
