{"id":34049081,"url":"https://github.com/amartya00/thesoup","last_synced_at":"2026-03-27T04:32:23.032Z","repository":{"id":49719847,"uuid":"374853009","full_name":"amartya00/thesoup","owner":"amartya00","description":"A collection of useful classes and functions in Python.","archived":false,"fork":false,"pushed_at":"2023-03-15T21:38:28.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T17:57:39.070Z","etag":null,"topics":["algorithms","data-structures","graphs","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amartya00.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-06-08T02:07:46.000Z","updated_at":"2023-02-23T02:03:02.000Z","dependencies_parsed_at":"2022-09-26T20:31:03.768Z","dependency_job_id":null,"html_url":"https://github.com/amartya00/thesoup","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/amartya00/thesoup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amartya00%2Fthesoup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amartya00%2Fthesoup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amartya00%2Fthesoup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amartya00%2Fthesoup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amartya00","download_url":"https://codeload.github.com/amartya00/thesoup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amartya00%2Fthesoup/sbom","scorecard":{"id":188459,"data":{"date":"2025-08-11","repo":{"name":"github.com/amartya00/thesoup","commit":"502f56ac65d3c01cb9f46404e7d079b087dc78ea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v2.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":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-16T20:12:20.822Z","repository_id":49719847,"created_at":"2025-08-16T20:12:20.822Z","updated_at":"2025-08-16T20:12:20.822Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31019532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"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":["algorithms","data-structures","graphs","python3"],"created_at":"2025-12-14T00:21:40.184Z","updated_at":"2026-03-27T04:32:23.026Z","avatar_url":"https://github.com/amartya00.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **The soup**\nA collection of python classes and functions.\n\n## Getting it\n#### Github\nDownload it from GitHub with a `git clone https://github.com/sigabrtio/thesoup.git`\nNavigate to the root, and run all tests to ensure everything is working with `nose2 tst/ --nocapture`\n\nNow install with `sudo pip3 install .`\n\n#### PyPi\nThis is available on [PyPi](https://pypi.org/project/thesoup/) as well. Do a `sudo pip3 install thesoup` to install.\n\n**NOTE**: If you do not have nose tests, install it with `sudo pip3 install nose`\n\n**NOTE**: This is python3 only\n\n## Components\n### Classes\nIt has the following utility classes:\n  - Graphs\n    - Abstract class for directed graph `DiGraph`\n    - Abstract class for directed mutable graph `MutableDiGraph`\n    - A mutable digraph implementation with adjacency list `AdjListGraph`\n    \n  - Heap\n    - Min heap `Minheap`\n    - Max heap `MaxHeap`\n    \n  - Binary trees\n    - BST `BinarySearchTree`\n    \n  - Trie (ASCII only)\n\n  - Sets\n    - A set that keeps track of the number of occurrences of repeated elements `CountSet` \n    - A disjoint sets utility. See the [Wikipedia entry](https://en.wikipedia.org/wiki/Disjoint-set_data_structure) `DisjointSets` for details on what it is\n    \n  - Utilities\n    - A result class, similar to Rust's `Result`.\n\n## Functions\nIt has the following utility functions\n  - Collection related\n    - Flatten a nested collection `flatten`\n    - Flatten a nested collection except the tuples `flatten_to_tuple`\n    - Find all subsequences of a list `subsequence`\n    - Foreach method that works on all collections `foreach`\n    - Group a collection into a map by some criteria `group_by`\n    \n  - Graph traversals\n    - Bread first search `bfs`\n    - Depth first search `dfs`\n    - Dijkstra `dijkstra`\n    - Specialized SP for DAGs `shortest_path_dag`\n    \n  - String related\n    - Test if 2 strings are anagrams `is_anagram`  \n    \n  - Other\n    - K-way merge `merge`\n    \n    ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famartya00%2Fthesoup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famartya00%2Fthesoup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famartya00%2Fthesoup/lists"}