{"id":19427621,"url":"https://github.com/solarwinds/orionsdk-python","last_synced_at":"2026-01-07T12:17:23.920Z","repository":{"id":4093934,"uuid":"51959969","full_name":"solarwinds/orionsdk-python","owner":"solarwinds","description":"Python client for interacting with the SolarWinds Orion API","archived":false,"fork":false,"pushed_at":"2024-03-11T12:52:18.000Z","size":72,"stargazers_count":216,"open_issues_count":24,"forks_count":92,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-05-14T10:03:59.485Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solarwinds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-17T22:26:04.000Z","updated_at":"2025-05-06T05:45:37.000Z","dependencies_parsed_at":"2024-06-18T20:04:49.016Z","dependency_job_id":"a15a226d-fc2e-4c14-92b3-92627067442c","html_url":"https://github.com/solarwinds/orionsdk-python","commit_stats":{"total_commits":48,"total_committers":19,"mean_commits":2.526315789473684,"dds":0.875,"last_synced_commit":"8157f80e25a7f5784c9ce1587f358ff7874fa986"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solarwinds%2Forionsdk-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solarwinds%2Forionsdk-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solarwinds%2Forionsdk-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solarwinds%2Forionsdk-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solarwinds","download_url":"https://codeload.github.com/solarwinds/orionsdk-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254582902,"owners_count":22095518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T14:12:16.232Z","updated_at":"2026-01-07T12:17:23.915Z","avatar_url":"https://github.com/solarwinds.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orion SDK for Python\n\nThis project contains a python client for interacting with the SolarWinds Orion API\n\n## API Documentation\n\nFor documentation about the SolarWinds Orion API, please see the [wiki](https://github.com/solarwinds/OrionSDK/wiki), [tools](https://github.com/solarwinds/OrionSDK/releases), and sample code (in languages other than Python) in the main [OrionSDK project](https://github.com/solarwinds/OrionSDK).\n\n## Install\n\n```\npip install orionsdk\n```\n\n## Usage\n\n```python\nimport orionsdk\n\nswis = orionsdk.SwisClient(\"server\", \"username\", \"password\")\n\naliases = swis.invoke('Metadata.Entity', 'GetAliases', 'SELECT B.Caption FROM Orion.Nodes B')\n\nprint(aliases)\n```\n\n## SSL Certificate Verification\n\nInitial support for SSL certificate valuation was added in 0.0.4. To\nenable this, you will need to save the self-signed cert to a file. One\nway of doing this is with OpenSSL:\n\n```bash\nopenssl s_client -connect server:17778\n```\n\nThen add an entry to your hosts file for ``SolarWinds-Orion`` and you\nwill be able to verify via doing the following:\n\n```python\nimport orionsdk\nswis = orionsdk.SwisClient(\"SolarWinds-Orion\", \"username\", \"password\", verify=\"server.pem\")\nswis.query(\"SELECT NodeID from Orion.Nodes\")\n```\n\n## Setting Timeout\n\nBy default, requests timeout after 30 seconds. You can customize this by passing the `timeout` parameter (in seconds) to `SwisClient`:\n\n```python\nimport orionsdk\n\nswis = orionsdk.SwisClient(\"SolarWinds-Orion\", \"username\", \"password\", timeout=30, verify=\"server.pem\")\nswis.query(\"SELECT NodeID from Orion.Nodes\")\n```\n\n## Setting Retry \n\n```python\nimport orionsdk\nimport requests\nfrom requests.adapters import HTTPAdapter\nfrom requests.packages.urllib3.util.retry import Retry\n\n\ndef retry_session(retries=3,\n                  backoff_factor=0.3,\n                  status_forcelist=(500, 502, 504)):\n    session = requests.Session()\n    retry = Retry(\n        total=retries,\n        read=retries,\n        connect=retries,\n        backoff_factor=backoff_factor,\n        status_forcelist=status_forcelist)\n    adapter = HTTPAdapter(max_retries=retry)\n    session.mount('http://', adapter)\n    session.mount('https://', adapter)\n    return session\n\n\nswis = orionsdk.SwisClient(\n    \"SolarWinds-Orion\",\n    \"username\",\n    \"password\",\n    verify=\"server.pem\",\n    session=retry_session())\nswis.query(\"SELECT NodeID from Orion.Nodes\")\n```\n\n## License\n\n\tThis software is licensed under the Apache License, version 2 (\"ALv2\"), quoted below.\n\n\tCopyright © 2015 SolarWinds Worldwide, LLC.  All rights reserved.\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\"); you may not\n\tuse this file except in compliance with the License. You may obtain a copy of\n\tthe License at\n\n\t    http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n\tWARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n\tLicense for the specific language governing permissions and limitations under\n\tthe License.\n\n## Related Projects\n\n### Solarwinds Interface Traffic Forecaster\n\n[SolarwindsInterfaceTrafficPrediction](https://github.com/andrewbury/SolarwindsInterfaceTrafficPrediction) is an example of using the Orion SDK for Python and machine learning techniques to predict network interface traffic.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarwinds%2Forionsdk-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolarwinds%2Forionsdk-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolarwinds%2Forionsdk-python/lists"}