Simple Python library to return your shell history or dump to a nicely formatted JSON file.
Project description
Shhistory
Simple Python library to return your shell history or dump to a JSON file.
You can install this library via pip:
pip install shhistory
Example
A quick example to print the JSON data to stdout:
# test.py
from shhistory import ShellHistory
print(ShellHistory.get_shell_history())
You can also create a quick bash utility with this library by piping to jq
for nicer formatting:
python3 test.py | jq
If you would like to analyze the data more securely, you can also dump to a file:
from shhistory import ShellHistory
print(ShellHistory.dump_shell_history())
NOTE: Windows is not currently supported. This may be added in a future update.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shhistory-0.1.8.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for shhistory-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56fc00fdf0af3af8d75ed6648ccdee8af783998ce138a4b7386627d992038d23 |
|
MD5 | 3a6bc13db7b0ede4c56903718560a29f |
|
BLAKE2b-256 | cc3e9f885e532a5cbf2248e9e7db27bd0e870d8b2bb83fd07f09c000424fce05 |