semvec/pypi-packages huggingface dataset:
newcat 0.0.1
print / cat only new lines in log files
License: MIT
Requires Python: >=3.6

# newcat

print (cat) only new lines in files (after previous run of newcat). This is useful to parse recent log records.

## Install
~~~
pipx install newcat
~~~

## Example
~~~bash
$ echo This is line 1 > /tmp/test.log

# works like normal /bin/cat now
$ newcat /tmp/test.log 
This is line 1

# only new lines are printed
$ echo This is line 2 >> /tmp/test.log
$ newcat /tmp/test.log 
This is line 2

# no new lines => nothing on stderr
$ newcat /tmp/test.log 

# despite file is having two lines
$ cat /tmp/test.log 
This is line 1
This is line 2
~~~

## How does this magic work?
newcat stores some info about file (including position in file) in *state file*. Default state file is `/tmp/.newcat.state`, but can be overriden with `NEWCAT_STATE` environment variable or `-s` / `--state` option. Normally, newcat prints file content starting from this position (which was saved before), thus lines which were already printed before, will not be printed on new newcat run.

Sometime file content it rewritten (e.g. after `echo New content > /tmp/test.log`). To detect this situation newcat checks two things:
- file inode changed
- file size is less then old printed position

if any of these conditions are met, file considered as rewritten and newcat prints it from the beginning.
Note: this is not absolutely reliable, and there is a chance that sometimes newcat will not detect when file is overwritten.
py-evm-sentou 0.8.0b1
Python implementation of the Ethereum Virtual Machine
License: MIT
Keywords: ethereum blockchain evm

# Python Implementation of the Ethereum protocol

[![Join the conversation on Discord](https://img.shields.io/discord/809793915578089484?color=blue&label=chat&logo=discord&logoColor=white)](https://discord.gg/GHryRvPB84)
[![Build Status](https://circleci.com/gh/ethereum/py-evm.svg?style=shield)](https://circleci.com/gh/ethereum/py-evm)
[![PyPI version](https://badge.fury.io/py/py-evm.svg)](https://badge.fury.io/py/py-evm)
[![Python versions](https://img.shields.io/pypi/pyversions/py-evm.svg)](https://pypi.python.org/pypi/py-evm)
[![Docs build](https://readthedocs.org/projects/py-evm/badge/?version=latest)](http://py-evm.readthedocs.io/en/latest/?badge=latest)


## Py-EVM

Py-EVM is an implementation of the Ethereum protocol in Python. It contains the low level
primitives for the existing Ethereum 1.0 chain as well as emerging support for the upcoming
Ethereum 2.0 / Serenity spec.

### Goals

Py-EVM aims to eventually become the defacto Python implementation of the Ethereum protocol,
enabling a wide array of use cases for both public and private chains. 

In particular Py-EVM aims to:

- be a reference implementation of the Ethereum 1.0 and 2.0 implementation in one of the most widely used and understood languages, Python.

- be easy to understand and modifiable

- have clear and simple APIs

- come with solid, friendly documentation

- deliver the low level primitives to build various clients on top (including *full* and *light* clients)

- be highly flexible to support both research as well as alternate use cases like private chains.


## Quickstart

[Get started in 5 minutes](https://py-evm.readthedocs.io/en/latest/guides/quickstart.html)

## Documentation

Check out the [documentation on our official website](https://py-evm.readthedocs.io/en/latest/)

## Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our
guidelines for [contributing](https://py-evm.readthedocs.io/en/latest/contributing.html) and then check out one of our issues that are labeled [Good First Issue](https://github.com/ethereum/py-evm/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+First+Issue%22).