# Using python instead of javascript

**URL:** <https://cwl.discourse.group/t/using-python-instead-of-javascript/793>\
**Category:** CWL Questions\
**Created:** [May 4, 2023, 5:20pm UTC](https://cwl.discourse.group/t/using-python-instead-of-javascript/793 "2023-05-04T17:20:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanasa](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/tanasa/32/333_2.png) [@tanasa](https://cwl.discourse.group/u/tanasa)\
**Post date:** [May 4, 2023, 5:20pm UTC](https://cwl.discourse.group/t/using-python-instead-of-javascript/793/1 "2023-05-04T17:20:22Z")

</div>

Dear all, please would you let me know if / how I can use python instead of JS fro CWL based workflows ? If it is so, is there a short tutorial available ?

---

<div class="post-metadata">

**Author:** ![alexiswl](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/alexiswl/32/93_2.png) [@alexiswl](https://cwl.discourse.group/u/alexiswl)\
**Post date:** [September 20, 2023, 11:32pm UTC](https://cwl.discourse.group/t/using-python-instead-of-javascript/793/2 "2023-09-20T23:32:38Z")

</div>

Hi @tanasa, as an avid python user myself, I would love if this was a feature.

Unfortunately, the glue to connect a lot of CWL logic as JS based.

If it’s any consolation, I’ve used TypeScript to write my JS logic (see my video [here](https://www.youtube.com/watch?v=Dn-zjkHtra8)).

This gives you the OO and type hinting one might expect from python when it comes to working with CWL objects.

You can also use python via the InitialWorkDirRequirement to wrap python scripts inside CWL.

I have an example of that [here](https://github.com/umccr/cwl-ica/blob/b576cd5e9e1365d1e341fee3d7af5bd4a625b4e3/tools/custom-create-directory/2.0.1/custom-create-directory__2.0.1.cwl#L45)
