Reference·Python SDK · bimworksPython

InfoApi

Python SDK: the Info operations, 1 method, each with its parameters, result and a complete example.

Python SDK · bimworks · class · 1 method

General information about the instance

Construct it with the client of the connect step: bimworks.InfoApi(client). Each method is one operation of the API part, where it runs on its page.

MethodOperationDescription
get_application_versionGetApplicationVersionThe BIM.works version of the instance

get_application_version#

Python#
def get_application_version(self) -> GetApplicationVersion200Response

The BIM.works version of the instance. The version of BIM.works the instance runs, to check compatibility. No credential needed.

OperationGetApplicationVersion · POST /openapi/info/GetApplicationVersion
Scopenone: callable before logging in

Parameters#

None: the operation takes no request.

Returns#

GetApplicationVersion200Response — The version

Example#

Python#
import json

import bimworks

# 1. Connect to BIM.works (GetApplicationVersion needs no login)
client = bimworks.ApiClient(bimworks.Configuration(host="https://bim.works/openapi"))

# 2. The request
# (GetApplicationVersion takes no request)

# 3. The call
result = bimworks.InfoApi(client).get_application_version()

# 4. The result
print(json.dumps(client.sanitize_for_serialization(result), indent=2))