Skip to content

adapter

Reference

Lazy reference resource converter.

Go to EntryAdapter to see the full list of methods and properties.

Attributes:

Name Type Description
ENTRY_RESOURCE ReferenceResource

This adapter stores entry resources as ReferenceResources.

_type_converters Dict[str, Callable]

Dictionary of valid conversion types for entry.

There are currently no available types.

as_<_type_converters> Dict[str, Callable]

Convert entry to a type listed in _type_converters.

Source code in optimade/adapters/references/adapter.py
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Reference(EntryAdapter):
    """
    Lazy reference resource converter.

    Go to [`EntryAdapter`][optimade.adapters.base.EntryAdapter] to see the full list of methods
    and properties.

    Attributes:
        ENTRY_RESOURCE (ReferenceResource): This adapter stores entry resources as
            [`ReferenceResource`][optimade.models.references.ReferenceResource]s.
        _type_converters (Dict[str, Callable]): Dictionary of valid conversion types for entry.

            There are currently no available types.
        as_<_type_converters>: Convert entry to a type listed in `_type_converters`.

    """

    ENTRY_RESOURCE: ReferenceResource = ReferenceResource