jerryshao commented on code in PR #7679: URL: https://github.com/apache/gravitino/pull/7679#discussion_r2262234027
########## docs/how-to-use-python-client.md: ########## @@ -32,6 +32,33 @@ pip install apache-gravitino 1. [Manage metalake using Gravitino Python API](./manage-metalake-using-gravitino.md?language=python) 2. [Manage fileset metadata using Gravitino Python API](./manage-fileset-metadata-using-gravitino.md?language=python) +#### Gravitino Python client configuration + +You can customize the Gravitino Python client with config properties like this: + +```python +gravitino_admin_client = GravitinoAdminClient( + uri="http://localhost:8090", + client_config={"client_timeout": 60}, +) +# ... + +gravitino_client = GravitinoClient( + uri="http://localhost:8090", + metalake_name="test", + client_config={"client_timeout": 60}, +) +# ... +``` + +The following are supported Python client configuration: + +| Configuration item | Description | Default value | Required | Since version | +|--------------------|----------------------------------------|---------------|----------|---------------| +| `client_timeout` | An optional client timeout in seconds. | `10` | No | 1.0.0 | + +**Note:** Invalid configuration properties will result in exceptions. Review Comment: We don't have to had a new doc for python client, we can merge this doc to the previous java client doc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
