Commit Graph
58 Commits
Author SHA1 Message Date
Mike Auty 9e727f6716 Attempt to fix windows OSError on certain datetimes. 2019-03-29 13:39:32 +00:00
Mike Auty 29aee0baff Update TreeGrid documentation. 2019-03-29 11:49:10 +00:00
Mike Auty 72c4deaf66 Revamp the ip address conversion code and reformat mac files. 2019-02-26 22:59:21 +00:00
Andrew Caseandikelos 6d2a5fbfaa add mac_netstat and supporting networking code 2019-02-26 22:20:33 +00:00
Mike Auty fdc6efc4ad Add in the LICENSE and the README. 2018-12-19 23:55:03 +00:00
Mike Auty 19572b6e1e Reformat all python files using yapf with custom volatility style. 2018-12-16 16:50:17 +00:00
Mike Auty 9824538bd9 Numerous pycharm warnings resolved
This includes:

* Better ways of checking empty lists
* Not shadowing builtin functions like filter
* Preventing invalid slash warnings by marking strings as regexps
* Removing unnecessary brackets
* Lowercase variable names
* Adding/updating parameters in docstrings
* Removing unused code (lines not chunks)
* Change in not a member tests
* Changing some methods to static
* Shorting range membership checks
* Missing parameters
* Make some exception handlers more specific
* Don't define a lambda to a variable
* A few more instance checks to help type checkers
2018-12-16 13:21:06 +00:00
Mike Auty 29d41470a4 Mass reformat of typing imports
Relented on the strict import of direct objects/classes for the typing
module only.  Typing module components can be directly imported because
it makes the code really painful to read and write otherwise.

This is still in-line with the python style guide adopted from Google at
http://google.github.io/styleguide/pyguide.html section 2.2.
2018-12-16 13:04:22 +00:00
Mike Auty 8acbe8bba3 Refactor conversion code from objects.utility to a conversion module in renderers. 2018-12-12 23:39:10 +00:00
Mike Auty b1d46f843b Convert documentation to napoleon/Google format docstrings. 2018-08-05 15:52:12 +01:00
Mike Auty 79d2bab44d A few additional typing fixes. 2018-07-22 13:29:43 +01:00
Mike Auty 4897b7ab81 Fix up some typing errors. 2018-07-22 13:19:20 +01:00
Mike Auty 3ba628da7a Add in NotAvailableValue for specific uses. 2018-07-18 22:44:27 +01:00
Mike Auty 7a52ac9deb Fix a large number of typing issues.
There are several instances where mypy didn't detect

if blah is not None:
    blah = thing

and so were rewritten as:

blah = blah or thing
2018-06-04 01:25:02 +01:00
Michael Ligh 39413323b1 HexBytes() should inherit from bytes not int 2018-05-06 09:24:36 -05:00
Mike Auty 623180ddbd Make many typing fixes, based on mypy-0.590. 2018-04-22 20:45:59 +01:00
Mike Auty 59283ad892 Refactor SimpleTypes to BaseTypes since we've added Disassembly. 2018-04-15 15:39:48 +01:00
Mike Auty fbc8a9ce12 Move the text renderer to cli directory. 2018-04-15 00:15:50 +01:00
Mike Auty 90641befd2 Remove the TZ*Values and rely on datetime.datetime directly. 2018-04-12 15:43:02 +01:00
Mike Auty e0a4ada363 Allow sorting of treegrid columns involving datetimes and BaseAbsentValues. 2018-04-02 18:15:35 +01:00
Mike Auty b8aba83e85 Improve quicktext renderer to support trees. 2018-04-02 13:42:31 +01:00
Mike Auty b824daf322 Rejig text output to allow for progress callbacks. 2018-03-24 00:31:20 +00:00
Mike Auty c6a58ffc06 Fix up sphinx warnings. 2018-03-20 22:30:05 +00:00
Mike Auty cbce5c6184 Expose the sanitize method, since it's necessary for accessing columns. 2018-03-14 01:07:58 +00:00
Mike Auty 6d618903d5 Don't forget the text output renderer for the datetime type. 2018-03-08 01:34:55 +00:00
Mike Auty 674394cd69 Fix up TreeGrid typing information in places. 2018-03-08 01:20:55 +00:00
Mike Auty c605cbd182 Add in TZAware and TZNaive values for TreeGrids. 2018-03-08 01:20:34 +00:00
Mike Auty de9ad62412 Add in support for AbsentValues. 2018-03-08 00:26:25 +00:00
Mike Auty ee12b81f4a Add in type-annotations for renderers and start on symbols. 2017-12-13 20:48:52 +00:00
Mike Auty 21b4506b7b Add in type-annotations for the remaining interfaces. 2017-12-13 20:48:52 +00:00
Mike Auty 334412330c Ensure offsets are appropriately prefixed, given we can now support accepting 0x### numbers. 2017-10-09 00:02:03 +01:00
Mike Auty ab8d76eeef Revert the generator changes, the visiting function should be used instead. 2017-08-02 10:40:16 +01:00
Mike Auty d8c53b63bf Don't forget to iterate over the populate generator. 2017-08-02 10:05:12 +01:00
Mike Auty ff3d5e8f3b Maintain a row count for populated tree grids. 2017-08-01 15:39:38 +01:00
Mike Auty 029fa8e940 Ensure ColumnSortKey is callable, and make sure the top level direction is considered. 2017-08-01 15:39:01 +01:00
Mike Auty 80508c8711 Allow for ascending or descending sort order. 2017-08-01 02:41:55 +01:00
Mike Auty d119f372dc Ensure the populate generator is actually a generator. 2017-07-31 13:52:54 +01:00
Nick L. Petroni, Jr f05df0c1cd added Bin() to format_hints: print the value as a Python binary number 2017-04-17 14:05:50 -04:00
Mike Auty 96c414fb5f Refactor TextRenderer to QuickTextRenderer to ensure we don't forget that the output is speedy not nicely formatted. 2017-01-22 14:17:19 +00:00
Mike Auty a2eb60ed39 Add support for HexBytes to the text renderer. 2017-01-22 14:16:13 +00:00
Mike Auty 2ccc62f921 Introduce format hints for renderers. 2017-01-05 00:39:03 +00:00
Mike Auty 1754f3bc85 Attempt to fix up any possible re-encoding issues the str() call in the renderer might bring. 2016-12-18 16:58:58 +00:00
Mike Auty 667014a1fd Attempt to standardize error message display. 2016-10-30 17:51:45 +00:00
Mike Auty 3fbc78b38c Fix up the renderer (and stop masking issues by printing in the generator). 2016-02-11 09:23:58 +00:00
Mike Auty 370a49a267 Add in a trivial renderer for testing the output system. 2016-02-09 10:14:53 +00:00
Mike Auty bca8dc486d Allow sequences rather than just lists for TreeGrid yields. 2016-02-09 10:14:13 +00:00
Mike Auty d258c56991 Rerun pylint with pycharm-5 and fix pep8 issues as well. 2015-11-21 13:12:00 +00:00
Mike Auty 65fcd5fbe5 Minor pylinting. 2015-09-28 01:34:52 +01:00
Mike Auty cd07ff17b2 Pull out the interfaces from the TreeGrid/TreeNode structures. 2015-01-08 00:06:52 +00:00
Mike Auty 9d5027ddd6 Add in TreeGrid/Renderer framework from volatility3. Consider pulling interfaces for TreeGrid and TreeNode out into interfaces. 2015-01-07 13:59:14 +00:00