Skip to main content

The list of all top US universities along with their state codes, and basic retrieval functions

Project description

Package: us_universities_with_state_codes

This package consists of the list of all top US universities along with their state codes, and basic retrieval functions in python.

Usage/Examples

from list_of_us_universities_with_state_code.main import get_universities

# This function will return the array of all the universities
get_universities()
from list_of_us_universities_with_state_code.main import get_state_code_of_university

# This function will return the object -> university name as the key and state code as value
get_state_code_of_university("mit")

#Output:
{'Massachusetts Institute of Technology (MIT)': 'MA'}
from list_of_us_universities_with_state_code.main import get_universities_by_state_code

# This function will return the array of all the universities in the given state code
get_universities_by_state_code("CA")

#Output:
{'Stanford': 'CA', 'California Institute of Technology (Caltech)': 'CA', 'University of California, Berkeley (UC Berkeley)': 'CA', 'University of California, Los Angeles (UCLA)': 'CA', ...}

Tech Stack

Library: Python

License

MIT

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

Built Distribution

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