Python wrapper for SAFE API
Project description
ak_safe
Python wrapper for SAFE. Generate/Analyze/Extract complex structural models using python.
GUI · Getting Started · Layout Documentation · Report Bug/Request Feature
Table of Contents
- 1. About the Project
- 2. Getting Started
- 3. Usage
- 4. Roadmap
- 5. License
- 6. Contact
- 7. Acknowledgements
1. About the Project
2. Getting Started
2.1. Prerequisites
- Python 3.11 or above
- CSI SAFE v21 or higher
2.2. Installation
2.2.1. Production
2.2.1.1. Install from Pypi release
pip install ak_safe
Note: The Pypi version does not ship with the optional streamlit gui
2.2.2. Development
Download the git and install via flit
git clone https://github.com/rpakishore/ak_safe.git
cd ak_sap
pip install flit
flit install --pth-file
3. Usage
Initialize the module as below
from ak_safe import debug, SAFEWrapper
debug(status=False)
#Initialize
safe = SAFEWrapper(attach_to_exist=True) #Attach to existing opened model
safe = SAFEWrapper(attach_to_exist=False) #Create new blank model from latest SAP2000
## Create blank model from a custom version of SAP2000
safe = SAFEWrapper(attach_to_exist=False, program_path=r'Path\to\SAP2000.exe')
Parent level methods and attributes
safe.hide(status=True) #Hide the SAFE window
safe.unhide(status=False) #Unhides SAFE window
safe.version #Returns SAFE version number
safe.api_version #Returns SAFE version number
safe.save(r'\Path\to\save\file.FDB')
4. Roadmap
- Generate Load Patterns
- Generate Load Cases
- Apply Loads
- Points
- Area
- Line
- Export joint reactions to Hilti-Profis file
5. License
See LICENSE for more information.
6. Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_safe
7. Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ak_safe-0.0.1.tar.gz
(16.0 kB
view details)
Built Distribution
ak_safe-0.0.1-py3-none-any.whl
(17.1 kB
view details)
File details
Details for the file ak_safe-0.0.1.tar.gz
.
File metadata
- Download URL: ak_safe-0.0.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c307cff5eb18ad0f71a730cf27837905788018cb39bdc66bd8d01ddd17734f |
|
MD5 | 1be6982371c8f2d67000426831c388dc |
|
BLAKE2b-256 | a093477779d6d9fb0a9d6b940059821ed84981dc77571dc8b0d81e92107560d6 |
File details
Details for the file ak_safe-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ak_safe-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd241cc687331ecbfb0c284c66b64b8f25927fb89da1f6df3120b1c532db50e1 |
|
MD5 | adb5641e3682a943e7ea4c4b76344c8a |
|
BLAKE2b-256 | aa879d5a8d6d88efaadc2e50c21b9f35464164afd3923b0185d074a8536c2bea |