robot-2233 / cnuni

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CnUniversityMap

CnUniversityMap is a Python package that provides a simple University class to store and manage university information.

Download

You can download the latest version of the University package from PyPI:

pip install cnuniversitymap

Alternatively, you can get the source code from GitHub:

git clone https://github.com/robot-2233/cnuni.git

Contact me

If you have any questions or feedback, please contact me through the following methods:

Usage examples

Here are some basic examples using the University package:

Get university information

print(university.cn_name)  # output: 北京大学
print(university.en_name)  # output: Beijing University
print(university.code)     # output: 4111010001

Get specific university from dict

print(universities_dict.get('清华大学'))

About

License:MIT License


Languages

Language:Python 100.0%