Open topic with navigation

TIBCO GridServer® 7.1.0

# Python Client

When setting parameters with the Python client, you must initialize the input parameters using `driver.init_input_parameter(``n``)` where `n` is the number of parameters to initialize. Each parameter is then set with a call to `driver.set_input_parameter(``parameter name or literal``)`. Here is an example from `python_client_example.py`:

    driver.create_services(b'PythonExample')
    driver.init_input_parameter(2)
    driver.set_input_parameter(b"8.23")
    driver.set_input_parameter(b"1.25")
    driver.submit(b"add")

In the above example, the literal values are expressed as `'b"8.23"'` and `'b"1.25"'`. These are expressions specific to Python. Refer to Python documentation if you have questions on them.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO GridServer®

Copyright © 2001-2022. TIBCO Software Inc. All Rights Reserved.