Skip to content

Request: Expose the import to conda package name mapping table in a more cost-effective way. #55

Open
@schuylermartin45

Description

@schuylermartin45

I have a need in conda-recipe-manager to acquire a mapping of import names to conda package names.

Currently, this project supports querying the API for a single string look-up:

def map_import_to_package(import_name: str) -> str:

For what we plan to do with conda-recipe-manager, this could easily turn into a very large number (at least in the thousands) of API requests a day. For data that seems to change pretty infrequently, that seems excessive and costly.

I would much rather have a local cache of this mapping data, but periodically update it through a new API in this project.

The current size of the JSON file containing this mapping in cf-countyfair is ~800kb. I have gotten that down to about 300kb by removing some redundant fields. If we expect this list to grow significantly, the new query may need to be built with pagination in mind.

See this conversation for additional context: conda/conda-recipe-manager#218

tl;dr
I would like to request a new API endpoint that exposes the import mapping data currently available in cf-countyfair.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions