Ultra-light minimal NumPy build (core functionality only) for AWS Lambda / serverless.
Project description
numpy-lite
Ultra-light minimal NumPy 1.26.4 build focused on core functionality only.
This fork is designed for AWS Lambda / serverless environments with Python 3.12, removing heavy modules like BLAS, LAPACK, linalg, fft, polynomial, random, and f2py to reduce package size.
Features
- Core array operations (
np.array,np.sum,np.mean, indexing, slicing) - Minimal footprint (~8MB)
- AWS Lambda / serverless ready
- Stub modules provide informative errors if removed modules are imported
Installation
Install via PYPI (recommended)
The easiest way to install:
pip install numpy-lite
###Install from GitHub (for development or contributions)
Clone or download the repository:
git clone https://github.com/JacquieAM/numpy-lite.git
cd numpy-lite
Install via pip:
pip install .
rm -rf build
Usage
import numpy as np
arr = np.array([1, 2, 3])
print(arr)
print(np.sum(arr))
Modules like np.linalg, np.fft, and np.random will raise informative ImportError if used.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 numpy_lite-1.26.4.tar.gz.
File metadata
- Download URL: numpy_lite-1.26.4.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4c3f66334a1e800470def79cd50803ad8f46b017e6c569a8eafc5409af2b1b1
|
|
| MD5 |
3062c0e92749891bc0e99c0ead1ca301
|
|
| BLAKE2b-256 |
e50638883d5987ba0513fffac4a37c34906845a6948754b0fe43d0d855a7a46a
|
File details
Details for the file numpy_lite-1.26.4-py3-none-any.whl.
File metadata
- Download URL: numpy_lite-1.26.4-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d44c4f111122af6a71ec1fbb6c5e84c2d65cacc461fbaa8d51e7da5202f139
|
|
| MD5 |
55caeb0223bf40609f8c327a963635bc
|
|
| BLAKE2b-256 |
fe3005dc1e481d233f3c9a9b7958d84a68457a4952cd2cc77382f434de471f28
|