Skip to main content

python-slice

Install

Install slice-bin from PyPI, which will install slice as a command line tool.

pip install slice-bin

Usage

Assuming stdin is split on a newline and put into an array, the output can be filtered by Python's slice notation.

$ seq 10
1
2
3
4
5
6
7
8
9
10
$ seq 10 | slice 3
4
$ seq 10 | slice 3:
4
5
6
7
8
9
10
$ seq 10 | slice 3:5
4
5
$ seq 10 | slice -3:
8
9
10
$ seq 10 | slice :3
1
2
3
$ seq 10 | slice :-3
1
2
3
4
5
6
7
$ seq 10 | slice ::2
1
3
5
7
9
$ seq 10 | slice ::-2
10
8
6
4
2

Metadata

Release files for slice-bin 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slice-bin 0.1.1
File Size Uploaded Provenance
slice_bin-0.1.1.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for slice-bin 0.1.1
File Interpreter ABI Platform
slice_bin-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / slice_bin-0.1.1.tar.gz

Download URL slice_bin-0.1.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72f491894738bacce4335f51400b52322c248e03d528a1c77c5ed890724c818f
BLAKE2b-256 checksum
How to use checksums
39cfba657165b268fdb061b492f775bb8cae36c4b287d8710edf075a1369ed29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Linux/5.10.179-1-MANJARO

Release files / slice_bin-0.1.1-py3-none-any.whl

Download URL slice_bin-0.1.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93d0569d5f91a2d7a53282254ee8cf3372d800a6c4b5d7fbcad4bb6f2d576c8d
BLAKE2b-256 checksum
How to use checksums
4eac7bb7b8c940c963e22d75658fa36afe3f06d9f2d95514c1ac82c99c281435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.10 Linux/5.10.179-1-MANJARO

Security for slice-bin 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page