Skip to main content

ggsipu_result

Travis (.com) GitHub license PyPI PyPI - Wheel PyPI - Downloads

ggsipu_result is a A python module for extraction of results from GGSIPU results pdf. It is capable of:-

  • Extraction of Results, Subjects details from pdfs.
  • Extract Student's photo from pdfs.
  • Dumping the extracted data in JSON format.

Examples

Given code prints top 5 students of 2018 batch:-

from ggsipu_result import iter_pages, has_page_results, iter_results

FILE="Resources/CSE_Result.pdf"

results = []
for page in iter_pages(FILE):
    if has_page_results(page):
        results = results + [r for r in iter_results(page) if r.batch == 2018]

results.sort(key=lambda x: x.cgpa, reverse=True)

for i, result in enumerate(results[:5]):
    print("{i}. {r}".format(i=i+1, r= result))


## PROBABLE OUTPUT
# 1. Result(Sem 1): [41516403218]GAURAV JAIN(2018) [CGPA: 8.92]
# 2. Result(Sem 1): [41016403218]VARDAAN GROVER(2018) [CGPA: 8.77]
# 3. Result(Sem 1): [40316403218]UJJWAL NEGI(2018) [CGPA: 8.73]
# 4. Result(Sem 1): [40116403218]RIGVED ALANKAR(2018) [CGPA: 8.5]
# 5. Result(Sem 1): [01616403218]CHAITANYA GIRI(2018) [CGPA: 8.46]

For more examples please see Sample_Code folder

Install

pip install ggsipu-result

Tests

ggsipu_result includes a test suite built on the unittest framework. All tests are located in the "Tests" folder. Tests can be run from the command line by:

python -m unittest Tests.tests

Changelog

v0.3.3 (22-09-2020)

  • Fix minor typo in Results repr

v0.3.2 (09-07-2020)

  • Major improvement in iter_subjects, now more accurate parsing

v0.3.1 (08-07-2020)

  • fix NoneType error while searching for institution code and name in iter_results
  • API: remove subject attribute from Marks
  • toJSON: now handle case where __dict__ is not present.
  • API: add toDict() helper method to convert into python dict.

v0.3 (08-07-2020) [Breaking Changes]

  • API: remove unused Student class
  • API: merge Student properties into Result.

v0.2 (04-07-2020)

  • add support for extraction of student's photo from pdfs
  • API: new function parse_result_pdf to parse entire pdf in one go.

v0.1.1 (05-06-2020)

  • fix #1: include support for 6 digit paper codes

v0.1 (initial release)

License

All files under the repo are licensed under GNU GPLv3

Metadata

Release files for ggsipu-result 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ggsipu-result 0.3.3
File Size Uploaded Provenance Actions
ggsipu_result-0.3.3.tar.gz 3.9 MB Without provenance Details for ggsipu_result-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ggsipu-result 0.3.3
File Interpreter ABI Platform Actions
ggsipu_result-0.3.3-py3-none-any.whl Python 3 none any Details for ggsipu_result-0.3.3-py3-none-any.whl

Total release size: 4.0 MB

Release files / ggsipu_result-0.3.3.tar.gz

Download URL ggsipu_result-0.3.3.tar.gz
Size 3.9 MB
Tags Source
SHA-256 checksum
How to use checksums
ccb9ecab0744c3339c4a1e95007988f556de5063e5ffe18de7ddbdde545b78a4
BLAKE2b-256 checksum
How to use checksums
425c172b37b7c3ba8b745b795e1a9b60645b3e551aa475668682f8e0fb8f07d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.0

Release files / ggsipu_result-0.3.3-py3-none-any.whl

Download URL ggsipu_result-0.3.3-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c05e39f35ef7d41677935578b5db988585c52591314a53da271b28c77f50c81
BLAKE2b-256 checksum
How to use checksums
3fba74bb9b2f3992adc302aa662d70b65e298d4d96088232cdf81a7222f89dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.0

Security for ggsipu-result 0.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page