Metadata-Version: 2.1
Name: census-map-downloader
Version: 0.0.5
Summary: Easily download U.S. census maps
Home-page: http://www.github.com/datadesk/census-map-downloader
Author: Los Angeles Times Data Desk
Author-email: datadesk@latimes.com
License: MIT
Project-URL: Maintainer, https://github.com/datadesk
Project-URL: Source, https://github.com/datadesk/census-map-downloader
Project-URL: Tracker, https://github.com/datadesk/census-map-downloader/issues
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Requires-Dist: geopandas
Requires-Dist: us
Requires-Dist: click

census-map-downloader
=====================

Easily download U.S. census maps


Installation
------------

::

    $ pipenv install census-map-downloader


Command line usage
------------------

::

    Usage: censusmapdownloader [OPTIONS] COMMAND [ARGS]...

      Easily download U.S. census maps

    Options:
      --data-dir TEXT  The folder where you want to download the data
      --help           Show this message and exit.

    Commands:
    blocks                   Download blocks
    congress-carto           Download cartographic congressional districts
    counties                 Download counties
    counties-carto           Download cartographic counties
    countysubdivision        Download cartographic county subdivisions
    legislative-lower-carto  Download cartographic state legislative (lower chamber)
    legislative-upper-carto  Download cartographic state legislative (upper chamber)
    places                   Download places
    states-carto             Download cartographic states
    tracts                   Download tracts
    zctas                    Download ZCTAs

Examples
------------------

Here's an example of downloading all counties ::

    $ censusmapdownloader counties

You can specify the download directory with --data-dir ::

    $ censusmapdownloader --data-dir ./my-special-folder/ counties

Contributing
------------

Install dependencies for development ::

    $ pipenv install --dev

Run tests ::

    $ make test

Ship new version to PyPI ::

    $ make ship


Developing the CLI
------------------

The command-line interface is implemented using Click and setuptools. To install it locally for development inside your virtual environment, run the following installation command, as `prescribed by the Click documentation <https://click.palletsprojects.com/en/7.x/setuptools/#setuptools-integration>`_. ::

    $ pip install --editable .


