Skip to main content

A python command line utility that generates CSVs of county-level population data for specified US states.

Project description

get-pop

A command line utility that generates CSVs of county-level population data for specified US states.

Data is based on 2019 U.S. census data.

Install

pip install get-pop

Basic usage - command line

Type 'getpop' followed by the two letter postal code for one or more states. CSVs will be output in a new directory called 'data' in the current working directory.

Example #1:

getpop ny

>> Initializing getpop
>> Selected states: ['ny']
>> Processing: New York
>> getpop complete

Example #2:

getpop ny nj tx

>> Initializing getpop
>> Selected states: ['ny', 'nj', 'tx']
>> Processing: New Jersey
>> Processing: New York
>> Processing: Texas
>> getpop complete

Example #2:

To get CSVs for all states, use:

Basic usage - python

If you prefer, you can also import and call get-pop from within python:

from get_pop.get_pop import get_pop

states = ["ny","nj","tx","pa"]
get_pop(states)

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

get_pop-1.94.2.tar.gz (1.6 MB view hashes)

Uploaded Source

Built Distribution

get_pop-1.94.2-py3-none-any.whl (1.6 MB view hashes)

Uploaded Python 3

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