-
Notifications
You must be signed in to change notification settings - Fork 60
Roadmap
This document describes proposed changes. Please see the changelog for previously release and current development version changes. If you see changes you could like to discuss please open an issue and when resolved update this document.
- Organize unit tests in a structure that matches the code (either before or after the API clean-up in 3.x.x)
- Start an 'asdf-compressors' or similar package to add new block compression algorithms (zstd, lz4)
- After 3.x.x is released (which includes the necessary changes), finalize and release 'asdf-zarr' 0.1
- Move pytest plugin to a different repository
- Finish splitting asdf-standard into asdf-fits, asdf-units, asdf-table, etc
By default, do not memmap arrays.
Remove featured deprecated in 3.x.x.
There are a number of improvements that could be made to the public API including:
- prefix non-public modules, etc with an underscore to make it more explicit that they are private
- layout plan for top-level imports and deprecate anything we don't want to include at the top-level (e.g. Stream, IntegerType)
- evaluate what parts of the public API are critical to asdf functionality and what should be provided by a different library (e.g. asdf.util.get_class_name)
- add custom exceptions to replace generic exceptions and to replace exceptions that are 'passed through' from dependencies (e.g. pyyaml.RepresenterError)
- should generic_io be private? Can it be removed/replaced?
- are there redundant options/configuration settings (see: https://github.com/asdf-format/asdf/pull/1477 https://github.com/asdf-format/asdf/pull/1476)
For example:
- can external blocks now be implemented as an extension?
- can external array reference be implemented as an extension?
- lz4 compression, this can be moved to an extension
As AsdfConfig provides a centralized and flexible way to define various asdf options we should investigate moving more options into AsdfConfig. This will likely result in a 'too large' number of options so we should consider ways to organize, nest, or in some other ways make these options easy to understand and use.
Consider some new features! These include:
- super-dictionary access to the ASDF tree with per-node lazy-loading
- partial block reading (for local and cloud-based non-chunked files)
- migrate to a new jsonschema library (perhaps jsonschema-rs)
See 3.0.0 Roadmap
This release will remove the experimental subclass attribute serialization feature, add support for ASDF Standard 1.6.0, add a global configuration feature, and add new APIs for extending ASDF.
The experimental subclass attribute serialization feature will be removed (and its supporting schema dropped from ASDF Standard 1.6.0).
The proposed roadmap for ASDF Standard 1.6.0 entails the following new requirements:
- Schema defaults must not be added to or removed from the tree when working with an ASDF Standard 1.6.0 file. https://github.com/asdf-format/asdf/pull/860
- Refuse to write complex YAML keys such as maps or lists. https://github.com/asdf-format/asdf/pull/866
- Support for tag URI schemes beyond
tag:
. https://github.com/asdf-format/asdf/pull/854, https://github.com/asdf-format/asdf/pull/855 - Support for serializing null values. https://github.com/asdf-format/asdf/pull/863
- Support for tags whose URI prefix has changed (the current
ExtensionType
API requires that tags supported by the same class differ only in version). https://github.com/asdf-format/asdf/pull/853
Introduce a configuration mechanism that will allow certain AsdfFile
options (such as read_on_validate
) to be set globally.
- https://github.com/asdf-format/asdf/pull/819
- https://github.com/asdf-format/asdf/pull/839
- https://github.com/asdf-format/asdf/pull/844
- https://github.com/asdf-format/asdf/pull/847
The current ExtensionType
API is complicated and difficult to reason about. We'll introduce a new simplified API for handling custom tags which will also be sufficiently flexible to handle the new requirements of ASDF Standard 1.6.0.
The current AsdfExtension
API does not include any kind of extension identifier, which means we end up describing the extension by Python class name in the ASDF file's metadata, which is not a portable solution. There is also no convenient way for an extension to express that there are different versions of itself, what the default version should be, and what versions of what tags are permissible under that version.
We'll introduce a new extension API with properties that supply this missing information (and also provide a list of tag handlers associated with that extension).
- https://github.com/asdf-format/asdf/pull/850
- https://github.com/asdf-format/asdf/pull/851
- https://github.com/asdf-format/asdf/pull/853
- https://github.com/asdf-format/asdf/pull/857
- https://github.com/asdf-format/asdf/pull/874
The current AsdfExtension
API for retrieving schemas has some drawbacks:
- It is not possible to list the schemas provided by the extension. The code that maps schema URIs to file paths will happily map to filenames that don't exist.
- The schema content must be provided as a URL, which is an obstacle to storing schemas as package resources or writing schemas in the REPL during development.
We will introduce a new API for mapping schema URIs to schema content.