# Get an array of modules that a module is using/importing

**URL:** <https://discourse.julialang.org/t/get-an-array-of-modules-that-a-module-is-using-importing/25946>\
**Category:** General Usage\
**Created:** [July 2, 2019, 11:57pm UTC](https://discourse.julialang.org/t/get-an-array-of-modules-that-a-module-is-using-importing/25946 "2019-07-02T23:57:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitreo12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vitreo12/32/4028_2.png) [@vitreo12](https://discourse.julialang.org/u/vitreo12)\
**Post date:** [July 2, 2019, 11:57pm UTC](https://discourse.julialang.org/t/get-an-array-of-modules-that-a-module-is-using-importing/25946/1 "2019-07-02T23:57:05Z")

</div>

Hello everyone,  
I was wondering if there was a function that could allow me to inspect which `module`s a `module` is `using`. Does anyone know about it? I tried the `propertynames` and `names` functions, but they don’t seem to show all the used/imported modules.

---

<div class="post-metadata">

**Author:** ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)\
**Post date:** [July 3, 2019, 12:41am UTC](https://discourse.julialang.org/t/get-an-array-of-modules-that-a-module-is-using-importing/25946/2 "2019-07-03T00:41:13Z")

</div>

It looks like there’s not a good public API for this. The REPL module has the following non-public function:

```julia
using REPL
REPL.moduleusings(YourModule)

```

Feel free to open an issue on github and we could think about making an official API for this.

---

<div class="post-metadata">

**Author:** ![vitreo12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vitreo12/32/4028_2.png) [@vitreo12](https://discourse.julialang.org/u/vitreo12)\
**Post date:** [July 5, 2019, 12:09pm UTC](https://discourse.julialang.org/t/get-an-array-of-modules-that-a-module-is-using-importing/25946/3 "2019-07-05T12:09:28Z")

</div>

Thank you for the answer. Is there also an analogous function to find `import`ed modules too? They don’t appear to be shown with `REPL.moduleusings`.

---

<div class="post-metadata">

**Author:** ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)\
**Post date:** [July 6, 2019, 4:14am UTC](https://discourse.julialang.org/t/get-an-array-of-modules-that-a-module-is-using-importing/25946/4 "2019-07-06T04:14:42Z")

</div>

No, I think you need to deduce that from `names(..., imported=true)`.
