{"id":18383528,"url":"https://github.com/aruba/arubaos-switch-api-python","last_synced_at":"2025-04-06T23:32:24.268Z","repository":{"id":56935651,"uuid":"124268423","full_name":"aruba/arubaos-switch-api-python","owner":"aruba","description":"Sample REST API scripts for ArubaOS switch","archived":false,"fork":false,"pushed_at":"2023-02-08T19:35:23.000Z","size":46,"stargazers_count":41,"open_issues_count":1,"forks_count":20,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-22T09:24:33.101Z","etag":null,"topics":["api","arubaos-switch","python"],"latest_commit_sha":null,"homepage":null,"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/aruba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"License.md","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":"2018-03-07T17:08:12.000Z","updated_at":"2025-03-20T19:15:42.000Z","dependencies_parsed_at":"2024-11-06T01:11:56.421Z","dependency_job_id":"57efa3be-c7cb-4d9a-bf44-cefdac3f3f4d","html_url":"https://github.com/aruba/arubaos-switch-api-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruba%2Farubaos-switch-api-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruba%2Farubaos-switch-api-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruba%2Farubaos-switch-api-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aruba%2Farubaos-switch-api-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aruba","download_url":"https://codeload.github.com/aruba/arubaos-switch-api-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569125,"owners_count":20959758,"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":["api","arubaos-switch","python"],"created_at":"2024-11-06T01:11:46.183Z","updated_at":"2025-04-06T23:32:21.170Z","avatar_url":"https://github.com/aruba.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arubaos-switch-python\n\nThese scripts are written for ArubaOS Switch API version 4.0.\n\n## Structure\n\n* REST API call functions are found in the /src folder.\n* Functions from the /src folder are combined to emulate network processes that are stored in the /workflows folder.\n* Data to be imported into functions is stored in the /sampledata folder.\n\n\n## How to run this code\nThere are different workflows covered in this repo under /workflows directory. Before starting ensure the switch REST API is enabled:\n```switch# rest-interface```\n\n\nIn order to run these scripts, please complete the steps below:\n1. install virtual env (refer https://docs.python.org/3/library/venv.html). Make sure python version 3 is installed in system.\n    \n    ```\n    $ python3 -m venv switchenv\n    ```\n2. Activate the virtual env\n    ```\n    $ source switchenv/bin/activate\n    ```\n3. Install all packages required from requirements file\n    ```\n    (switchenv)$ pip install -r /arubaos-switch-api-python/requirements.txt\n    ```\n\n4. Open the project arubaos-switch-api-python from an editor (eg: Pycharm)\n5. Set the project interpreter as the new virtual env created in step 1\n6. Go to corresponding data yaml of each workflow and give the correct switch ip and credentials\n7. Now you can run different workflows from arubaos-switch-api-python/workflows E.G. `base_provision.py` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faruba%2Farubaos-switch-api-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faruba%2Farubaos-switch-api-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faruba%2Farubaos-switch-api-python/lists"}