For convenient reference in development, here are the Archelon client API docs.
Data modeling for command history to be modular
archelonc.data.
ArcheloncAPIException
[source]¶Bases: archelonc.data.ArcheloncException
API exception occurred.
archelonc.data.
ArcheloncConnectionException
[source]¶Bases: archelonc.data.ArcheloncException
Connection exception class.
archelonc.data.
ArcheloncException
[source]¶Bases: exceptions.Exception
Base archelonc exception class.
archelonc.data.
HistoryBase
[source]¶Bases: object
Base class of what all backend command history searches should use.
archelonc.data.
LocalHistory
[source]¶Bases: archelonc.data.HistoryBase
Use local .bash_history for doing searches
archelonc.data.
WebHistory
(url, token)[source]¶Bases: archelonc.data.HistoryBase
Use RESTful API to do searches against archelond.
SEARCH_URL
= u'/api/v1/history'¶bulk_add
(commands)[source]¶Post a list of commands
Parameters: | commands (list) – List of commands to add to server. |
---|---|
Raises: |
search_forward
(term, page=0)[source]¶Return a list of commmands that is in forward time order. i.e oldest first.
Raises: |
---|
npyscreen based application for searching shell history
archelonc.search.
CommandBox
(screen, **kwargs)[source]¶Bases: npyscreen.wgtitlefield.TitleText
Command Box widget
archelonc.search.
Search
[source]¶Bases: npyscreen.apNPSApplicationManaged.NPSAppManaged
Search application. Determines which form to show.
more
= True¶page
= 0¶archelonc.search.
SearchBox
(screen, begin_entry_at=16, field_width=None, value=None, use_two_lines=None, hidden=False, labelColor='LABEL', allow_override_begin_entry_at=True, **keywords)[source]¶Bases: npyscreen.wgtitlefield.TitleText
Search box command, updates trigger deeper searching.
archelonc.search.
SearchForm
(*args, **kwargs)[source]¶Bases: npyscreen.fmFormWithMenus.ActionFormWithMenus
Command history search form