{"id":18686539,"url":"https://github.com/ashutoshvarma/ggsipu_result","last_synced_at":"2025-04-12T05:06:15.009Z","repository":{"id":44747030,"uuid":"194173447","full_name":"ashutoshvarma/ggsipu_result","owner":"ashutoshvarma","description":"Python module to parse and dump results data from GGSIPU results pdf including students photo","archived":false,"fork":false,"pushed_at":"2023-12-15T02:32:25.000Z","size":6210,"stargazers_count":8,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-15T06:46:51.595Z","etag":null,"topics":["cgpa-calculator","ggsipu-results","pyxpdf"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashutoshvarma.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-27T22:59:22.000Z","updated_at":"2021-01-27T08:47:52.000Z","dependencies_parsed_at":"2024-11-07T10:33:58.979Z","dependency_job_id":"b0be7926-1f66-4b37-88c4-14668524e6c3","html_url":"https://github.com/ashutoshvarma/ggsipu_result","commit_stats":{"total_commits":135,"total_committers":2,"mean_commits":67.5,"dds":"0.022222222222222254","last_synced_commit":"d02fde84cdee36d2fc8385f374f7c427323aacbe"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Fggsipu_result","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Fggsipu_result/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Fggsipu_result/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashutoshvarma%2Fggsipu_result/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashutoshvarma","download_url":"https://codeload.github.com/ashutoshvarma/ggsipu_result/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519533,"owners_count":21117761,"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":["cgpa-calculator","ggsipu-results","pyxpdf"],"created_at":"2024-11-07T10:28:02.757Z","updated_at":"2025-04-12T05:06:14.940Z","avatar_url":"https://github.com/ashutoshvarma.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ggsipu_result\n[![Travis (.com)](https://img.shields.io/travis/com/ashutoshvarma/ggsipu_result?style=for-the-badge)](https://travis-ci.com/github/ashutoshvarma/ggsipu_result/)\n[![GitHub license](https://img.shields.io/github/license/ashutoshvarma/ggsipu_result?style=for-the-badge)](https://github.com/ashutoshvarma/ggsipu_result/blob/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/ggsipu_result?color=blue\u0026style=for-the-badge)](https://pypi.org/project/ggsipu-result/)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/ggsipu_result?style=for-the-badge)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/ggsipu_result?style=for-the-badge)\n\n**ggsipu_result** is a A python module for extraction of results from GGSIPU results pdf. It is capable of:-\n\n- Extraction of Results, Subjects details from pdfs.\n- Extract Student's photo from pdfs.\n- Dumping the extracted data in JSON format.\n\n\n## Examples\nGiven code prints top 5 students of 2018 batch:-\n```python\nfrom ggsipu_result import iter_pages, has_page_results, iter_results\n\nFILE=\"Resources/CSE_Result.pdf\"\n\nresults = []\nfor page in iter_pages(FILE):\n    if has_page_results(page):\n        results = results + [r for r in iter_results(page) if r.batch == 2018]\n\nresults.sort(key=lambda x: x.cgpa, reverse=True)\n\nfor i, result in enumerate(results[:5]):\n    print(\"{i}. {r}\".format(i=i+1, r= result))\n\n\n## PROBABLE OUTPUT\n# 1. Result(Sem 1): [41516403218]GAURAV JAIN(2018) [CGPA: 8.92]\n# 2. Result(Sem 1): [41016403218]VARDAAN GROVER(2018) [CGPA: 8.77]\n# 3. Result(Sem 1): [40316403218]UJJWAL NEGI(2018) [CGPA: 8.73]\n# 4. Result(Sem 1): [40116403218]RIGVED ALANKAR(2018) [CGPA: 8.5]\n# 5. Result(Sem 1): [01616403218]CHAITANYA GIRI(2018) [CGPA: 8.46]\n```\nFor more examples please see [`Sample_Code`](https://github.com/ashutoshvarma/ggsipu_result/tree/master/Sample_Code) folder\n\n## Install\n```\npip install ggsipu-result\n```\n\n## Tests\n\n`ggsipu_result` includes a test suite built on the unittest framework. All tests are located in the \"Tests\" folder.\nTests can be run from the command line by:\n\n\n```bash\npython -m unittest Tests.tests\n```\n\n## Changelog\n### v0.3.3 (22-09-2020)\n- Fix minor typo in `Results` repr\n### v0.3.2 (09-07-2020)\n- Major improvement in iter_subjects, now more accurate parsing\n### v0.3.1 (08-07-2020)\n- fix NoneType error while searching for institution code and name in `iter_results`\n- API: remove `subject` attribute from `Marks`\n- toJSON: now handle case where \\_\\_dict\\_\\_ is not present.\n- API: add `toDict()` helper method to convert into python dict.\n### v0.3 (08-07-2020) [Breaking Changes]\n- API: remove unused `Student` class\n- API: merge `Student` properties into `Result`.\n### v0.2 (04-07-2020)\n- add support for extraction of student's photo from pdfs\n- API: new function `parse_result_pdf` to parse entire pdf in one go.\n### v0.1.1 (05-06-2020)\n- fix [#1](https://github.com/ashutoshvarma/ggsipu_result/issues/1): include support for 6 digit paper codes\n### v0.1 (initial release)\n\n## License\n\nAll files under the repo are licensed under GNU [GPLv3](https://github.com/ashutoshvarma/ggsipu_result/blob/master/LICENSE)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshvarma%2Fggsipu_result","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashutoshvarma%2Fggsipu_result","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashutoshvarma%2Fggsipu_result/lists"}