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

.. image:: https://badge.fury.io/py/get-pop.svg :target: https://badge.fury.io/py/get-pop

.. image:: https://travis-ci.org/SimmonsRitchie/get-pop.svg?branch=master :target: https://travis-ci.org/SimmonsRitchie/get-pop

.. image:: https://readthedocs.org/projects/get-pop/badge/?version=latest :target: https://get-pop.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

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.

The full documentation is hosted at Read the Docs <https://get-pop.readthedocs.io/en/latest/index.html>_

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 #3:

To get CSVs for all states, use:

::

getpop all

Programmatic

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

::

from get_pop.get_pop import get_pop

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

License

MIT <https://choosealicense.com/licenses/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.4.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

get_pop-1.94.4-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file get_pop-1.94.4.tar.gz.

File metadata

  • Download URL: get_pop-1.94.4.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for get_pop-1.94.4.tar.gz
Algorithm Hash digest
SHA256 e5d15fd04c26339bae989c357963d8935fb7f85fb9c809c1f8752414f5462f91
MD5 f5c67fbdf319cc7f132d0cab0532040c
BLAKE2b-256 ebc969174d716ddc012285c948bd977c6ffd3fe569ab24273707c51072d2716c

See more details on using hashes here.

File details

Details for the file get_pop-1.94.4-py3-none-any.whl.

File metadata

  • Download URL: get_pop-1.94.4-py3-none-any.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for get_pop-1.94.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52d3b848ba52598046e22d9e32ebcdd7f7ba7f25919179565c75f102465d40bf
MD5 16724d55e06f1d37e750678bd5a64ae3
BLAKE2b-256 f1691a9054ddeade7e256e7054647c86397cbcc30174a4fa0c1bc90b854259fa

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