Looking for feedback - minimal repo that calls Julia code from Python

Hi all!

I have created a minimal repository where a Python API function calls an underlying Julia function and returns the computed result in Python land. If you want to try it, make run should work for you on linux or macos.

This is for a scenario where both core development of Julia software and maintenance of a Python API live in one monorepo.

I’ll also copy the folder structure here, for a quick overview.

├── demo_data.json
├── demo_script.py
├── julia_src
│   └── MyJuliaModule.jl
├── Makefile
├── Project.toml
├── python_src
│   ├── __init__.py
│   ├── _julia_backend.py
│   └── _python_api.py
├── README.md
└── requirements.txt


  • Is juliacall the appropriate Python library to use?
  • Do the folder structure and contents of python_src/_julia_backend.py look sane?
  • If you were in my shoes, what would you do differently?

PS. Providing only a link to the repo seemed appropriate here. Please inform me if any more information is needed.