semvec/pypi-packages huggingface dataset:
tailread 1.0.2
A Simple line generator from tail of file
License: MIT
Requires Python: >=3.4
Keywords: tail,python tail,tailread

# readtail

### Simple Description

- A simplest generator function written in pure python
- Seek from the tail of the file

### Install
```shell
pip install tailread
```


### Useage

```python
import tailread as tail

# consuming tails one by one
  lines = tail.readlines('access.log')

  # take tail of one line
  line = next(lines)
  print(line)
# b'line 10/r/n'

  # next...
  line = next(lines)
  print(line)
# b'line 9/r/n'


# When passing a fileobject, The file must be opened in bytes mode.
with open('access.log', 'rb'): as fp:
    for line in tail.readlines(fp):
        print(line)
        if 'some string' in line:
            break
        

# or from file path
for line in tail.readlines('access.log'):
    print(line)
      if 'some string' in line:
          break

# b'line 10\r\n'
# b'line 9\r\n'
# b'line 8\r\n'
# b'line 7\r\n'
# ....

```

```python
# decoding lines from encoding info
for line in tail.readlines('access.log', encoding='utf-8', errors='ignore'):
    print(line)

# line 10

# line 9

# line 8

# line 7

# ....


```
zsfile 0.1.0
zstandard compress and decompress tool.
License: MIT
Keywords: zsfile,zstandard

# zsfile

zstandard compress and decompress tool.

## Install

```
pip3 install zsfile
```

## Command Usage

```
test@test Downloads % zsf --help
Usage: zsf [OPTIONS] INPUT

  Zstandard compress and decompress tool.

Options:
  -d, --decompress   force decompression. default to false.
  -o, --output TEXT  Output filename.
  --help             Show this message and exit.
```

## Examples

```
test@test test01 % ls    
mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst
test@test test01 % zsf -d mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst
decompressing file mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst to mingw-w64-x86_64-file-5.39-2-any.pkg.tar...
test@test test01 % ls
mingw-w64-x86_64-file-5.39-2-any.pkg.tar	mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst
test@test test01 % file mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst 
mingw-w64-x86_64-file-5.39-2-any.pkg.tar.zst: Zstandard compressed data (v0.8+), Dictionary ID: None
test@test test01 % file mingw-w64-x86_64-file-5.39-2-any.pkg.tar
mingw-w64-x86_64-file-5.39-2-any.pkg.tar: POSIX tar archive
test@test test01 %
```

## Releases

### v0.1.0

- First release.