UnifiedFetch#

class gwpy.io.registry.UnifiedFetch(instance: ~gwpy.io.registry.T, cls: type[~gwpy.io.registry.T], registry: ~gwpy.io.registry.UnifiedFetchRegistry = <gwpy.io.registry.UnifiedFetchRegistry object>)[source]#

Bases: UnifiedRead[T], Generic[T]

Base Class.fetch() implementation.

Attributes Summary

Methods Summary

__call__(*args[, source])

Execute cls.fetch().

help([source, out])

Output help documentation for the specified UnifiedFetch source.

merge(*args, **kwargs)

Fetch does not support merging.

Attributes Documentation

method: Literal['fetch', 'get'] = 'fetch'#

Methods Documentation

__call__(
*args,
source: str | None = None,
**kwargs,
) T[source]#

Execute cls.fetch().

help(
source: str | None = None,
out: FileLike | None = None,
) None[source]#

Output help documentation for the specified UnifiedFetch source.

By default the help output is printed to the console via pydoc.pager. Instead one can supplied a file handle object as out and the output will be written to that handle.

Parameters:
sourcestr

UnifiedFetch source (format) name, e.g. ‘sql’ or ‘gwosc’.

outNone or file-like

Output destination (default is stdout via a pager)

merge(*args, **kwargs) Never[source]#

Fetch does not support merging.