Replies: 6 comments
-
we actually had an API that was originally designed to be internal use for napari hub, and we do have it in mind to open it up, a few things we need to tackle before opening it up:
|
Beta Was this translation helpful? Give feedback.
-
That would be an awesome problem to have... ;-) Thanks for the feedback @ziyangczi |
Beta Was this translation helpful? Give feedback.
-
I do have question, is the plan to keep a curated set of information on a privately owned server? or is the plan to always ping the pypi API when users arrive to napari hub? |
Beta Was this translation helpful? Give feedback.
-
we consider PyPI to be the ground truth, but we do cache the result on our AWS s3 to avoid flooding PyPI with traffic, in the future, we may introduce more levels of caching to improve performance |
Beta Was this translation helpful? Give feedback.
-
Love this suggestion, @goanpeca! Agreed that this would be great to have for the napari viewer instead of napari needing to inspect the pypi.org HTML everytime. Especially since we'll be aggregating non-PyPI data from Github repos, as well, it will be nice to make sure such metadata is available through the napari interface. For our June launch, all search, sort, and filter functionality will be client-side, but if we moved this to the backend and exposed it through the API, napari would be able to offer the same search/filter/sort functionality that we offer on the napari hub. So in the near term we could have endpoints for (a) the list of available plugins and (b) metadata for each plugin. With time, this could expand to support (c) search/filter/sort queries. Even though this isn't especially challenging from a technical perspective, we'll need to work through some CZI internal processes for legal and security review. I'll get the ball rolling on that ASAP, but we won't be able to offer this until after the June launch. |
Beta Was this translation helpful? Give feedback.
-
I am glad to announce that we have opened up the API at full documentation would be available later |
Beta Was this translation helpful? Give feedback.
-
It would be great if hub provides and API napari could query to get information on plugins without having to query pypi directly.
This would allow to display information in the plugin/package manager inside napari that matches the look feel and information of napari hub.
Beta Was this translation helpful? Give feedback.
All reactions