https://github.com/msztolcman/stdin-tagger
decorate stdin with current timestamp and optional tag
https://github.com/msztolcman/stdin-tagger
decorate log stdin tag timestamp
Last synced: about 1 year ago
JSON representation
decorate stdin with current timestamp and optional tag
- Host: GitHub
- URL: https://github.com/msztolcman/stdin-tagger
- Owner: msztolcman
- License: mit
- Created: 2019-05-01T08:03:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T20:54:30.000Z (over 3 years ago)
- Last Synced: 2025-03-18T02:32:17.339Z (about 1 year ago)
- Topics: decorate, log, stdin, tag, timestamp
- Language: Python
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
stdin-tagger
==========
[](https://pypi.python.org/pypi/stdin-tagger)
[](https://pypi.python.org/pypi/stdin-tagger)
[](https://saythanks.io/to/marcin%40urzenia.net)
`stdin-tagger` just decorate stdin with current timestamp and optional tag.
If you like this tool, just [say thanks](https://saythanks.io/to/marcin%40urzenia.net).
Current stable version
----------------------
1.1.0
Python version
--------------
`stdin-tagger` works with Python 2.7 and 3.3+.
Some examples
-------------
Some examples:
# decorate with default timestamp
% echo something | stdin-tagger
2019-05-01 09:42:11.141874 something
# decorate with other timestamp format
% echo something | stdin-tagger --timestamp-format '%Y%m%d%H%M%S'
20190501094333 something
# decorate with other timestamp format and UTC timezone
% echo something | stdin-tagger --timestamp-format '%Y%m%d%H%M%S' --timezone utc
20190501074610 something
# add additional tag right after timestamp
% echo something | stdin-tagger --additional-tag '[some tag]'
2019-05-01 09:49:58.775573 [some tag] something
Installation
------------
1. Using PIP
`stdin-tagger` should work on any platform where [Python](http://python.org)
is available, it means Linux, Windows, MacOS X etc.
Simplest way is to use Python's built-in package system:
pip install stdin-tagger
2. Using [pipsi](https://github.com/mitsuhiko/pipsi)
pipsi install stdin-tagger
Voila!
Authors
-------
Marcin Sztolcman
Contact
-------
If you like or dislike this software, please do not hesitate to tell me about
this me via email (marcin@urzenia.net).
If you find bug or have an idea to enhance this tool, please use GitHub's
[issues](https://github.com/msztolcman/stdin-tagger/issues).
ChangeLog
---------
### v1.0.0
* first public version