A small example package for openstaad python package
Project description
OpenStaad
Abstract
openstaad python is a starting project to wrap the official OpenStaad API functionalities into a Python package.
It aims to facilitate the connection between StaadPRO and Python, avoiding boilerplate code and type management, allowing the user to focus on the real automation tasks.
Quick Info
openstaadis a Python package to call easily functions from the OpenStaad API.- Require a StaadPRO and a valid file open to connect
- MIT-License
- The intended audience is StaadPro users with knowledge of Python
- Compatibitity:
- Tested with Python 3.10.9
- Operating System: Windows 11
- Dependencies:
Installation
Basic installation by pip.
pip install openstaad
A simple example
For the next example, a valid STAAD.Pro file should be open.
from openstaad import Geometry, Root
geometry = Geometry()
root = Root()
# Function that returns a list
beam_list = geometry.GetBeamList()
# Function that retuns a string
file_name = root.GetSTAADFile()
# Function that recibe an argument
beam_number = 10
beam_nodes = geometry.GetMemberIncidence(beam_number)
print(beam_list)
print(file_name)
print(beam_nodes)
Website
Contribution
The source code of openstaad can be found at GitHub, target your pull requests to the main branch:
https://github.com/OpenStaad/OpenStaadPython/pulls
Feedback
Questions and feedback at GitHub Discussions: https://github.com/OpenStaad/OpenStaadPython/discussions
Issue tracker at GitHub: https://github.com/OpenStaad/OpenStaadPython/issues
Contact
Please always post questions at the forum to make answers available to other users as well.
Feedback is greatly appreciated.
Konrad
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openstaad-0.0.13.tar.gz.
File metadata
- Download URL: openstaad-0.0.13.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d3a9fda96b622aae275800f2b5d84b92d92ae004daba1090ee488dec45b3acf
|
|
| MD5 |
b5e1f0a8036e2c12f8811417064e8078
|
|
| BLAKE2b-256 |
77d1e850fea5e02ce0ccfc52930a81df736f520ef50c41cb6c51c0e670c8d30a
|
Provenance
The following attestation bundles were made for openstaad-0.0.13.tar.gz:
Publisher:
release.yaml on OpenStaad/OpenStaadPython
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openstaad-0.0.13.tar.gz -
Subject digest:
2d3a9fda96b622aae275800f2b5d84b92d92ae004daba1090ee488dec45b3acf - Sigstore transparency entry: 871188152
- Sigstore integration time:
-
Permalink:
OpenStaad/OpenStaadPython@933412594ad00fa39519767db0275da9b9b50dd2 -
Branch / Tag:
refs/tags/0.0.13 - Owner: https://github.com/OpenStaad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@933412594ad00fa39519767db0275da9b9b50dd2 -
Trigger Event:
push
-
Statement type:
File details
Details for the file openstaad-0.0.13-py3-none-any.whl.
File metadata
- Download URL: openstaad-0.0.13-py3-none-any.whl
- Upload date:
- Size: 28.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbcf76599d3fc8236be59908932e5cff57e036f101004fc96b98b9edc6ae83fc
|
|
| MD5 |
183ae91cb0c4a318bbfe3fe3c9bcded7
|
|
| BLAKE2b-256 |
a8a7d291cc1059de373661db6c23519bb964507310c61b9230ddb1bb8177bb77
|
Provenance
The following attestation bundles were made for openstaad-0.0.13-py3-none-any.whl:
Publisher:
release.yaml on OpenStaad/OpenStaadPython
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openstaad-0.0.13-py3-none-any.whl -
Subject digest:
cbcf76599d3fc8236be59908932e5cff57e036f101004fc96b98b9edc6ae83fc - Sigstore transparency entry: 871188175
- Sigstore integration time:
-
Permalink:
OpenStaad/OpenStaadPython@933412594ad00fa39519767db0275da9b9b50dd2 -
Branch / Tag:
refs/tags/0.0.13 - Owner: https://github.com/OpenStaad
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@933412594ad00fa39519767db0275da9b9b50dd2 -
Trigger Event:
push
-
Statement type: