https://github.com/dephell/dephell_shells
Activate virtual environment for current shell
https://github.com/dephell/dephell_shells
dephell python shell venv virtualenv
Last synced: about 2 months ago
JSON representation
Activate virtual environment for current shell
- Host: GitHub
- URL: https://github.com/dephell/dephell_shells
- Owner: dephell
- License: mit
- Created: 2019-03-20T12:52:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-29T08:08:52.000Z (almost 6 years ago)
- Last Synced: 2025-09-03T15:59:27.077Z (7 months ago)
- Topics: dephell, python, shell, venv, virtualenv
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dephell Shells
Run shell for virtual environment.
## Installation
Install from [PyPI](https://pypi.org/project/dephell-shells/):
```bash
python3 -m pip install --user dephell_shells
```
## Usage
```python
from pathlib import Path
from dephell_shells import Shells
shells = Shells(bin_path=Path('/home/gram/.../dephell-nLn6/bin'))
shells.current
# ZshShell(bin_path=Path('/home/gram/.../dephell-nLn6'), shell_path=Path('/usr/bin/zsh'))
shells.current.run()
```
## CLI
Show current shell path:
```bash
$ python3 -m dephell_shells
/bin/zsh
```
Actiavate venv:
```bash
$ python3.7 -m dephell_shells ./venv/bin
```