# 📝 Script preparation

# 🐍 Python scripts

There are a few requirements to use a python script inside an AWF workflow:

  1. Make sure your python script is runnable from the command line. The argparse python library is a good way to pass arguments to your script from the command line. The python code for the tutorial workflow (opens new window) shows how the argparse library can be used.
  2. Make a requirements.txt file with all the python dependencies required to run your script. This way the worker knows which dependencies to install before running your script. If you want to read up on the concept of the requirements.txt, have a look here (opens new window).
  3. Your script needs to be in an Arup git repository. Most of our workflows are on gitlab.arup.com (opens new window) but github.com/arup-group (opens new window) is also an option.
  4. Set your repository visibility should on "public". This does not make the repo available to anyone, just the people who have acces the Arup VPN.

Your script is now ready for AWF! You can go to the next page to start setting up your own worker.