slicer
A small package for big slicing.
Decision gist · record as of 2026-08-14
Yes, if you regularly slice multiple heterogeneous data structures and want a unified interface. The zero-dependency design and permissive license make it safe to add. The alpha status and lack of updates since 2024-03-09 are minor concerns for a stable utility, but verify it handles your specific data types before production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- No runtime dependencies and a pure-Python wheel make installation frictionless.
- The package is in alpha status and hasn't been updated since 2024-03-09, though the repository remains active.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows use in most projects without restriction, including commercial and proprietary work.
last release 2024-03-09 (888 days) · last repo commit 2025-08-05 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 14,860,793 downloads/mo, #1,214 on PyPI
Alternatives
Verify before relying
from slicer import Slicer as S
li = [[1, 2, 3], [4, 5, 6]]
S(li)[:, 0:2].o
# [[1, 2], [4, 5]]
# Named slicing across multiple objects
sliced = S(first=df, second=ar)[0, :]
sliced.first- Whether the alpha status reflects incomplete features or conservative versioning
- Performance characteristics when slicing very large objects or deeply nested structures
- Compatibility with versions of numpy, pandas, and PyTorch beyond what classifiers declare
What it is and what it does
Slicer wraps tensor-like objects and provides a single, uniform slicing syntax that works across numpy arrays, pandas DataFrames, scipy sparse matrices, PyTorch tensors, and Python built-ins (lists, tuples, dicts). Instead of learning each library's indexing conventions, you wrap objects with `S()` and slice them all the same way via `__getitem__`. The package handles non-integer indexes (useful for selecting DataFrame columns by name), nested slicing in one call, and simultaneous slicing of multiple objects at once—returning results as named attributes or via `.o` for anonymous access.
With zero runtime dependencies and support for Python 3.6+, slicer is lightweight and portable. It's designed for workflows where you need to slice multiple heterogeneous data structures in parallel. The package includes an Alias mechanism to use semantic keys as slicing indices, bridging the gap between positional and label-based indexing.
Use it for
- Slice multiple data structures in parallel with a single index operation
- Select DataFrame columns by name using the same syntax as positional array slicing
- Extract nested subsets from mixed-type data structures in one call
- Build data pipelines with consistent indexing across multiple data types
- Use semantic aliases as slicing keys without manual index lookup
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you regularly slice multiple heterogeneous data structures and want a unified interface.
The zero-dependency design and permissive license make it safe to add. The alpha status and lack of updates since 2024-03-09 are minor concerns for a stable utility, but verify it handles your specific data types before production use.
Install
slicer on PyPI
Before you install
No runtime dependencies and a pure-Python wheel make installation frictionless. The package is in alpha status and hasn't been updated since 2024-03-09, though the repository remains active.
License in practice
MIT license (permissive) allows use in most projects without restriction, including commercial and proprietary work.
Quickstart
from slicer import Slicer as S
li = [[1, 2, 3], [4, 5, 6]]
S(li)[:, 0:2].o
# [[1, 2], [4, 5]]
# Named slicing across multiple objects
sliced = S(first=df, second=ar)[0, :]
sliced.first
Verify before relying
- Whether the alpha status reflects incomplete features or conservative versioning
- Performance characteristics when slicing very large objects or deeply nested structures
- Compatibility with versions of numpy, pandas, and PyTorch beyond what classifiers declare
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 888 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 14,860,793 / month, #1,214 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: slicer-0.0.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “uniform slicing interface”
- slicerProvides a uniform slicing interface for tensor-like objects (numpy,…
- ndindexndindex provides a uniform API for representing and manipulating…
- tensordict-nightlyTensorDict is a batched, nested dictionary container for PyTorch…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also ndindex · rcslice · sahi · acvl-utils · flatdict · slicerator · magicattr · recursive-diff · mulpyplexer · tensordict