Python
If you are not already a member we suggest that you join the Arup Python Yammer. With over 1,000 members this is the best forum within Arup for asking general python questions.
If you have ArupCompute-specific problems you can reach out on the ArupCompute python Teams channel.
These page describes how to write python libraries for ArupCompute. This guide has been written using Visual Studio Code
as the development environment, utilising venv
for environments and targeting Python 3.8
.
There are two ways to create and publish your python libraries to ArupCompute:
RECOMMENDED
Through one of our Template Repos which simplifies the process of creation and deployment of a new ArupCompute library- Setting up the code structure yourself and uploading via the ArupCompute website. If you just want to be able to follow along with the guide exactly, then start with the setting up a python development environment guide. Developing for ArupCompute can be done with any python toolkit though, so if you are already happy with your setup head straight to writing your first ArupCompute python function.
Before starting a new library from scratch consider instead contributing to an existing one.
For example if you want to create engineering calculations that also have line-by-line outputs contribute to Python sample library instead of starting a new library.