# How to export Julia functions to python?

**URL:** <https://discourse.julialang.org/t/how-to-export-julia-functions-to-python/57440>\
**Category:** Package Management\
**Tags:** package\
**Created:** [March 18, 2021, 5:44am UTC](https://discourse.julialang.org/t/how-to-export-julia-functions-to-python/57440 "2021-03-18T05:44:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![morphism](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@morphism](https://discourse.julialang.org/u/morphism)\
**Post date:** [March 18, 2021, 5:44am UTC](https://discourse.julialang.org/t/how-to-export-julia-functions-to-python/57440/1 "2021-03-18T05:44:54Z")

</div>

Hello, everyone  
I followed the steps in building Julia library.  
[https://julialang.github.io/PackageCompiler.jl/dev/devdocs/binaries\_part\_2/?fbclid=IwAR06HyDGHE6s8Ko1TaM5mC\_xPBmcGBhQ5VrKu-qU\_dgap9k190p6cbMd9Pw](https://julialang.github.io/PackageCompiler.jl/dev/devdocs/binaries_part_2/?fbclid=IwAR06HyDGHE6s8Ko1TaM5mC_xPBmcGBhQ5VrKu-qU_dgap9k190p6cbMd9Pw)

But I found there are no functions exported to outside in the library.  
So I couldn’t call Julia functions inside the library.

How can I make Julia functions be exported to Python?  
Thank you in advance

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [March 18, 2021, 5:45am UTC](https://discourse.julialang.org/t/how-to-export-julia-functions-to-python/57440/2 "2021-03-18T05:45:51Z")

</div>

[https://github.com/SciML/diffeqpy](https://github.com/SciML/diffeqpy)  
as an example

---

<div class="post-metadata">

**Author:** ![morphism](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@morphism](https://discourse.julialang.org/u/morphism)\
**Post date:** [March 18, 2021, 6:03am UTC](https://discourse.julialang.org/t/how-to-export-julia-functions-to-python/57440/3 "2021-03-18T06:03:06Z")

</div>

Hello, jling.  
Thank you for your comment and link  
However, I am looking for a way without PyCall nor PyJulia  
I want to build a DLL from Julia module and want to call it from Python like below

import ctypes  
cdll = ctypes.CDLL(“library path”)  
cdll.somefunction()

Thank you.
