Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Provides programmatic access to a list of the largest US Cities

Project description

Provides programmatic access to a list of the largest US Cities. Currently contains the top 140 more populus cities in the US

Usage:

>>> import pycity
>>> pycity.cities.get(code='US-AL')
[
        {u'code': u'US-AL', u'name': u'Birmingham', u'population': 212113},
        {u'code': u'US-AL', u'name': u'Montgomery', u'population': 201332},
        {u'code': u'US-AL', u'name': u'Mobile', u'population': 194899},
        {u'code': u'US-AL', u'name': u'Huntsville', u'population': 186254}
]

The get method can take one of three keys - ‘code’, ‘name’, or ‘population’ - as a filter

Project details


Download files

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

Files for pycity, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size pycity-0.1.3.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page