Row generators and URLs for working with census data
Project description
This library defines a set of Application Urls and Row Generators that allow access to public datasets. For instance, using the Census Reporter URLs, you can define access to a American Community Survey data table on the Census Reporter website. Then, using the associated Row Generator, you can download the data as a sequences of rows.
For instance, this code will return rows from ACS table B17001 for tracts in San Diego County
from publicdata import parse_app_url
url = parse_app_url("census://CA/140/B17001")
# Or: url = CensusReporterUrl(table='B17001',summarylevel='140',geoid='CA')
for row in url.generator:
print(row)
The library uses the appurl and rowgenerator python entrypoints, so all libraries that you install that use the entrypoints can be accessed via the parse_app_url and get_generator functions.
Note
This project has been set up using PyScaffold 3.2.3. For details and usage information on PyScaffold see https://pyscaffold.org/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file publicdata_census-0.0.5.tar.gz
.
File metadata
- Download URL: publicdata_census-0.0.5.tar.gz
- Upload date:
- Size: 296.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566f6df66cde8e6fad5fafca055311ba30d1eed86a0ac1cf056b0f49ff7b96a3 |
|
MD5 | a2b3fb7421305f45461d3eaa9e1a7a69 |
|
BLAKE2b-256 | b756b293330833e0073ab26b767c4cc1053da134a9e7a7885feee6c6a08cbfb0 |