Skip to main content

Mimics head and tail command using python

Project description

winzy-head-tail

PyPI Changelog Tests License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winzy_head_tail-0.0.1.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winzy_head_tail-0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

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

Hashes for winzy_head_tail-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0ca92a07d6dfef7e64c26581a932c93194cb5fb687689f9db3780a3441716f3a
MD5 5d8e6ad0bd33dd04cb6f23d01533839f
BLAKE2b-256 2a452c119220aef36b33c49c99735236870cb997e19cf857257047b5c2b9498f

See more details on using hashes here.

Provenance

The following attestation bundles were made for winzy_head_tail-0.0.1.tar.gz:

Publisher: publish.yml on sukhbinder/winzy-head-tail

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file winzy_head_tail-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for winzy_head_tail-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b8359b104391eecebfb94a5b05d4bd8e63903e674cdcd15e0729553a1a4d348
MD5 be8761e039e4183bb66ad471a63872ab
BLAKE2b-256 243c7782a46343ce7b6b1875baf18f9019c83bd2a82f2f0eade32ca1e3585746

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page