# Tag(path) in python?

**URL:** <https://forum.inductiveautomation.com/t/tag-path-in-python/5728>\
**Category:** Ignition\
**Created:** [January 23, 2013, 4:17pm UTC](https://forum.inductiveautomation.com/t/tag-path-in-python/5728 "2013-01-23T16:17:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 23, 2013, 4:17pm UTC](https://forum.inductiveautomation.com/t/tag-path-in-python/5728/1 "2013-01-23T16:17:17Z")

</div>

Is there a python equivalent to this expression function?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 23, 2013, 4:21pm UTC](https://forum.inductiveautomation.com/t/tag-path-in-python/5728/2 "2013-01-23T16:21:00Z")

</div>

Yes, system.tag.read(“Path/To/Tag”). The path is jus a string.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 23, 2013, 6:19pm UTC](https://forum.inductiveautomation.com/t/tag-path-in-python/5728/3 "2013-01-23T18:19:55Z")

</div>

tag(path) returns a tag object.

system.tag.read(path) returns a qualified value.

I need a python function that returns a tag object not it’s current value.

Or the correct syntax for:

```auto
runScript('app.functionRequiringATagObject(tag(path/to/tag))')
```

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 23, 2013, 6:59pm UTC](https://forum.inductiveautomation.com/t/tag-path-in-python/5728/4 "2013-01-23T18:59:53Z")

</div>

The tag function in the expression language returns the value not the tag object. The datatype is just an Object because a tag can be a boolean, integer, string, float, etc. If you want a specific part of the tag you have to address it:

Path/To/Tag.SomeProperty

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [January 23, 2013, 8:25pm UTC](https://forum.inductiveautomation.com/t/tag-path-in-python/5728/5 "2013-01-23T20:25:36Z")

</div>

Thanks for the clarification.
