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.1.tar.gz
(3.4 kB
view details)
File details
Details for the file pycity-0.1.1.tar.gz.
File metadata
- Download URL: pycity-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d50e724aa2d16057059927a9482ef7f1c13b49eae9e55e6c1a5e43a98f8142db
|
|
| MD5 |
edba11d3130c2dadc9eb0eced3affa25
|
|
| BLAKE2b-256 |
245dd5bca4ba67c62069ef0e6895fc2347944f84de35b7ab7a7be09497272d73
|