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/.
Metadata
Release files for publicdata-census 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| publicdata_census-0.0.5.tar.gz | 296.1 kB | Details |
Release files / publicdata_census-0.0.5.tar.gz
| Download URL | publicdata_census-0.0.5.tar.gz |
|---|---|
| Size | 296.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
566f6df66cde8e6fad5fafca055311ba30d1eed86a0ac1cf056b0f49ff7b96a3
|
|
BLAKE2b-256 checksum How to use checksums |
b756b293330833e0073ab26b767c4cc1053da134a9e7a7885feee6c6a08cbfb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|