Skip to main content

NumPy engine plugin for tigrbl with array-to-table helpers.

Project description

Tigrbl Logo

PyPI - tigrbl_engine_numpy PyPI - Downloads PyPI - Python Version PyPI - License Hits

tigrbl_engine_numpy

A tigrbl engine plugin that registers kind="numpy" where each array/matrix is a single-table database-like object.

Features

  • Registers a numpy engine through the tigrbl.engine entry-point group.
  • Treats one NumPy array/matrix as one table.
  • Provides a first-class NumpySession (subclass of TigrblSessionBase) without pandas dependencies.
  • Supports loading .npy/.npz via np.load(...), memory-mapped arrays via np.memmap(...), and persistence via np.save(...).

Installation

uv

uv add tigrbl_engine_numpy

pip

pip install tigrbl_engine_numpy

Usage

import numpy as np
from tigrbl.engine import EngineSpec

spec = EngineSpec(kind="numpy", mapping={"array": np.array([[1, 2], [3, 4]]), "columns": ["id", "value"], "table": "matrix", "pk": "id"})
provider = spec.provider()
engine, session_factory = provider.build()

session = session_factory()
print(session.array())
print(session.to_records())
session.close()

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

tigrbl_engine_numpy-0.1.1.dev7.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

tigrbl_engine_numpy-0.1.1.dev7-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file tigrbl_engine_numpy-0.1.1.dev7.tar.gz.

File metadata

  • Download URL: tigrbl_engine_numpy-0.1.1.dev7.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_numpy-0.1.1.dev7.tar.gz
Algorithm Hash digest
SHA256 eeef56f4bbfcd6aba8cf59b43907540eb47521d744eb987dd611b3f82b33c3f7
MD5 fa275d77ab9a3c8ba4f6a84ce4c2333d
BLAKE2b-256 a00e0ceb8cfcc3213362dcfdcb70ae0f6ce0f2f4f192f5aa208237606704debf

See more details on using hashes here.

File details

Details for the file tigrbl_engine_numpy-0.1.1.dev7-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_numpy-0.1.1.dev7-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_numpy-0.1.1.dev7-py3-none-any.whl
Algorithm Hash digest
SHA256 977c6905f0ff6b9ee9b2d13203b9c1a9c6668feed2968f5840f9a95deb1a1cbd
MD5 245c8b2e26a1adf4382e8b76e8b3006d
BLAKE2b-256 0b2025e556cd6a92857acdb884ea89477317dacd93f804565563c83c123326c1

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