> For the complete documentation index, see [llms.txt](https://calctree.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://calctree.gitbook.io/docs/calculations/creating-calculations/python/pre-installed-libraries.md).

# Pre-installed libraries

CalcTree provides a set of pre-installed Python libraries ready for use in your scripts. These include numerical, plotting, structural, geotechnical, and simulation packages commonly used in engineering workflows.

To use any library, you must import it at the top of your Python script as you would in a standard Python environment:

```python
import numpy as np
import matplotlib.pyplot as plt
```

### Available Libraries

The following libraries are currently supported in CalcTree:

<table><thead><tr><th width="203">Library</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://anastruct.readthedocs.io/en/latest/getting_started.html">anaStruct</a></td><td>2D structural analysis in Python</td></tr><tr><td><a href="https://github.com/arup-group/REDi?tab=readme-ov-file">REDi</a></td><td>(Resilient Design for the Next Generation of Buildings) seismic engine documentation developed at ARUP</td></tr><tr><td><a href="https://github.com/ADGEfficiency/energy-py-linear">energy-py-linear</a></td><td>Optimize energy assets using mixed-integer linear programming</td></tr><tr><td><a href="https://github.com/pcachim/eurocodepy/tree/master">eurocodepy</a></td><td>A Python package for calculating structures according to Eurocodes</td></tr><tr><td><a href="https://ezdxf.readthedocs.io/en/stable/">ezdxf</a></td><td>A Python package to create new DXF documents and read/modify/write existing DXF</td></tr><tr><td><a href="https://github.com/gempy-project/gempy">GemPy</a></td><td>An open-source, Python-based 3-D structural geological modeling software</td></tr><tr><td><a href="https://github.com/snakesonabrain/groundhog/tree/main">Groundhog</a></td><td>A general-purpose geotechnical package</td></tr><tr><td><a href="https://github.com/connorferster/handcalcs">handcalcs</a></td><td>handcalcs Python library for converting Python calculations into rendered latex</td></tr><tr><td><a href="https://github.com/leotac/joypy">joypy</a></td><td>Joyplots in Python with matplotlib &#x26; pandas</td></tr><tr><td><a href="https://github.com/matplotlib/matplotlib/tree/main">matplotlib</a></td><td>Plotting with Python</td></tr><tr><td><a href="https://github.com/numpy/numpy/tree/main">numpy</a></td><td>The fundamental package for scientific computing with Python</td></tr><tr><td><a href="https://github.com/zhuminjie/OpenSeesPy">OpenSeesPy</a> + <a href="https://github.com/sewkokot/opsvis">OpsVis</a></td><td>Finite element applications for simulating the response of structural and geotechnical systems subjected to earthquakes</td></tr><tr><td><a href="https://pandas.pydata.org/docs/user_guide/index.html">Pandas</a></td><td>Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more</td></tr><tr><td><a href="https://github.com/spacether/pycalculix">pyCalculiX</a></td><td>Python 3 library to automate and build finite element analysis (FEA) models in Calculix</td></tr><tr><td><a href="https://github.com/ccaprani/pycba/">pycba</a></td><td>Python Continuous Beam Analysis</td></tr><tr><td><a href="https://github.com/WISDEM/pyFrame3DD">pyFrame3DD</a></td><td>Python bindings to Frame3DD</td></tr><tr><td><a href="https://github.com/JWock82/PyNite/tree/main">PyNite</a></td><td>A 3D structural engineering finite element library for Python</td></tr><tr><td><a href="https://github.com/pysal">pysal</a></td><td>Python Spatial Analysis Library</td></tr><tr><td><a href="https://github.com/scikit-learn/scikit-learn/tree/main">Scikit-learn</a></td><td>Machine learning in Python</td></tr><tr><td><a href="https://github.com/scipy/scipy/tree/main">Scipy</a></td><td>Software for mathematics, science, and engineering. It includes modules for statistics, optimization, integration, linear algebra, Fourier transforms, signal and image processing, ODE solvers, and more.</td></tr><tr><td><a href="https://github.com/mwaskom/seaborn">seaborn</a></td><td>Statistical data visualization in Python</td></tr><tr><td><a href="https://github.com/robbievanleeuwen/section-properties/tree/master">sectionproperties</a></td><td>Analysis of an arbitrary cross-section in Python using the finite element method</td></tr><tr><td><a href="https://gitlab.com/team-simpy/simpy/">SimPy</a></td><td>A process-based discrete-event simulation framework</td></tr><tr><td><a href="https://github.com/BrianChevalier/StructPy/tree/master">StructPy</a></td><td>Structural Analysis Library for Python based on the direct stiffness method</td></tr><tr><td><a href="https://www.sympy.org/en/index.html">SymPy</a></td><td>Symbolic mathematics</td></tr><tr><td><a href="https://github.com/topojson/topojson">topojson</a></td><td>An extension of GeoJSON that encodes topology</td></tr></tbody></table>

### Roadmap and Feedback

We’re actively expanding this list based on user demand.\
You can view the current roadmap and request support for additional libraries [here](https://calctree.productlane.com/roadmap).

Let us know which packages are essential to your workflow.
