# Wrap Julia package in Python: which is the best option?

**URL:** <https://discourse.julialang.org/t/wrap-julia-package-in-python-which-is-the-best-option/79344>\
**Category:** Package Management\
**Tags:** python\
**Created:** [April 11, 2022, 1:46pm UTC](https://discourse.julialang.org/t/wrap-julia-package-in-python-which-is-the-best-option/79344 "2022-04-11T13:46:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![marcobonici](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marcobonici/32/20549_2.png) [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Post date:** [April 11, 2022, 1:46pm UTC](https://discourse.julialang.org/t/wrap-julia-package-in-python-which-is-the-best-option/79344/1 "2022-04-11T13:46:54Z")

</div>

I have written some modules in Julia that I’d like to call from Python.  
While this is not an issue per se, I’d like to be able to call those packages _without_ having Julia installed. Although this may look as a weird request, I want to share my codes with other people I am working with…that mainly works with Python.

After a quick discussion with @miguelraz , I have considered several options:

1. Using [JuliaCall](https://cjdoris.github.io/PythonCall.jl/dev/juliacall/) . From the description, it looks that it could handle automatically the installation of Julia if no local version is found.
2. Make a Python wrapper, such as in [diffeqpy](https://github.com/SciML/diffeqpy) (@miguelraz suggested me to tag @ChrisRackauckas )
3. Make a Python wrapper, such as in @MilesCranmer 's [PySr](https://github.com/MilesCranmer/PySR). If I correctly understand, the conda forge recipy automatically installs Julia if required.

I know that installing Julia is not difficult, but I’d like to make at least a module that is pip installable and does not require manual Julia installation, to start spreading Julia with older peeps in my group.

I thank you in advance for your suggestions.  
Cheers,  
Marco

---

_[View the full topic](https://discourse.julialang.org/t/wrap-julia-package-in-python-which-is-the-best-option/79344)._
