No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slice_bin-0.1.1.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for slice_bin-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93d0569d5f91a2d7a53282254ee8cf3372d800a6c4b5d7fbcad4bb6f2d576c8d |
|
MD5 | 4594f5d0d4b226d7f1175e25cd6a7c57 |
|
BLAKE2b-256 | 4eac7bb7b8c940c963e22d75658fa36afe3f06d9f2d95514c1ac82c99c281435 |