{"id":20590426,"url":"https://github.com/probml/superimport","last_synced_at":"2025-04-14T22:26:26.789Z","repository":{"id":57472342,"uuid":"371091008","full_name":"probml/superimport","owner":"probml","description":"Simple package to lookup missing packages and autoinstall them.","archived":false,"fork":false,"pushed_at":"2021-09-12T13:36:10.000Z","size":98,"stargazers_count":7,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-22T18:42:15.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/probml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-26T15:54:25.000Z","updated_at":"2023-09-06T17:26:27.000Z","dependencies_parsed_at":"2022-08-30T17:02:03.121Z","dependency_job_id":null,"html_url":"https://github.com/probml/superimport","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probml%2Fsuperimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probml%2Fsuperimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probml%2Fsuperimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probml%2Fsuperimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probml","download_url":"https://codeload.github.com/probml/superimport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248970518,"owners_count":21191448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T07:36:34.673Z","updated_at":"2025-04-14T22:26:26.765Z","avatar_url":"https://github.com/probml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# superimport\nSimple package to lookup missing packages and autoinstall them.\n## Installing using PyPi:\n`pip install superimport`\n## Usage:\nThere are two ways to use superimport:\n\n- superimport can be called as a program, see `-h` for args. This allows you to do \"superimports\" across mulitple files and folders.\n- by adding `import superimport` to the top of your python script. This is the per script mode.\n## Examples:\nSee this notebook \n\n\n\n\u003ca href=\"https://colab.research.google.com/github/probml/probml-notebooks/blob/main/notebooks/Superimport.ipynb\" target=\"_parent\"\u003e\n  \u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/\u003e\n\u003c/a\u003e\n\n\n## 🔪 Sharp edges 🔪:\n- If the missing python package contains a requirement that is not listed in its own requirements.txt and is being used your file will fail anyway.\n- If you import superimport twice in the same process (a common usecase is ipython kernels), the second time will not work because of the way python [loads modules](https://docs.python.org/3/reference/import.html) , you would need a something like [deimport](https://github.com/probml/deimport) to deimport the package before being able to import superimport to the desired effect again.\n- If you run superimport in ipython, please use [deimport](https://github.com/probml/deimport/) to deimport superimport and use `%run -n` if you use `%run`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobml%2Fsuperimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobml%2Fsuperimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobml%2Fsuperimport/lists"}