{"id":43557064,"url":"https://github.com/h4ndzdatm0ld/ttp_sros_parser","last_synced_at":"2026-02-03T20:27:37.159Z","repository":{"id":39899913,"uuid":"330910683","full_name":"h4ndzdatm0ld/ttp_sros_parser","owner":"h4ndzdatm0ld","description":"TTP Parser kit for SROS devices.","archived":false,"fork":false,"pushed_at":"2023-10-10T20:33:46.000Z","size":441,"stargazers_count":36,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2025-08-26T06:28:57.339Z","etag":null,"topics":["7750","nokia","sros","ttp"],"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/h4ndzdatm0ld.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}},"created_at":"2021-01-19T08:21:27.000Z","updated_at":"2025-04-22T21:17:26.000Z","dependencies_parsed_at":"2022-09-02T16:25:56.215Z","dependency_job_id":null,"html_url":"https://github.com/h4ndzdatm0ld/ttp_sros_parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/h4ndzdatm0ld/ttp_sros_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4ndzdatm0ld%2Fttp_sros_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4ndzdatm0ld%2Fttp_sros_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4ndzdatm0ld%2Fttp_sros_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4ndzdatm0ld%2Fttp_sros_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h4ndzdatm0ld","download_url":"https://codeload.github.com/h4ndzdatm0ld/ttp_sros_parser/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h4ndzdatm0ld%2Fttp_sros_parser/sbom","scorecard":{"id":451734,"data":{"date":"2025-08-11","repo":{"name":"github.com/h4ndzdatm0ld/ttp_sros_parser","commit":"337e46ea91096ded18ae8590d4182395136f491a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 4/25 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-app.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.6 not signed: https://api.github.com/repos/h4ndzdatm0ld/ttp_sros_parser/releases/67496548","Warn: release artifact v0.1.6 does not have provenance: https://api.github.com/repos/h4ndzdatm0ld/ttp_sros_parser/releases/67496548"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/python-app.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/python-app.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-app.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/python-app.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/h4ndzdatm0ld/ttp_sros_parser/python-app.yml/develop?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:7","Warn: containerImage not pinned by hash: Dockerfile:28","Warn: pipCommand not pinned by hash: Dockerfile:11-12","Warn: downloadThenRun not pinned by hash: Dockerfile:11-12","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:62","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:91","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/python-app.yml:26","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-4 / GHSA-2mqj-m65w-jghx","Warn: Project is vulnerable to: PYSEC-2023-165 / GHSA-cwvm-v4w8-q58c","Warn: Project is vulnerable to: PYSEC-2023-137 / GHSA-pr76-5cm5-w9cj","Warn: Project is vulnerable to: PYSEC-2023-161 / GHSA-wfm5-v35h-vwf4"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T08:20:31.719Z","repository_id":39899913,"created_at":"2025-08-19T08:20:31.719Z","updated_at":"2025-08-19T08:20:31.719Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29056200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["7750","nokia","sros","ttp"],"created_at":"2026-02-03T20:27:36.420Z","updated_at":"2026-02-03T20:27:37.152Z","avatar_url":"https://github.com/h4ndzdatm0ld.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![codecov](https://codecov.io/gh/h4ndzdatm0ld/ttp_sros_parser/branch/main/graph/badge.svg?token=ZL8JDKLQJI)](https://codecov.io/gh/h4ndzdatm0ld/ttp_sros_parser)\n\n# TTP SrosParser\n\nA library to parse a Nokia SROS 7750 full hierarchical configuration text file into structured data. Show commands are also able to be parsed, if included in the file alongside the configuration. This library is still under development, but a lot of parsers are readily available (see below for supported features). Configurations used for testing have all been on release version higher than TiMOS 16. At the moment, there is no capability to specify release version to accommodate different parsing templates.\n\n## What TTP SrosParser is not\n\nA library that connects and extracts information from a remote device. You, as the end-user must obtain a text file of the configuration. This file will be passed into the SrosParser class and you are able to convert a flat text configuration file into structure data using the built-in TTP parser templates. At this point, it's recommended to use a new instance of the srosparser with an individual show command as the text to parse to get the best results when parsing a show commands.\n\n## Example\n\n```python\n\"\"\"SrosParser - Example.\"\"\"\nfrom ttp_sros_parser.srosparser import SrosParser\n\nEXAMPLE_CONFIG = \"some/dir/path/to/7750-config.txt\"\n\n# Instantiate class\nrouter = SrosParser(EXAMPLE_CONFIG)\n\n# Call `get_system_cards` method\nrouter.get_system_cards()\n```\n\nResults:\n\n```json\n[\n   {\n      \"configure\":{\n         \"card\":{\n            \"card-type\":{\n               \"card-type\":\"iom-1\",\n               \"subscription-level\":\"cr\"\n            },\n            \"fail-on-error\":true,\n            \"mda\":{\n               \"admin-state\":true,\n               \"egress-xpl\":{\n                  \"window\":\"10\"\n               },\n               \"fail-on-error\":true,\n               \"ingress-xpl\":{\n                  \"window\":\"10\"\n               },\n               \"mda-slot\":\"1\",\n               \"mda-type\":\"me6-100gb-qsfp28\"\n            },\n            \"slot-number\":\"1\"\n         }\n      }\n   }\n]\n```\n\n## Available Methods (Parsers)\n\nCurrent methods available (Automatically updated at build):\n\n[Methods](docs/methods.md)\n\n## Full Config\n\n**SrosParser** allows you to parse the full configuration with a single method call, `get_full_config()` and receive the full JSON output of the device.\n\n## Custom Templates\n\nSrosParser allows you to simply specify a custom template after you initialize a new class object.\n\n```python\nrouter = SrosParser(\"path/to/config.txt\")\n\ncool_ttp_template = router.get_custom_template(\"path/to/template\")\n\nprint(cool_ttp_template)\n```\n\n## Contributing\n\nAny contribution to the project must include unit tests and pass all linting.\n\nSimply run:\n\n- `docker-compose build`\n- `docker-compose run test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4ndzdatm0ld%2Fttp_sros_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh4ndzdatm0ld%2Fttp_sros_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh4ndzdatm0ld%2Fttp_sros_parser/lists"}