# What is the command to find the keywords/functions of a Package such as in CSV.jl or Unitful.jl?

**URL:** <https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100>\
**Category:** New to Julia\
**Tags:** package\
**Created:** [March 14, 2021, 12:45am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100 "2021-03-14T00:45:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 14, 2021, 12:45am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/1 "2021-03-14T00:45:09Z")

</div>

Greetings;  
As shown in the attachment, I tried to use names, names! and I tried [SHIFT]? to find keywords/functions . What is the correct keyword or script to view all keywords and their “docstrings” ?  
As shown in the top half of the attachment, I am guessing and researching online what units of measurements are valid. By the way, I am using [Replit.com](http://Replit.com) and it has Julia 1.3.

> **[GitHub - dhoegh/EngUnits.jl: A library that extends SIUnits.jl to handle...](https://github.com/dhoegh/EngUnits.jl#readme)**
>
> A library that extends SIUnits.jl to handle units through a string macro and enables the user to select the display unit. - GitHub - dhoegh/EngUnits.jl: A library that extends SIUnits.jl to handle ...

 ![chrome_dfz3KRAhnL](https://global.discourse-cdn.com/julialang/original/3X/1/9/197a2c6fed4ae09dd6bbe08d0ef8e933a96cbff1.png)

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [March 14, 2021, 1:31am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/2 "2021-03-14T01:31:38Z")

</div>

`varinfo()` or `names()` shows the objects but not their docstrings.

---

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 14, 2021, 3:44am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/3 "2021-03-14T03:44:19Z")

</div>

```julia
 Pkg.add(["LinearAlgebra","Unitful","CSV"])
using LinearAlgebra
using Unitful
using CSV

names(Unitful)
varinfo() 
help?> u*

```

It seems that varinfo() provides the local variable information, not the variables or units of measurement found in the added package. I tried the Unitful.jl, CSV.jl and LinearAlgebra.jl packages. When I use the names(EnterPkgName) and [SHIFT] ? I get some function info,but the docstring info did provide some hints of extra units of measurement are J for Joule, N for Newton and m for meters.

 ![chrome_cAzSAdl75V](https://global.discourse-cdn.com/julialang/original/3X/3/1/319573b541b33f4ab151609eee21e850e8f50619.png)

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 14, 2021, 5:06am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/4 "2021-03-14T05:06:44Z")

</div>

I don’t think there is a way to do what you want.

Maybe this is something that should be easier, but I think most people just refer to the online documentation.

Here is a solution using Documenter

```julia
julia> julia> using Documenter, Markdown, DataFrames;

julia> for n in names(DataFrames)
           docs = Documenter.DocSystem.getdocs(n)
           Markdown.MD(map(Documenter.DocSystem.parsedoc, docs)) |> display
       end;

```

This particular example might be overkill, of course, but I could see how a similar functionality might be more useful in other contexts.

---

<div class="post-metadata">

**Author:** ![jzr](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@jzr](https://discourse.julialang.org/u/jzr)\
**Post date:** [March 14, 2021, 5:12am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/5 "2021-03-14T05:12:13Z")

</div>

```julia
julia> varinfo(DataFrames)
  name size summary                 
  ––––––––––––––––– ––––––––––– ––––––––––––––––––––––––
  AbstractDataFrame 168 bytes DataType                
  All 40 bytes UnionAll                
  AsTable 184 bytes DataType                
...

```

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [March 14, 2021, 5:43am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/6 "2021-03-14T05:43:20Z")

</div>

You can write `Module.<tab>` to get a list of symbols, exported and not. Or you look up the docs and/or source online.

---

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 14, 2021, 9:13am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/7 "2021-03-14T09:13:54Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 14, 2021, 9:14am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/8 "2021-03-14T09:14:15Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 14, 2021, 9:15pm UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/9 "2021-03-14T21:15:31Z")

</div>

Greetings;  
Thank you for the useful script in which I replaced names(Documenter) with names(Unitful), besides other word replacements / additions.

```julia
import Pkg;
Pkg.add(["Documenter","DataFrames","Unitful","Markdown"]);
using Documenter, Markdown, DataFrames, Unitful
for n in names(Unitful)
             docs = Documenter.DocSystem.getdocs(n)
             Markdown.MD(map(Documenter.DocSystem.parsedoc, docs)) |> display
         end;

```

It did provide more insight, but not the Units of Measurement list (ex. hr, s, N, m, kg, inch,W, V…). I am viewing the documentation,

> **[GitHub - PainterQubits/Unitful.jl: Physical quantities with arbitrary units](https://github.com/PainterQubits/Unitful.jl)**
>
> Physical quantities with arbitrary units. Contribute to PainterQubits/Unitful.jl development by creating an account on GitHub.

> **[GitHub - chakravala/Similitude.jl: Dimensions and Quantities for UnitSystems.jl](https://github.com/chakravala/Similitude.jl)**
>
> Dimensions and Quantities for UnitSystems.jl. Contribute to chakravala/Similitude.jl development by creating an account on GitHub.

and testing assumed Units of Measurement .

 ![chrome_Z4Kca7dKdp](https://global.discourse-cdn.com/julialang/original/3X/1/d/1dd3e163351e5273e191ac25ab26c902a0bea0a2.png)

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [March 15, 2021, 3:52am UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/10 "2021-03-15T03:52:44Z")

</div>

[Here](https://www.github.com/PainterQubits/Unitful.jl/tree/master/src%2Fpkgdefaults.jl) is the definitive list of units defined in Unitful.

---

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 15, 2021, 12:47pm UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/11 "2021-03-15T12:47:43Z")

</div>

Thank you! The lesson I learned from you was to look at every file and folder in documentation to find my answer.  
I posted the results just in case github is down…

 ![Unitful_Units](https://global.discourse-cdn.com/julialang/original/3X/d/9/d96cfa59cc26d1f87282f1e8912b3ba20fc4a0be.png)

---

<div class="post-metadata">

**Author:** ![Victor\_Villavicencio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/victor_villavicencio/32/10774_2.png) [@Victor\_Villavicencio](https://discourse.julialang.org/u/Victor_Villavicencio)\
**Post date:** [March 15, 2021, 12:48pm UTC](https://discourse.julialang.org/t/what-is-the-command-to-find-the-keywords-functions-of-a-package-such-as-in-csv-jl-or-unitful-jl/57100/12 "2021-03-15T12:48:01Z")

</div>

Thank you !
