# View Python Scripts on GitHub

**URL:** <https://forum.inductiveautomation.com/t/view-python-scripts-on-github/76583>\
**Category:** Ignition\
**Tags:** perspective, scripting, ignition81\
**Created:** [July 19, 2023, 1:51pm UTC](https://forum.inductiveautomation.com/t/view-python-scripts-on-github/76583 "2023-07-19T13:51:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tim\_Carlton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim_carlton/32/52835_2.png) [@Tim\_Carlton](https://forum.inductiveautomation.com/u/Tim_Carlton)\
**Post date:** [July 19, 2023, 2:11pm UTC](https://forum.inductiveautomation.com/t/view-python-scripts-on-github/76583/2 "2023-07-19T14:11:28Z")

</div>

Have you looked at the best practices whitepaper:  
[Ignition 8 Deployment Best Practices](https://inductiveautomation.com/resources/article/ignition-8-deployment-best-practices)

The Scripting -\> Project Library scripts end up in /data/projects//ignition/script-python//code.py

If you have set your repo at the projects level or the projects/ level then that folder (and code) should be included.

Scripts that are part of a view are embedded in the view.json

```auto
{
        "events": {
          "dom": {
            "onClick": {
              "config": {
                "script": "\tpass"
              },
              "scope": "G",
              "type": "script"
            }
          }
        },
        "meta": {
          "name": "Button"
        },
        "position": {
          "basis": "80px"
        },
        "scripts": {
          "customMethods": [
            {
              "name": "newMethod",
              "params": [],
              "script": "\t# implement your method here\n\tpass"
            }
          ],
          "extensionFunctions": null,
          "messageHandlers": [
            {
              "messageType": "type-name-here",
              "pageScope": true,
              "script": "\t# implement your handler here\n\tpass",
              "sessionScope": false,
              "viewScope": false
            }
          ]
        },
        "type": "ia.input.button"
      }

```

Session scripts end up in data.bin. Despite the name it is human readable (and diffable) JSON.

Also, check out the Git Extension described here: [Module Git - Easy integration of git for your development](https://forum.inductiveautomation.com/t/module-git-easy-integration-of-git-for-your-development/72033)  
It is really good.

---

_[View the full topic](https://forum.inductiveautomation.com/t/view-python-scripts-on-github/76583)._
