# Best practice for developing Julia packages with multi-language supports (Python)

**URL:** <https://discourse.julialang.org/t/best-practice-for-developing-julia-packages-with-multi-language-supports-python/74847>\
**Category:** New to Julia\
**Tags:** python\
**Created:** [January 19, 2022, 4:38am UTC](https://discourse.julialang.org/t/best-practice-for-developing-julia-packages-with-multi-language-supports-python/74847 "2022-01-19T04:38:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iHany](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihany/32/18151_2.png) [@iHany](https://discourse.julialang.org/u/iHany)\
**Post date:** [January 19, 2022, 4:38am UTC](https://discourse.julialang.org/t/best-practice-for-developing-julia-packages-with-multi-language-supports-python/74847/1 "2022-01-19T04:38:56Z")

</div>

Hi, I’m trying to make a Julia package that has multi-language supports, especially Python.

## Background

The following repo exports some predefined neural networks, compatible with Flux.jl.

> **[GitHub - JinraeKim/ParametrisedConvexApproximators.jl: A Julia package for parameterized convex...](https://github.com/JinraeKim/ParametrisedConvexApproximators.jl)**
>
> A Julia package for parameterized convex approximators including parameterized log-sum-exp (PLSE) network.

I’d like to make the neural networks PyTorch-compatible.  
So, I thought that two options may be available.

1. Using some packages, export networks from Flux.jl to PyTorch.
2. Write a new script for PyTorch-compatible neural networks.

I tried to do 1. but I failed it. So I’m trying to write a new script for PyTorch-version neural networks. That is, some scripts like `neural_networks.py`.

## Questions

1. Is it a good idea to add some Python scripts within a Julia package?
2. Is there any alternative way to accomplish what I desire? Like, exporting Flux.jl-based neural networks to a PyTorch one.
