juliapkg: Julia Version and Package Manager for Python

0.1.23 · active · verified Fri Apr 17

JuliaPkg is a Python library that allows managing Julia installations and Julia packages directly from within Python. It provides functions to add specific Julia versions, install Julia packages, and ensure they are available for use, often in conjunction with PyJulia (the `julia` Python package) for direct interaction. It aims to simplify the setup of Julia environments for Python users. The current version is 0.1.23, and it's actively maintained with regular releases.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to add a specific Julia version and a Julia package, then install them to set up a managed Julia environment from Python.

import juliapkg
import os

# Add a specific Julia version (e.g., 1.9.4).
# If not present, juliapkg will download and install it into a managed location.
juliapkg.add_julia("1.9.4")

# Add a Julia package to the managed environment.
juliapkg.add("Example")

# Install all added Julia versions and packages.
# This ensures they are available in the Python-managed Julia environment.
juliapkg.install()

print("Julia 1.9.4 and 'Example' package are installed and ready.")
print("To use them, typically you would interface with PyJulia:")
print("  from julia import Julia")
print("  jl = Julia()")
print("  jl.eval('using Example; Example.hello()')")

view raw JSON →