{"id":13819445,"url":"https://github.com/drdarshan/ssgetpy","last_synced_at":"2025-10-15T23:10:28.894Z","repository":{"id":3555549,"uuid":"4616586","full_name":"drdarshan/ssgetpy","owner":"drdarshan","description":"A searchable Python interface to the SuiteSparse Matrix Collection","archived":false,"fork":false,"pushed_at":"2022-04-06T07:32:11.000Z","size":123,"stargazers_count":49,"open_issues_count":8,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T14:54:29.120Z","etag":null,"topics":["python3","sparse-matrix"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drdarshan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-10T16:45:46.000Z","updated_at":"2025-06-24T07:01:25.000Z","dependencies_parsed_at":"2022-07-28T21:19:05.272Z","dependency_job_id":null,"html_url":"https://github.com/drdarshan/ssgetpy","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/drdarshan/ssgetpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdarshan%2Fssgetpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdarshan%2Fssgetpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdarshan%2Fssgetpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdarshan%2Fssgetpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drdarshan","download_url":"https://codeload.github.com/drdarshan/ssgetpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdarshan%2Fssgetpy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267585612,"owners_count":24111575,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["python3","sparse-matrix"],"created_at":"2024-08-04T08:00:47.970Z","updated_at":"2025-10-15T23:10:23.851Z","avatar_url":"https://github.com/drdarshan.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# SSGETPY: Search and download sparse matrices from the SuiteSparse Matrix Collection\n![Python package](https://github.com/drdarshan/PyUFGet/workflows/Python%20package/badge.svg) [![PyPI version](https://badge.fury.io/py/ssgetpy.svg)](https://badge.fury.io/py/ssgetpy) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/drdarshan/ssgetpy/master?filepath=demo.ipynb) [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/drdarshan/ssgetpy/blob/master/demo.ipynb)\n\n\n`ssgetpy` is a little Python library and command-line program to search, filter and download matrices from the [SuiteSparse Matrix Collection](https://people.engr.tamu.edu/davis/matrices.html) similar to the existing Java and MATLAB tools. \n\nThe index of matrices is created from the same CSV file used by the\nJava interface. However, the index in cached in a local SQLite\ndatabase to make querying it more convenient. \n\n## Requirements and installation\n\n`ssgetpy` works with Python 3.6 or above. Besides the standard\nlibrary, it depends on `requests` and `tqdm`. Since `ssgetpy` doesn't\nactually parse matrix data, it doesn't require dependencies like\n`NumPy` or `SciPy`.\n\nTo install, simply run:\n```\npip install ssgetpy\n```\n\nThis will install the `ssgetpy` Python module as well as a `ssgetpy` command-line script. \n\nFrom Python, run ``import ssgetpy`` and type ``help(ssgetpy)`` to get a detailed\nhelp message on how to use ``ssgetpy`` to search and download sparse matrices.\n\nFrom the command-line, run ``ssgetpy`` or ``ssgetpy --help`` to see the\nlist of options.\n\n## Examples\nMake sure you first run ``from ssgetpy import search, fetch``. Replace\n``fetch`` with ``search`` to only return the corresponding ``Matrix`` objects\nwithout downloading them.\n\n* Download matrix with ID 42 in the MatrixMarket format: ``fetch(42)``\n* Download matrices in the Harwell-Boeing collection with less than\n  1000 non-zeros: ``fetch(group = 'HB', nzbounds = (None, 1000))``\n* Download only the first 5 problems arising from structural analysis:\n  ``fetch(kind = \"structural\", limit = 5)``\n* Download the problems in the previous example as MATLAB .MAT files: ``fetch(kind = \"structural\", format = \"MAT\", limit = 5)``\n\nFor more examples, please see the accompanying [Jupyter notebook](demo.ipynb).\n\n\n\n## License\n*ssgetpy* is licensed under the [MIT/X11 license](http://www.opensource.org/licenses/mit-license.php):\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrdarshan%2Fssgetpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrdarshan%2Fssgetpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrdarshan%2Fssgetpy/lists"}