ntuplelike
ntuplelike is a lightweight Python library designed to provide a simple, immutable sequence type that mimics the behavior of a native tuple. The core object, often referenced as ntuple, supports indexing, slicing, iteration, length queries, and equality checks, offering a convenient alternative when a fixed-size, ordered collection is required but a full tuple is either too restrictive or inconvenient in a particular context. Unlike the built‑in tuple, ntuple instances can be constructed from a variety of iterable sources—including lists, NumPy arrays, pandas Series, and other sequence types—without the programmer needing to perform explicit conversions or copying.
The library is built with compatibility for Python 3.8 and later, and it is distributed under an
Documentation for ntuplelike includes usage examples that demonstrate the conversion of standard lists into ntuple objects,