Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numpy_lite-1.26.4.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

numpy_lite-1.26.4-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

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

Hashes for numpy_lite-1.26.4.tar.gz
Algorithm Hash digest
SHA256 e4c3f66334a1e800470def79cd50803ad8f46b017e6c569a8eafc5409af2b1b1
MD5 3062c0e92749891bc0e99c0ead1ca301
BLAKE2b-256 e50638883d5987ba0513fffac4a37c34906845a6948754b0fe43d0d855a7a46a

See more details on using hashes here.

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

Hashes for numpy_lite-1.26.4-py3-none-any.whl
Algorithm Hash digest
SHA256 92d44c4f111122af6a71ec1fbb6c5e84c2d65cacc461fbaa8d51e7da5202f139
MD5 55caeb0223bf40609f8c327a963635bc
BLAKE2b-256 fe3005dc1e481d233f3c9a9b7958d84a68457a4952cd2cc77382f434de471f28

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