Skip to content

Jan9103/nushell_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python nu package

Integrate python features into nu.

Features

Python venv

This attempts to emulate bash's source .venv/bin/activate:

  • update the path to prefer the venv's binaries
  • clear the PYTHONHOME
  • export VIRTUAL_ENV with a path to the venv

And adds a few extra features:

  • adds src and tests to the PYTHONPATH

It allows stacking venvs (only the top one is active, but you can switch back a lot easier).

Usage:

  • pyvenv activate (optional argument: specify which directory)
  • pyvenv deactivate
  • pyvenv list

env-var conversion

python docs: env vars

The Package adds env-var conversions for:

  • PYTHONPATH

PIP

  • Tab completion for integrated commands
  • Parse output from list, etc
  • updateall

Pylint

  • parsed pylint
  • tab completion

flake8

  • parsed flake8
  • tab completion

mypy

  • parsed mypy
  • tab completion

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published