Skip to main content

Official Python SDK for the SPACE GASS API. Auto-generated from the OpenAPI specification with Microsoft Kiota.

Project description

space-gass-api

Official Python SDK for the SPACE GASS API.

The SPACE GASS API gives you programmatic access to SPACE GASS structural analysis — open or create new job files, read or edit structural entities, run analyses, and query results.

Quick Start

from space_gass_api import SpaceGassApiClient
import space_gass_api.models as models

client = SpaceGassApiClient.create_client()

# Create a new project
await client.job.new.post()

# Add a node
node = await client.job.structure.nodes.post(
    models.NodeCreate(x=0, y=0, z=0))

# Query with filters — pass query parameters as keyword arguments
restrained = await client.job.structure.nodes.get(
    node_type=models.NodeTypeFilter.Restrained)

# Close the project
await client.job.close.post()

Enhanced .get() with keyword arguments

Kiota-generated builders normally require verbose RequestConfiguration objects to pass GET query parameters:

from kiota_abstractions.base_request_configuration import RequestConfiguration
from space_gass_api.job.structure.nodes.nodes_request_builder import (
    NodesRequestBuilder,
)

qp = NodesRequestBuilder.NodesRequestBuilderGetQueryParameters(
    node_type=models.NodeTypeFilter.Restrained)
nodes = await client.job.structure.nodes.get(
    request_configuration=RequestConfiguration(query_parameters=qp))

This SDK enhances .get() so you can pass those same parameters as keyword arguments directly:

nodes = await client.job.structure.nodes.get(
    node_type=models.NodeTypeFilter.Restrained)

Both forms are supported — the verbose request_configuration= pattern still works for advanced use cases (custom headers, middleware options).

Keyword argument names match the snake_case field names on the builder's query parameters (e.g. node_type, limit, offset, min_x). Invalid names raise TypeError with a clear message.

Documentation

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

space_gass_api-14.50.84b1.tar.gz (192.8 kB view details)

Uploaded Source

Built Distribution

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

space_gass_api-14.50.84b1-py3-none-any.whl (670.2 kB view details)

Uploaded Python 3

File details

Details for the file space_gass_api-14.50.84b1.tar.gz.

File metadata

  • Download URL: space_gass_api-14.50.84b1.tar.gz
  • Upload date:
  • Size: 192.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for space_gass_api-14.50.84b1.tar.gz
Algorithm Hash digest
SHA256 fadb60a05ffbd7d40f4eccb587e5d1c4cdabe277b96cf9b4257ad578f81b0e6b
MD5 0f955821acb5ffb6b6068df2a5708c2b
BLAKE2b-256 60f2e18418430e4aaaa3a554055274a525979eb19c2cb70007b14660d7f44059

See more details on using hashes here.

File details

Details for the file space_gass_api-14.50.84b1-py3-none-any.whl.

File metadata

File hashes

Hashes for space_gass_api-14.50.84b1-py3-none-any.whl
Algorithm Hash digest
SHA256 74c4f23eddc4b6a2cfbb9e061715289f3951e5ed4aa56c2fa5afe63a526c22a3
MD5 f84e246a66ae453df630f19931b9973f
BLAKE2b-256 c90fde0829541707bef594a234397ea0c989a116cde55b1a16d2ee94119d62f2

See more details on using hashes here.

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