{"id":17080306,"url":"https://github.com/smv1999/py_dsa","last_synced_at":"2026-02-16T19:36:04.510Z","repository":{"id":62580014,"uuid":"382632443","full_name":"smv1999/py_dsa","owner":"smv1999","description":"The py_dsa package contains all the data structures and algorithms implementations","archived":false,"fork":false,"pushed_at":"2025-03-11T15:36:12.000Z","size":75,"stargazers_count":19,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-29T05:25:14.195Z","etag":null,"topics":["algorithms","data-structures","dsa","hacktoberfest","pip","programming","pypi","pypi-package","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/py-dsa/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smv1999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["9600064291@paytm"]}},"created_at":"2021-07-03T14:15:04.000Z","updated_at":"2025-03-11T15:36:16.000Z","dependencies_parsed_at":"2025-04-12T21:11:14.598Z","dependency_job_id":"9a1c6e8f-eeff-421b-ae6b-54901a290fdd","html_url":"https://github.com/smv1999/py_dsa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/smv1999/py_dsa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smv1999%2Fpy_dsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smv1999%2Fpy_dsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smv1999%2Fpy_dsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smv1999%2Fpy_dsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smv1999","download_url":"https://codeload.github.com/smv1999/py_dsa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smv1999%2Fpy_dsa/sbom","scorecard":{"id":834063,"data":{"date":"2025-08-11","repo":{"name":"github.com/smv1999/py_dsa","commit":"bb1a3c7e705f70c47a2001161a68ec75dd1aec9f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"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 'main'"],"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"}}]},"last_synced_at":"2025-08-23T18:29:33.591Z","repository_id":62580014,"created_at":"2025-08-23T18:29:33.591Z","updated_at":"2025-08-23T18:29:33.591Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29516170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","dsa","hacktoberfest","pip","programming","pypi","pypi-package","python"],"created_at":"2024-10-14T12:43:58.094Z","updated_at":"2026-02-16T19:36:04.472Z","avatar_url":"https://github.com/smv1999.png","language":"Python","readme":"## py-dsa\n\n![GitHub followers](https://img.shields.io/github/followers/smv1999?style=for-the-badge)\n![GitHub forks](https://img.shields.io/github/forks/smv1999/py_dsa?style=for-the-badge)\n![GitHub Repo stars](https://img.shields.io/github/stars/smv1999/py_dsa?style=for-the-badge)\n![Lines of code](https://img.shields.io/tokei/lines/github/smv1999/py_dsa?style=for-the-badge)\n![GitHub](https://img.shields.io/github/license/smv1999/py_dsa?color=blue\u0026style=for-the-badge)\n![PyPI](https://img.shields.io/pypi/v/py_dsa?color=blue\u0026style=for-the-badge)\n\n### Introduction \n\nThe py-dsa module contains all the data structures and algorithms implementations.  \n\n### Installation \n\nYou can install the module using pip as shown below.\n\n```bash\npip install py-dsa\n```\n### Usage\n\nConsider the following examples :\n\n```python\nfrom py_dsa.data_structures import *\n\ntest_linkedlist = LinkedList()\ntest_linkedlist.add_first(10)\ntest_linkedlist.add_first(20)\ntest_linkedlist.add_first(30)\ntest_linkedlist.remove_last()\ntest_linkedlist.reverse_list()\ntest_linkedlist.print_list()\n\"\"\"\nOutput :\n20\n30\n\"\"\"\n```\n\n```python\nfrom py_dsa.data_structures import *\n\ntest_tree = Tree()\ntest_tree.add(10)\ntest_tree.add(5)\ntest_tree.add(30)\nprint(test_tree.height())\ntest_tree.invert_tree()\ntest_tree.print_tree(traversal='postorder')\n\"\"\"\nOutput:\n2\n30\n5\n10\n\"\"\"\n```\n\n```python\nfrom py_dsa.algorithms import *\n\na = [1, 2, 3, 4.5]\ns = Searching()\nprint(s.linear_search(a, 3))\n\"\"\"\nOutput : \n2\n\"\"\"\n```\n### Testing \n\nTo install py-dsa, along with the tools you need to develop and run tests. Run the following command :\n```bash\n$ pip install -e .[dev]\n```\n\nFor running the tests, type the following command :\n\n```bash\npy.test\n```\n\n### Bugs/Requests \n\nPlease use the [GitHub issue tracker](https://github.com/smv1999/py_dsa/issues) to submit bugs or request features.\n\n### License \n\nCopyright Vaidhyanathan S M, 2021\n\nDistributed under the terms of the [MIT](https://github.com/smv1999/py_dsa/blob/main/LICENSE) license, py-dsa is free and open source software.\n\n\n","funding_links":["9600064291@paytm"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmv1999%2Fpy_dsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmv1999%2Fpy_dsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmv1999%2Fpy_dsa/lists"}