Closed danielhuppmann closed 9 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.8%. Comparing base (
666d49c
) to head (5d65095
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hm it would be useful to see if one is connecting via rest or sqlalchemy, maybe just showing the protocol part of the dsn?
Something like dsn.split('://')[0]
Hm it would be useful to see if one is connecting via rest or sqlalchemy, maybe just showing the protocol part of the dsn?
My suggestion only refers to the attributes when connecting via the manager - the toml would still have the dsn.
Ah I see, alright convinced!
Please confirm that this PR has done the following:
Description of PR
This PR adds a method
pyam.iiasa.list_platforms()
as a shorthand for the ixmp4 function down in the config hierarchy, producing an output like:I modified this from the corresponding method in ixmp4 showing name, access level and notice (instead of dsn), because this seems more relevant for a Python-API-user.
@meksor, if you agree, I can implement the corresponding change in ixmp4?
Update
Renamed the function to
pyam.iiasa.connections()
to avoid naming conflict with the ixmp4 method.