# \[Python Plugin\] - Get origin information (CalledAet, RemoteIp)

**URL:** https://discourse.orthanc-server.org/t/python-plugin-get-origin-information-calledaet-remoteip/4045
**Category:** General
**Created:** [November 8, 2023, 7:56pm UTC](https://discourse.orthanc-server.org/t/python-plugin-get-origin-information-calledaet-remoteip/4045 "2023-11-08T19:56:38Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![gacou54](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@gacou54](https://discourse.orthanc-server.org/u/gacou54)
#### Post date: [November 9, 2023, 3:04pm UTC](https://discourse.orthanc-server.org/t/python-plugin-get-origin-information-calledaet-remoteip/4045/2 "2023-11-09T15:04:11Z")

</div>

Actually I think I found my answer here [Filtering incoming dicom instances using metadata (with python plugin) - #2 by Alain\_Mazy1](https://discourse.orthanc-server.org/t/filtering-incoming-dicom-instances-using-metadata-with-python-plugin/2624/2)

My understanding is that the information is accessible with `GetInstanceMetadata()` after the instance has been stored, which is something I would like to avoid. I will stay with lua then.

Follow up question: do you think it would be possible to change the `orthanc.InstanceOrigin` enum for an object similar to the `origin` table in lua for the Python Plugin?

Thanks!  
Gabriel

---

_[View the full topic](https://discourse.orthanc-server.org/t/python-plugin-get-origin-information-calledaet-remoteip/4045)._
