# Yaml directive include

**URL:** <https://discourse.nameko.io/t/yaml-directive-include/649>\
**Category:** Uncategorized\
**Created:** [November 20, 2020, 9:36pm UTC](https://discourse.nameko.io/t/yaml-directive-include/649 "2020-11-20T21:36:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cs91chris](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/cs91chris/32/121_2.png) [@cs91chris](https://discourse.nameko.io/u/cs91chris)\
**Post date:** [November 20, 2020, 9:36pm UTC](https://discourse.nameko.io/t/yaml-directive-include/649/1 "2020-11-20T21:36:02Z")

</div>

Hi,  
we are using nameko for our internal platform. There are many services started singularly with its own configuration file. But in every file there is the section LOGGING equals for all.  
I see that some yaml implementation use a directive !include in order to import piece on configuration from another file. There is a way to do this even with nameko?

---

<div class="post-metadata">

**Author:** ![mattbennett](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/mattbennett/32/13_2.png) [@mattbennett](https://discourse.nameko.io/u/mattbennett)\
**Post date:** [November 22, 2020, 9:54pm UTC](https://discourse.nameko.io/t/yaml-directive-include/649/2 "2020-11-22T21:54:01Z")

</div>

YAML parsers that support include implement it with a custom loader. Nameko does not, currently.

You can see the [code that sets up the YAML parser here](https://github.com/nameko/nameko/blob/a719cb1487f643769e2d13daf255c20551490f43/nameko/cli/main.py#L102-L111)

It would be neat if Nameko exposed the ability to add new directives here, but it does not currently. To add one you’d need probably need to patch the existing function.

---

<div class="post-metadata">

**Author:** ![cs91chris](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/cs91chris/32/121_2.png) [@cs91chris](https://discourse.nameko.io/u/cs91chris)\
**Post date:** [November 23, 2020, 4:44pm UTC](https://discourse.nameko.io/t/yaml-directive-include/649/3 "2020-11-23T16:44:22Z")

</div>

thanks for reply and for nameko 😃
