Skip to content

api_url should be easily configurable from the user's code #92

@ebuchlin

Description

@ebuchlin

api_url is currently hard-coded as https://api.helioviewer.org/v2/ in hvpy.config.Settings, although the use of pydantic.Field allows this to be overriden by environment variable HELIOVIEWER_API_URL.

Other servers, such as the MEDOC/IAS server, can be available when the GSFC server is not available or not up-to-date with the latest data, or can have additional datasets (e.g. Solar Orbiter at ESA). They should also be usable with hvpy.

For the user, it is more convenient to have the possibility to choose the server on the fly, rather than setting an environment variable (which is undocumented). This was possible with sunpy.net.helioviewer as the server was a parameter of HelioviewerClient(), but it doesn't appear that it is currently possible with hvpy.

See also @wafels 's comment on #52.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions