Skip to main content

Log your command history to an analytics engine

Project description

Tail files, and do things with them.

Installation

Run pip install erudite or if it’s your thing: easy_install erudite. You’ll need to also get argparse if you’re using a Python less than 2.7.

This might work on Python 3+, but I haven’t tested it.

Examples

Send first words of your zsh history to [StatHat](http://www.stathat.com) (currently the default):

erudite –parser=zsh_history –logger=StatHatLogger –stathat-key=test@example.com ~/.zsh_history

If you just want to play around, and see what you can do:

erudite –parser=zsh_history –logger=PrintingLogger ~/.zsh_history

Developing

Parsers (used to parse lines) are in erudite/parsers.py, and loggers (used to do things with parsed lines) are in erudite/loggers.py.

Contributing

It would be totally awesome to have many many more options in this script. I’m totally open to contributions. But there are a few things that will help me:

  • Your fork should have a topic branch with your feature, requesting to pull against develop

  • Please don’t add any requirements for loggers to setup.py - catch ImportError and exit gracefully. (see StatHatLogger for an example)

  • If you’re adding a parser, it would be awesome if you could attach some sample input.

  • Just for fun, you might want to run pylint against your changes.

  • If you’re changing default settings, it’s totally cool. Just ask me first.

  • You should add yourself to Authors in the README.

In particular, here are some things/ideas that would be great to have:

[1]: http://redis.io/ [2]: http://www.mongodb.org/

Authors

  • Brian Hicks

License

See LICENSE.md (hint: it’s Apache 2.0)

Project details


Download files

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

Source Distributions

Erudite-1.0.2.zip (7.1 kB view details)

Uploaded Source

Erudite-1.0.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file Erudite-1.0.2.zip.

File metadata

  • Download URL: Erudite-1.0.2.zip
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Erudite-1.0.2.zip
Algorithm Hash digest
SHA256 f09117ff806e69ae9b23b4cb8923e249030f15217af4e5b4610ec43f65d4f811
MD5 b7a1560a8aa3cd89075d6ab15a73b954
BLAKE2b-256 4efb4311f1ee1bf57f64b53a94c6ed3a8bb0dd48b2fd54b3069d801fd9bfbdbe

See more details on using hashes here.

File details

Details for the file Erudite-1.0.2.tar.gz.

File metadata

  • Download URL: Erudite-1.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Erudite-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1ccb667d9148ecbc35d1cc811fa519a3c52db75c8fe5a1787c517d5792d75b30
MD5 9b1fa5643bf3bee6106c17ef56bf3e1b
BLAKE2b-256 ee2027f668bdd90b77b7052615cd92752fa66cb65fd037d57ead76673ed46f10

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