Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkf/pyvenvs.jl
Julian interface for Pythonic virtual environments
https://github.com/tkf/pyvenvs.jl
julia python venv virtualenv
Last synced: 3 months ago
JSON representation
Julian interface for Pythonic virtual environments
- Host: GitHub
- URL: https://github.com/tkf/pyvenvs.jl
- Owner: tkf
- License: mit
- Created: 2020-09-13T20:26:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T00:08:06.000Z (over 4 years ago)
- Last Synced: 2024-10-16T21:20:08.572Z (3 months ago)
- Topics: julia, python, venv, virtualenv
- Language: Julia
- Homepage:
- Size: 15.6 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyVenvs: Julian interface for Pythonic virtual environments
```Julia
module MyPackageusing PyVenvs
@pyvenv CLI_VENV requirements="""
Pygments ==2.*
docutils ==0.16.*
"""function __init__()
PyVenvs.init(CLI_VENV)
endpygmentize(args::Cmd) = Cmd(CLI_VENV, `pygmentize $args`)
rst2html(args::Cmd) = Cmd(CLI_VENV, `rst2html.py $args`)end # module
```## PyCall integration
```Julia
julia> using PyVenvsjulia> PyVenvs.init_pycall()
julia> using PyCall
```Note that `PyVenvs.init_pycall` should _not_ be called in packages.
Typically, it should be called at the beginning of a script or REPL
session as soon as possible.