Mimics head and tail command using python
Project description
winzy-head-tail
Mimics head and tail command using python
Installation
First install winzy by typing
pip install winzy
Then install this plugin in the same environment as your Winzy application.
winzy install winzy-head-tail
Usage
For head
usage: winzy head [-h] [-n N] [-c C] [FILE ...]
Mimics head command using python
positional arguments:
FILE File(s) to process. Reads from stdin if none provided.
optional arguments:
-h, --help show this help message and exit
-n N Number of lines to display (default: 10).
-c C Number of bytes to display (overrides -n).
For Tail
usage: winzy tail [-h] [-n N] [-c C] [FILE ...]
Mimics tail command using python
positional arguments:
FILE File(s) to process. Reads from stdin if none provided.
optional arguments:
-h, --help show this help message and exit
-n N Number of lines to display (default: 10).
-c C Number of bytes to display (overrides -n).
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd winzy-head-tail
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winzy_head_tail-0.0.1.tar.gz.
File metadata
- Download URL: winzy_head_tail-0.0.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ca92a07d6dfef7e64c26581a932c93194cb5fb687689f9db3780a3441716f3a
|
|
| MD5 |
5d8e6ad0bd33dd04cb6f23d01533839f
|
|
| BLAKE2b-256 |
2a452c119220aef36b33c49c99735236870cb997e19cf857257047b5c2b9498f
|
Provenance
The following attestation bundles were made for winzy_head_tail-0.0.1.tar.gz:
Publisher:
publish.yml on sukhbinder/winzy-head-tail
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winzy_head_tail-0.0.1.tar.gz -
Subject digest:
0ca92a07d6dfef7e64c26581a932c93194cb5fb687689f9db3780a3441716f3a - Sigstore transparency entry: 157193676
- Sigstore integration time:
-
Permalink:
sukhbinder/winzy-head-tail@ccefcc4722b8eb3a040441d721c2b1e6ffd32b09 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ccefcc4722b8eb3a040441d721c2b1e6ffd32b09 -
Trigger Event:
release
-
Statement type:
File details
Details for the file winzy_head_tail-0.0.1-py3-none-any.whl.
File metadata
- Download URL: winzy_head_tail-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b8359b104391eecebfb94a5b05d4bd8e63903e674cdcd15e0729553a1a4d348
|
|
| MD5 |
be8761e039e4183bb66ad471a63872ab
|
|
| BLAKE2b-256 |
243c7782a46343ce7b6b1875baf18f9019c83bd2a82f2f0eade32ca1e3585746
|
Provenance
The following attestation bundles were made for winzy_head_tail-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on sukhbinder/winzy-head-tail
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
winzy_head_tail-0.0.1-py3-none-any.whl -
Subject digest:
7b8359b104391eecebfb94a5b05d4bd8e63903e674cdcd15e0729553a1a4d348 - Sigstore transparency entry: 157193677
- Sigstore integration time:
-
Permalink:
sukhbinder/winzy-head-tail@ccefcc4722b8eb3a040441d721c2b1e6ffd32b09 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/sukhbinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ccefcc4722b8eb3a040441d721c2b1e6ffd32b09 -
Trigger Event:
release
-
Statement type: