Skip to content

BASH-esque command history for the Python3 interactive interpreter.

License

Notifications You must be signed in to change notification settings

dwpaley/histopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Histopy

BASH-style history for the Python3 interactive interpreter.

Daniel W. Paley, 2018.
Contact: dwpaley@gmail.com
Github: https://github.com/dwpaley/histopy

Quickstart:

>>> import histopy as hp
>>> hp.history_full()     # like $ history
>>> hp.history()          # history of current session
>>> hp.recall(n)          # like $ !n
>>> hp.find('foo')        # print lines matching 'foo'

Known issues:

  • recall_range(n1, n2) doesn't attempt to handle any exceptions. Would be nice to prompt e.g. "recall_range stopped with exception ... on line ... Continue on line ...?"

About

BASH-esque command history for the Python3 interactive interpreter.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages