Skip to main content

A library to convert scores using many arithmetics

Project description

GPA

A library used to calculate your GPA. Now the GPA algorithm varies slightly from school to school, and calculating your GPA score one by one when applying to schools is a complicated and time-consuming process. This library is used to implement some common GPA calculation methods, which is convenient for you to calculate your GPA.

一个用来计算你GPA的库。现在各个学校的GPA算法略有不同,在申请学校时逐个计算你的GPA分数是很复杂且耗费时间的过程。这个库用来实现一些常见的GPA计算方法,方便你计算你的GPA。

How to install

pip install gpalib

How to use

import gpalib
a = ['A', 'B', 'A', 'A']
r = gpalib.convert_to_4(a, 'rank')
print(r)
[4, 3, 4, 4]
import gpalib
a = [99, 87, 89, 83, 96]
r = gpalib.convert_to_4(a, 'hundred', 'Beida_4')
print(r)
[4, 3.7, 3.7, 3.3, 4]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gpalib-0.1.5-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page