Project-MONAI / Project-MONAI/monai-deploy-app-sdk

[FEA] Support inferring pip packages used in the application when packaging the app

Open
#170 1 comment 1 reaction 2 assignees View on GitHub

@KavinKrishnan is already working on this.

Since Oct 9, 2021.

enhancement
Dominant language
Python
Stars
138
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.

Although specifying dependent packages explicitly for the operator is a cleaner way to provide a reusable operator, providing automatic detection of the list of pip packages used at the application level could make users easy to use the SDK.

It would be nice to have such feature like BentoML does.

Describe the solution you'd like

Static analysis of imported code to detect pip packages used so user can choose to use it.

Instead of

@md.env(pip_packages=['monai==0.7.0', 'numpy>=1.20.1', 'SimpleITK>=2.0.2'])

User can specify

@md.env(infer_pip=True)

This is a similar API with BentoML.

Describe alternatives you've considered

Instead of implementing the feature from scratch, it is possible to use 3rdparty library to do so.

Additional context

Requests from https://github.com/Project-MONAI/monai-deploy-app-sdk/issues/165#issuecomment-939304212

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.