Skip to main content

Backup utilities.

Project description

censusdis/backup

This project is a command-line utility for bulk downloads of U.S. Census data.

Installation

pip install census_backup

Usage Examples

Download from a group across all available bulk geographies

This is the simplest way to use this tool. It will look for all available geographies for the given dataset and vintage, then download all variables in the specified group for every geography it can.

census-backup -d acs/acs5 -v 2020 -g B02001 -o ~/tmp/backup

The required arguments are:

  • -d: the data set
  • -v: the vintage
  • -g: the variable group

The -o is an optional output directory. The default is the current working directory.

Download geometries that have state as a component

Sometimes we really only care about a specific set of geography levels. This example will download at the [state], [state, county], [state, county, tract] etc... levels.

census-backup -d acs/acs5 -v 2020 -g B02001 -G state -o ~/tmp/backup-states-and-below

Download state aggregated data only

This will not get geographies within the state. It will only get data aggregate at the state level.

census-backup -d acs/acs5 -v 2020 -g B02001 -G +state -o ~/tmp/backup-states

More Help

census-backup --help

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

census_backup-0.1.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

census_backup-0.1.6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file census_backup-0.1.6.tar.gz.

File metadata

  • Download URL: census_backup-0.1.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.4 Darwin/21.6.0

File hashes

Hashes for census_backup-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cff9b8ec1b9e07f5444697d2c75a1ef804f1d080efcaa16aefa49644418b7bad
MD5 45bd6bfc8e2c4e91defd726ee49c4f46
BLAKE2b-256 f2d07b335171aa32682de2ece56d8b650abe91a45281b8966b9490e9b4d6e053

See more details on using hashes here.

File details

Details for the file census_backup-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: census_backup-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.4 Darwin/21.6.0

File hashes

Hashes for census_backup-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b86e279d3876f49c680042fc49bc05fbb07c419ec9727cccc9258f2db2be07
MD5 6c1cce7dd75ea0aa53df65bfb0c3a182
BLAKE2b-256 c79086390f2d4f5c4c4b43c21b4d6c66845a6c9e8c60e16dabe9c5fcd98d472b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page