:returns available options in JSON string format
(self, pretty=False)
| 99 | return Node(self.hostname, self.port, self.token, timeout) |
| 100 | |
| 101 | def get_available_options_json(self, pretty=False): |
| 102 | """ |
| 103 | :returns available options in JSON string format |
| 104 | """ |
| 105 | kwargs = dict(indent=4, separators=(',', ": ")) if pretty else dict() |
| 106 | return json.dumps(self.available_options, **kwargs) |
| 107 | |
| 108 | def options_list_to_dict(self, options = []): |
| 109 | """ |
no outgoing calls