Commit Graph
407 Commits
Author SHA1 Message Date
Mike Auty a248bdc804 Fix up old code and docstring indent issue. 2019-09-17 18:15:05 +01:00
Mike Auty 421af88c29 Classmethod make_subconfig so other classmethods can use it. 2019-09-08 14:50:48 +01:00
Mike Auty e922cef316 Improve docstrings for all plugins, and reformat all docstrings. 2019-09-07 22:59:54 +01:00
Mike Auty fa58722848 Slight documentation fixes. 2019-09-04 23:53:18 +01:00
Mike Auty c88044db5b Update more API documentation. 2019-09-04 00:34:55 +01:00
Mike Auty a362dc109a Update API documentation. 2019-09-03 21:28:19 +01:00
Mike Auty 5d75d617b3 Add in better support for sorting BaseAbsentValues. 2019-08-31 22:01:01 +01:00
Mike Auty a3caf39097 Use a mapping to determine kind to class. 2019-08-31 12:57:53 +01:00
Mike Auty 87d0970e72 Remove column indicies.
They didn't look useful, and given the values were ordered by their
position in the list, it seemed appropriate to do the same with column
names.
2019-08-30 11:30:58 +01:00
Mike Auty 9cde94bceb Change the license blurb on all files. 2019-08-27 23:11:00 +01:00
Mike Auty 387024fe96 Don't forget to return a default encoded blob. 2019-08-27 21:09:13 +01:00
Mike Auty 79cb7a28f6 Add in support for non-linear mapping. 2019-08-27 21:09:13 +01:00
Mike Auty 71bb54379b Refactor the plugin versioning to be simpler to define. 2019-08-27 21:08:29 +01:00
Mike Auty a58f064ea8 Rework how the plugin_version is checked. 2019-08-27 21:08:29 +01:00
Mike Auty 11fc8654e3 Initial attempt at plugin versioning.
So this allows people to alter the APIs for their plugins and allows
plugins to verify the API is compatible with the one they expect.

It adds a version property to Plugin classes, and has a SemVer checking
method which can be called from other plugins to verify a plugin against
a particular version.
2019-08-27 21:08:29 +01:00
Mike Auty 52b339d0fa Ensure we only write as much data as is required. 2019-08-25 13:25:01 +01:00
Mike Auty e6125b5df6 Improve LayerException with name field. 2019-08-25 13:20:12 +01:00
Mike Auty af07615c73 Fix minor documentation warnings. 2019-08-23 21:08:10 +01:00
Mike Auty c188b3e56a Add in threading parallelism option back in. 2019-08-18 22:01:39 +01:00
Mike Auty 6000d6c322 Update documentation around the Intermediary Symbol Format. 2019-08-17 23:22:04 +01:00
Mike Auty 5db6ade2ea Change object_type parameter for object_from_symbol. 2019-08-14 20:50:42 +01:00
Mike Auty be27aab8ae Refactor symbol to object_type (so it doesn't shadow builtin type). 2019-08-14 20:50:42 +01:00
Mike Auty 18283ab410 Move to an object_from_symbol model
Note: creation of enumerations can be done using Context.object, which
should allow reference of enumeration members by normal type objects.

If it turns out enumerations are never referenced from types, we can
easily remove the try/except in the Module.object method.
2019-08-14 20:50:42 +01:00
Mike Auty 991b30e056 Typing fix-ups. 2019-08-14 20:50:42 +01:00
Mike Auty 65f561be31 Limit modules to only accepting strings not templates. 2019-08-14 20:50:42 +01:00
Mike Auty 5362e2094e Initial attempt at cleaning up the API
Context.object accepts a template or a string name (and now a type
flag).  Module.object only accepts a string (because a template already
has most of the stuff built in and might as well be passed to the
Context.object constructor).

The gotcha here is the absolute flag, which must now be set
appropriately in all cases *except* where the module is constructed
with an offset of 0 (whereby it will have no impact).
2019-08-14 20:50:42 +01:00
Mike Auty fb68e22767 Expose the context for a module, so we don't have to ship both around. 2019-08-12 00:17:09 +01:00
Mike Auty 4cde0da8a9 Support passing through functions from specific to generic template. 2019-08-10 00:25:21 +01:00
Mike Auty f5615e28f6 Fix up more typing discrepancies. 2019-07-15 17:43:43 +01:00
Mike Auty 272224a1b0 Refactor all references to Context.memory to Context.layers. 2019-07-07 17:42:51 +01:00
Mike Auty 94703d88d8 Fix up enumeration object creation. 2019-06-30 23:05:15 +01:00
Mike Auty e503c3667f Improve enumeration support. 2019-06-30 14:12:43 +01:00
Mike Auty 5e37080c14 Fix up misnamed get_enum/has_enum. 2019-06-30 13:35:13 +01:00
Mike Auty 9ce139d4e2 Allow configs to potentially be accessed before initialization has happened. 2019-04-27 22:06:39 +01:00
Mike Auty 603512122d Allow class_types to be specified as part of SymbolTable construction. 2019-04-18 01:03:59 +01:00
Mike Auty 8c76a25b2d Allow VolTemplateProxies to include additional useful methods. 2019-04-17 23:53:36 +01:00
Mike Auty 45268245ca Add in base __getattr__ to appease ObjectInterface vs Struct issues.
Consider revisiting this at some point, it immediately throws an
exception, so should cause significant slow downs (none detected on a
reasonably fast machine, although buildbot will give a better idea).

Without this a lot more specific typing will be required on the
expectation that Structs will be returned rather than any other type of
object.
2019-04-07 19:08:48 +01:00
Mike Auty 301fac91ac Add in initial renderer code for CLI table formatting. 2019-04-01 00:07:50 +01:00
Mike Auty 29aee0baff Update TreeGrid documentation. 2019-03-29 11:49:10 +00:00
Mike Auty 7c9696def9 Minor fixes for typing and imports. 2019-03-02 22:45:39 +00:00
Mike Auty d4045c9c13 Significant fix for reading from the start of SegmentedLayers (including Lime) when ignoring errors. 2019-03-02 22:44:51 +00:00
Mike Auty 14a9788802 Fix a typo in the parallelism code. 2019-03-02 19:34:31 +00:00
Mike Auty 9fadee1a17 Add locking for threaded operation. 2019-03-02 18:07:48 +00:00
Mike Auty 7b06480d7e Major speed-up for bulk scanning of images. 2019-02-14 22:14:32 +00:00
Mike Auty 4e8c8a7232 Fix issues with SymbolRequirement refactoring. 2019-02-11 22:30:22 +00:00
Mike Auty f898dca296 Refactor SymbolRequirement to SymbolTableRequirement for clarity. 2019-02-06 21:26:32 +00:00
Mike Auty fcd77b4c5f Update the documentation to support the wrapper with autodoc-typehints. 2019-01-21 22:10:18 +00:00
Mike Auty c64ed6a8dd Remove validity checking in favour of static-type checking.
This removes the assertions that checked plugin devs didn't do anything
overly bad in favour of using mypy to ensure appropriate type-checking.

It also moves the ProgressCallback typing information to constants in
order to avoid circular imports (since constants doesn't import
anything).
2019-01-20 02:35:49 +00:00
Mike Auty 3078141352 Fix typing for python < 3.6.1. 2019-01-03 01:34:04 +00:00
Mike Auty b13fcb186c Improve typing issues. 2019-01-03 01:13:53 +00:00