# Python scripting in Dynamo (Django or Flask)

**URL:** <https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349>\
**Category:** DesignScript\
**Tags:** python, dynamo\
**Created:** [June 19, 2019, 6:35am UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349 "2019-06-19T06:35:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kriba741](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kriba741](https://forum.dynamobim.com/u/kriba741)\
**Post date:** [June 19, 2019, 6:35am UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/1 "2019-06-19T06:35:10Z")

</div>

As i am new to python scripting, when i surfed i came to know these two framework of DJANGO & FLASK. can anyone suggest which framework will best suite to dynamo environment.?

---

<div class="post-metadata">

**Author:** ![Ernesto\_Pellegrino](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ernesto_pellegrino/32/105226_2.png) [@Ernesto\_Pellegrino](https://forum.dynamobim.com/u/Ernesto_Pellegrino)\
**Post date:** [June 19, 2019, 10:41am UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/2 "2019-06-19T10:41:18Z")

</div>

Hi @kriba741, please read below:

1. It could be better if you say **hi** to the community, before asking for help. Nobody is actually working for you here 🙂, so maybe you want to [read this post](https://forum.dynamobim.com/t/how-to-get-help-on-the-dynamo-forums/4677) by @Dimitar_Venkov for your next post;

2. I am not (yet) a software engineer or a developer but I think the frameworks you just mentioned are for web-development, and probably you can’t use them with Dynamo BIM but I’ll wait for a better answer by one of the community experts. @jacob.small @solamour @john_pierson

**from wikipedia**

**Django** is a high-level **Python** Web **framework** that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.

**Flask** is a micro web framework written in Python. It is classified as a **microframework** because it does not require particular tools or libraries. It has no database abstraction layer, form validation, or any other components where pre-existing third-party libraries provide common functions.

---

<div class="post-metadata">

**Author:** ![kriba741](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kriba741](https://forum.dynamobim.com/u/kriba741)\
**Post date:** [June 19, 2019, 10:53am UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/3 "2019-06-19T10:53:21Z")

</div>

Hi @Ernesto_Pellegrino

1. I agree with your point and moving forward will continue it.
2. I was thinking to learn python from a scratch while surfing i came to know there were two frameworks (actually i dont know whether python scripting will come under this two frameworks or it is a separate package for dynamo scripting).

---

<div class="post-metadata">

**Author:** ![Ernesto\_Pellegrino](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ernesto_pellegrino/32/105226_2.png) [@Ernesto\_Pellegrino](https://forum.dynamobim.com/u/Ernesto_Pellegrino)\
**Post date:** [June 19, 2019, 12:07pm UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/4 "2019-06-19T12:07:56Z")

</div>

Ok I understand, you want to learn python regardless of DynamoBIM. I can advice you some online free courses below, but if you can, I strongly recommend you [this book](https://amzn.to/2IU8Bke) 🕶

online python free courses

- [python free course 1](https://www.learnpython.org/)

- [python free course 2](https://www.codecademy.com/learn/learn-python)

- [python free course 3](https://www.udemy.com/python-core-and-advanced/?ranMID=39197&ranEAID=JVFxdTr9V80&ranSiteID=JVFxdTr9V80-01CAUAWnbGxhCNZWVR6vew&LSNPUBID=JVFxdTr9V80)

hope it helps! 🖐

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 19, 2019, 1:07pm UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/5 "2019-06-19T13:07:41Z")

</div>

No need for either of those frameworks. You can use IronPython itself. Should install when you install Dynamo. Search for it and you’ll get something that pops up. You can learn the basics using that. You should know that Dynamo is limited to this particular Python framework, and that it is limited to Python 2 (so if you want to learn Python for Dynamo stick to the 2.x versions).

Personally I prefer learning stuff like this via an app as it allows me to tackle it during my commute home (I take the subway). I used ‘Learn Python’ by SoloLearn to do so. You should also be aware that there are some things which Python in Dynamo will handle differently then Iron Python (no print, worry about IN and OUT, how libraries are imported, etc.).

---

<div class="post-metadata">

**Author:** ![saju\_autodesk](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/saju_autodesk/32/61838_2.png) [@saju\_autodesk](https://forum.dynamobim.com/u/saju_autodesk)\
**Post date:** [June 19, 2019, 4:31pm UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/6 "2019-06-19T16:31:48Z")

</div>

100% agree Solo learn is the place i started.!  
Very cool and they have questions at each stage.  
Good place to start.

---

<div class="post-metadata">

**Author:** ![kriba741](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kriba741](https://forum.dynamobim.com/u/kriba741)\
**Post date:** [June 20, 2019, 5:10am UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/7 "2019-06-20T05:10:45Z")

</div>

@jacob.small thank u for your reply. Will start the suggested method from now onwards - hopefully in near future will seek your help to clarify some doubts.

@Ernesto_Pellegrino acutally i am trying to learn python to script only in dynamo but instead to jumping into the scripting first, thought of knowing the basic first. Thats the actual “Motto” for this post. Hopefully from your reply with the tagged fellow mates in the same field suggested some websites and books. Thank u for that. Cheers!!

---

<div class="post-metadata">

**Author:** ![kriba741](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@kriba741](https://forum.dynamobim.com/u/kriba741)\
**Post date:** [June 20, 2019, 5:19am UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/8 "2019-06-20T05:19:58Z")

</div>

@jacob.small there is no python 2 courses in solo learn, may be they have migrated to the latest version website course section contains only python 3. whether its okay to go with python 3 or i have to check for other websites to learn only python 2.?

Website link: [https://www.sololearn.com/Courses/](https://www.sololearn.com/Courses/)  
Surfed links : [https://www.sololearn.com/Discuss/277314/python-2-or-python-3](https://www.sololearn.com/Discuss/277314/python-2-or-python-3)

As u r already into this scripting, hopefully u will provide the better solution for this.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [June 20, 2019, 3:43pm UTC](https://forum.dynamobim.com/t/python-scripting-in-dynamo-django-or-flask/37349/9 "2019-06-20T15:43:18Z")

</div>

Yeah, apparently it is 3 only now (or maybe always was? Been a few years now). The differences aren’t too bad, and there are many web resources to learn them. However that was my biggest struggle.
