Skip to main content

decorate stdin with current timestamp and optional tag

Project description

stdin-tagger

stdin-tagger version stdin-tagger python compatibility say thanks!

stdin-tagger just decorate stdin with current timestamp and optional tag.

If you like this tool, just say thanks.

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 is available, it means Linux, Windows, MacOS X etc.

Simplest way is to use Python's built-in package system:

pip install stdin-tagger
  1. Using pipsi

    pipsi install stdin-tagger

Voila!

Authors

Marcin Sztolcman marcin@urzenia.net

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.

ChangeLog

v1.0.0

  • first public version

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

stdin-tagger-1.1.0.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file stdin-tagger-1.1.0.tar.gz.

File metadata

  • Download URL: stdin-tagger-1.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for stdin-tagger-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3ee7cf65bb8836a8a2ccb6af680a18cdca43372a1711b105cee33fb33eb50518
MD5 a51f45d60116a658cdceed8a3cb08e20
BLAKE2b-256 eb7158ead60ca63638bcefca2d8f45f0a1abd2046c2a7a3026a444fd1add6b8c

See more details on using hashes here.

Supported by

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