{"id":15359801,"url":"https://github.com/matthewfeickert/venv-activate","last_synced_at":"2025-10-08T12:49:16.624Z","repository":{"id":75876265,"uuid":"180076568","full_name":"matthewfeickert/venv-activate","owner":"matthewfeickert","description":"Bash creation and tab completion of activation of Python virtual environments","archived":false,"fork":false,"pushed_at":"2020-01-17T15:14:30.000Z","size":15,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T05:28:48.951Z","etag":null,"topics":["bash","python","tab-completion","venv","virtual-environments"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthewfeickert.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-08T05:33:13.000Z","updated_at":"2024-02-14T01:47:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7693731-1c47-4c0f-b2a8-09c7dc263061","html_url":"https://github.com/matthewfeickert/venv-activate","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"e09df75dcc9b362fb7ebb2cb32f6eb429d01ca7e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matthewfeickert/venv-activate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewfeickert%2Fvenv-activate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewfeickert%2Fvenv-activate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewfeickert%2Fvenv-activate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewfeickert%2Fvenv-activate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewfeickert","download_url":"https://codeload.github.com/matthewfeickert/venv-activate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewfeickert%2Fvenv-activate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278948017,"owners_count":26073747,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bash","python","tab-completion","venv","virtual-environments"],"created_at":"2024-10-01T12:46:23.283Z","updated_at":"2025-10-08T12:49:16.590Z","avatar_url":"https://github.com/matthewfeickert.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# venv-activate\n\nBash tab completion of creation and activation of Python virtual environments (installed under `$HOME/.venvs` by default)\n\n## Installation\n\nIf `_venv-activate.sh` is installed at `/opt/_venv-activate/_venv-activate.sh` then if the following is added to a user's `~/.bashrc`\n\n```\n# Enable tab completion of Python virtual environments\nif [ -f /opt/_venv-activate/_venv-activate.sh ]; then\n    _VENV_ACTIVATE_HOME=\"${HOME}/.venvs\"\n    _VENV_ACTIVATE_PYTHON=$(which python3)\n    . /opt/_venv-activate/_venv-activate.sh\nfi\n```\n\nthen a user can tab complete for possible Python virtual environments to activate with `venv-activate` (assuming that the path of `VENV_ACTIVATE_HOME` actually exists).\n\n## Example\n\n```\n$ venv-create data-science\n```\n\nresults in\n\n```\n\n(data-science) $ python -m pip install --upgrade pip setuptools wheel\n\n# Created virtual environment data-science\n\n# To activate it run:\n\nvenv-activate data-science\n\n# To exit the virtual environment run:\n\ndeactivate\n\n\n```\n\nand then\n\n```\n$ venv-activate #tab\n```\n\nresults in\n\n```\n$ venv-activate\ndata-science\n```\n\nand tab completing `data-science` and hitting `enter` then activates the virtual environment\n\n```\n(data-science) $\n```\n\n## API\n\n### `venv-create`\n\nCreate a new Python virtual environment.\n\n```\n$ venv-create sandbox\n\n(sandbox) $ python -m pip install --upgrade pip setuptools wheel\n\n# Created virtual environment sandbox\n\n# To activate it run:\n\nvenv-activate sandbox\n\n# To exit the virtual environment run:\n\ndeactivate\n\n```\n\n### `venv-activate`\n\nActivate an existing Python virtual environment.\n\n```\n$ venv-activate sandbox\n(sandbox) $\n```\n\n### `venv-remove`\n\nRemove an existing Python virtual environment by deleting the `venv` directory (which holds the Python runtime and installed packages).\n\n```\n$ venv-remove sandbox\n\n# Deleted virtual environment sandbox\n```\n\n### `venv-info`\n\nShow version information for Python and pip, and how many packages are installed inside the Python virtual environment.\n\n```\n$ venv-info sandbox\n\n# Python   : v3.7.5\n# pip      : v19.3.1\n# installed: 1 packages\n```\n\n## Authors\n\nPrimary Author: [Matthew Feickert](http://www.matthewfeickert.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewfeickert%2Fvenv-activate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewfeickert%2Fvenv-activate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewfeickert%2Fvenv-activate/lists"}