{"id":21517627,"url":"https://github.com/tek/vim-pymport","last_synced_at":"2025-07-16T06:32:30.676Z","repository":{"id":13490858,"uuid":"16181362","full_name":"tek/vim-pymport","owner":"tek","description":"python autoimporter","archived":false,"fork":false,"pushed_at":"2018-09-09T13:48:18.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-27T08:24:06.821Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-23T18:29:45.000Z","updated_at":"2018-09-09T13:48:19.000Z","dependencies_parsed_at":"2022-09-04T05:23:24.785Z","dependency_job_id":null,"html_url":"https://github.com/tek/vim-pymport","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fvim-pymport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fvim-pymport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fvim-pymport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fvim-pymport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tek","download_url":"https://codeload.github.com/tek/vim-pymport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226113177,"owners_count":17575436,"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-24T00:43:52.161Z","updated_at":"2024-11-24T00:43:53.781Z","avatar_url":"https://github.com/tek.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\n**pymport** searches desired directories for the definition of a given python\nfunction, class or variable and adds or manipulates an import at the proper\nlocation.\n\nIf multiple modules match the given identifier, the user is asked to choose.\n\nA package precedence list option determines which imports to choose\nautomatically and where to place them.\n\n## Usage\n\nFor importing `\u003ccword\u003e`, use `\u003cPlug\u003e(pymport_cword)` or `:PymportCWord`.\nUsing a bang `!` with `PymportCWord` toggles `pymport_choose_by_precedence`.\n\nFor an arbitrary identifier, `call pymport#import('name')`.\n\n## Customization\n\n`pymport_paths` A list of directories to be searched\n\n`pymport_finder` The name of a vim function used for searching\n\n`pymport_formatter` The name of a vim function used for final formatting of the\nimport lines\n\n`pymport_target_locator` The name of a vim function used to determine the line\nwhere the import should be placed\n\n`pymport_package_precedence` A list of package names that determines the order\nin which import blocks from these are placed below any other packages\n\n`pymport_choose_by_precedence` If set, try to automatically pick an import if\nmultiple results were found by consulting `pymport_package_precedence`.\nToggled by `!`.\n\nIf you wanted to search third-party packages, you could add a line like this to\nyour config:\n\n`let g:pymport_paths += glob('$VIRTUAL_ENV/lib/python*/site-packages', 0, 1)`\n\n## License\n\nCopyright (c) Torsten Schmits. Distributed under the terms of the\n[MIT License][1].\n\n[1]: http://opensource.org/licenses/MIT 'mit license'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fvim-pymport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftek%2Fvim-pymport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fvim-pymport/lists"}