# How to use a package without all its exports?

**URL:** <https://discourse.julialang.org/t/how-to-use-a-package-without-all-its-exports/802>\
**Category:** General Usage\
**Tags:** package\
**Created:** [December 8, 2016, 3:59am UTC](https://discourse.julialang.org/t/how-to-use-a-package-without-all-its-exports/802 "2016-12-08T03:59:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [December 8, 2016, 3:59am UTC](https://discourse.julialang.org/t/how-to-use-a-package-without-all-its-exports/802/1 "2016-12-08T03:59:17Z")

</div>

Is there any way to do `using Foo` and have all the exports only accessed via `Foo.bar`?

I am having an issue with two packages defining the same name. When I use both I get a warning about the ambiguity.

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 8, 2016, 4:03am UTC](https://discourse.julialang.org/t/how-to-use-a-package-without-all-its-exports/802/2 "2016-12-08T04:03:54Z")

</div>

You can use `import Foo`

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [December 8, 2016, 4:08am UTC](https://discourse.julialang.org/t/how-to-use-a-package-without-all-its-exports/802/3 "2016-12-08T04:08:10Z")

</div>

Indeed! I am constantly switching between Julia, Python and other things, forgot about the import convention. Marking as solved, thank you.
