# Real-Time Py and Processing

**URL:** https://discourse.processing.org/t/real-time-py-and-processing/26551
**Category:** Libraries
**Created:** [December 28, 2020, 11:00am UTC](https://discourse.processing.org/t/real-time-py-and-processing/26551 "2020-12-28T11:00:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ginopalombi](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)
#### Post date: [December 28, 2020, 11:00am UTC](https://discourse.processing.org/t/real-time-py-and-processing/26551/1 "2020-12-28T11:00:24Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hello,  
I’m looking for a solution that can send in real-time an array from python to processing. I think that i may use the OSC, but I’m a beginner, where can I learn how to do this?  
Thanks

---

<div class="post-metadata">

### Author: ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)
#### Post date: [December 28, 2020, 12:03pm UTC](https://discourse.processing.org/t/real-time-py-and-processing/26551/2 "2020-12-28T12:03:18Z")

</div>

What do you mean? Do you want Python and processing to interact?

---

<div class="post-metadata">

### Author: ![Ginopalombi](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)
#### Post date: [December 28, 2020, 12:05pm UTC](https://discourse.processing.org/t/real-time-py-and-processing/26551/3 "2020-12-28T12:05:17Z")

</div>

Yes, I need to send an array from python to processing in real-time

---

<div class="post-metadata">

### Author: ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)
#### Post date: [December 28, 2020, 12:28pm UTC](https://discourse.processing.org/t/real-time-py-and-processing/26551/4 "2020-12-28T12:28:57Z")

</div>

I have no idea how to use OSC (library if I understand correctly) but the way I would do this (it is not too accurate and I have never done that before) would be to write a .txt file that both programs can read but only python can edit.

Again I have never done this before and it is purely theoretical. It might be insanely inefficient.

Unless you have a lot of free time to spare I suggest waiting for the regulars here.
