# Create temporary local namespace?

**URL:** <https://discourse.julialang.org/t/create-temporary-local-namespace/101227>\
**Category:** General Usage\
**Created:** [July 5, 2023, 7:56pm UTC](https://discourse.julialang.org/t/create-temporary-local-namespace/101227 "2023-07-05T19:56:34Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [July 5, 2023, 10:38pm UTC](https://discourse.julialang.org/t/create-temporary-local-namespace/101227/8 "2023-07-05T22:38:39Z")

</div>

You can also use `@with` from @Mason’s StaticModules.jl package:

> **[GitHub - MasonProtter/StaticModules.jl: Static module-like namespaces for julia](https://github.com/MasonProtter/StaticModules.jl)**
>
> Static module-like namespaces for julia. Contribute to MasonProtter/StaticModules.jl development by creating an account on GitHub.

It works on any object that supports both `propertynames` and `getproperty`, which includes structs, named tuples, and dataframes.

Although since he didn’t mention it himself, perhaps he prefers not to promote that package. 🙂

---

_[View the full topic](https://discourse.julialang.org/t/create-temporary-local-namespace/101227)._
