This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
USA Today Python API Wrapper

This is a Python wrapper for [USA Today's Census

Note that usage of the USA Today Census API requires a developer key,
and that usage is contingent upon agreement with USA Today's [Terms of

Also, note that this library is in no way associated or endorsed by [USA


It's recommended that you save your USA Today Census API Key to the
`` file.

Without your API Key saved:

>>> from usa_today import Census
>>> Census('my_api_key').population()

With your API Key saved:

>>> from usa_today import Census
>>> Census().population()

### Methods ###

* `locations` -- Returns all available ethnicity, housing, population and race information for specified area.
>>> Census().locations()

>>> Census().locations('NY')

* `ethnicity` -- Returns an area's ethnic data. Information includes how much of the population identifies as Hispanic or non-Hispanic white, and the USA TODAY Diversity Index.
>>> Census().ethnicity()

>>> # California ethnicity by county
... Census().ethnicity('CA', sumlevid=3)

* `housing` -- Returns an area's housing data. Information includes the number of housing units, and the percentage of those that are vacant.
>>> c = Census()

>>> c.housing()

>>> c.housing('TX')

>>> # Lookup Texas housing by FIPS for counties
... c.housing('48~', keyname='FIPS', sumlevid=3)

* `population` -- Returns an area's population data. Information includes the total population of an area, average population per square mile, and the percent by which that population has changed since the last census.
>>> c = Census()

>>> c.population()

>>> # Texas population by town level.
... c.population('TX', sumlevid=6)

* `race` -- Returns an area's racial data. Information includes the percentage of an area's population that identifies as White, Black, American Indian, Asian, native Hawaiian/Pacific Islander, or mixed race.
>>> c = Census()

>>> c.race()

>>> c.race('RI')

>>> # Race data for Rhode Island by county.
... c.race('RI', sumlevid=3)


Copyright (c) 2011 Code for America Laboratories

See LICENSE for details.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
usa_today-1.0.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source Aug 4, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting