Skip to main content

A small example package for openstaad python package

Project description

OpenStaad

PyPI Downloads

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

  • openstaad is 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

www.openstaad.com

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstaad-0.0.13.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstaad-0.0.13-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

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

Hashes for openstaad-0.0.13.tar.gz
Algorithm Hash digest
SHA256 2d3a9fda96b622aae275800f2b5d84b92d92ae004daba1090ee488dec45b3acf
MD5 b5e1f0a8036e2c12f8811417064e8078
BLAKE2b-256 77d1e850fea5e02ce0ccfc52930a81df736f520ef50c41cb6c51c0e670c8d30a

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstaad-0.0.13.tar.gz:

Publisher: release.yaml on OpenStaad/OpenStaadPython

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for openstaad-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 cbcf76599d3fc8236be59908932e5cff57e036f101004fc96b98b9edc6ae83fc
MD5 183ae91cb0c4a318bbfe3fe3c9bcded7
BLAKE2b-256 a8a7d291cc1059de373661db6c23519bb964507310c61b9230ddb1bb8177bb77

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstaad-0.0.13-py3-none-any.whl:

Publisher: release.yaml on OpenStaad/OpenStaadPython

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page