Metadata-Version: 2.1
Name: longleding-system-settings-service-sdk
Version: 0.1.4
Summary: Longleding System Settings Service SDK
Home-page: https://git.emhub.top/em/system-settings-service
Author: Shi Ran
Author-email: ran.shi@longleding.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Logging
Requires-Python: >=3.6
Description-Content-Type: text/markdown

Longleding System Settings Service SDK

# Supported Python Versions

Python >= 3.6

# Installation

longleding-system-settings-service-sdk is available for Linux, macOS, and Windows.

```shell script
$ pip install longleding-system-settings-service-sdk
```

# Basic Usage

```python
# -*- coding: utf-8 -*-
from sdk import system_settings_service

system_settings_service_endpoint = "localhost:80"
source_name = "demo"

system_settings_service.init_service(endpoint=system_settings_service_endpoint, src=source_name)

if __name__ == '__main__':
  system_settings_service.get_version_doc_shot(1)
  system_settings_service.get_last_version_doc_shot()
```

# Troubleshoot

If you encounter error messages similar to the following:

```shell script
...
TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "common.proto":
  common.proto: A file with this name is already in the pool.
```

Setting an environment variable the following before running:

```shell script
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python'
```

See also
- [[Python] A file with this name is already in the pool.](#https://github.com/protocolbuffers/protobuf/issues/3002)
- [Python Generated Code](#https://developers.google.com/protocol-buffers/docs/reference/python-generated)

