Skip to main content

Get the ordered list of USA universities based on their latest ranking.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Uni-rank

Build Status

Uni-rank is a mini python package to get the ordered list of USA universities based on their latest ranking on usnews.com/best-colleges

This package also provides few other information like state, city, zip code.

The result can be stored as a csv or json file.

Installation

Uni-rank requires Python 3 to run.

Install the package by running:

pip install -U uni-rank

Usage

# import
from unirank import Ranking

# instantiate
rank = Ranking()

# get the ordered list of USA universities
usa = rank.get_usa()

#print the result
print(usa)

Helper Functions

1. Print University Names

rank.print_names()

2. Select Universities by States

Input: State List, Output: DataFrame of filtered universities

states = ['NJ', 'MA']
state_result = rank.select_by_state(states)

3. Select Universities by Cities

Input: City List, Output: DataFrame of filtered universities

cities = ['Cambridge']
city_result = rank.select_by_city(cities)

Export

1. Export as CSV

rank.save_csv(usa, "usa_list.csv")

2. Export as json

rank.save_json(usa, "usa_list.json")

USA University Properties:

key detail
displayName Name
rankingDisplayRank Rank
state State
city City
zip Zip Code
description Description

Note

Intend to extend the package to support other types of rankings and also include other countries on later versions, hence the name uni-rank not usa-rank

License

GNU General Public License

History

1.0.1 (14-03-2021)

  • First release on PyPI
  • Bug fixes

Project details


Download files

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

Source Distribution

uni-rank-1.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uni_rank-1.0.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file uni-rank-1.0.1.tar.gz.

File metadata

  • Download URL: uni-rank-1.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for uni-rank-1.0.1.tar.gz
Algorithm Hash digest
SHA256 16ac54f83e97ab0bd4fd6b24d5d4a6a4490d760633a89c0f7d8b2dd300cd8a75
MD5 4f0e4de97d967286c2f651b96d5afbd7
BLAKE2b-256 1fd775d9e53f11d2ec9c14d6a6a58749a3abcc0826b5b0314e7ce33573d8464a

See more details on using hashes here.

File details

Details for the file uni_rank-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: uni_rank-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for uni_rank-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 980e33a7445a1409b0cebf8a81f652fe330c52133c1645f181906a7be96eba11
MD5 bc449621ceeb79f185c16d0a95166f72
BLAKE2b-256 5102beecae90b08602ebb48da3151b3b3eb2c8baab03c6700aa5d5eb03820b81

See more details on using hashes here.

Supported by

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