# Package Aliases?

**URL:** https://discourse.julialang.org/t/package-aliases/29334
**Category:** General Usage
**Tags:** package
**Created:** [September 30, 2019, 5:58pm UTC](https://discourse.julialang.org/t/package-aliases/29334 "2019-09-30T17:58:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)
#### Post date: [September 30, 2019, 5:58pm UTC](https://discourse.julialang.org/t/package-aliases/29334/1 "2019-09-30T17:58:59Z")

</div>

It’s not uncommon that I use two packages that export functions with the same name so I’m wondering if we can define an alias for a package as you can do in other languages (e.g. `import numpy as np`).

For example, today I am working with some code that makes use of exactly two packages, EmpiricalCDFs and Queryverse, both of which export a `save` function. It would be nice to be able to add an alias so that I can just do `qv.save()` or `ecdf.save()`.

Is this possible? If not, how do others work around this (other than typing out the full package name)?

---

<div class="post-metadata">

### Author: ![jkbest2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jkbest2/32/7350_2.png) [@jkbest2](https://discourse.julialang.org/u/jkbest2)
#### Post date: [September 30, 2019, 6:08pm UTC](https://discourse.julialang.org/t/package-aliases/29334/2 "2019-09-30T18:08:13Z")

</div>

You can use

```julia
import Queryverse
const qv = Queryverse

```

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [September 30, 2019, 6:24pm UTC](https://discourse.julialang.org/t/package-aliases/29334/3 "2019-09-30T18:24:04Z")

</div>

The `save` function exported by queryverse is actually `FileIO.save` 🙂 Doesn’t help you here, but for all the packages that integrate with FileIO there shouldn’t be a conflict.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [September 30, 2019, 6:51pm UTC](https://discourse.julialang.org/t/package-aliases/29334/4 "2019-09-30T18:51:42Z")

</div>

[https://github.com/fredrikekre/ImportMacros.jl](https://github.com/fredrikekre/ImportMacros.jl) (disclaimer: my package.)

---

<div class="post-metadata">

### Author: ![mthelm85](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mthelm85/32/224164_2.png) [@mthelm85](https://discourse.julialang.org/u/mthelm85)
#### Post date: [October 1, 2019, 2:11pm UTC](https://discourse.julialang.org/t/package-aliases/29334/5 "2019-10-01T14:11:27Z")

</div>

Nice!
