Skip to main content

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.

Source Distribution

pycity-0.1.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file pycity-0.1.3.tar.gz.

File metadata

  • Download URL: pycity-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycity-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ad8bad4f6662e62f6cbdfcb5c91e7ae7b451bfcb9f3a26f5328868485abb730b
MD5 12698cc4e452fd14f7552f4398130241
BLAKE2b-256 7c72c4a8964f2339adbc9175bd68f2cec425f91f14cea452420f008d143922f8

See more details on using hashes here.

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