This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Classes for working with US Census geoids

Project Description
geoid
=====

Classes for working with census geoids

This module provides dynamically generated classes for parsing and creating each of the approximately 85 Census
summary levels. It can parse the forms of genoides that appear in the Decenial Census, the ACS, and Tiger files.
Additionally, it can read and write a more compact format, civick, that use base62 representation for the numbers.

Use
---

The geoid module in file geoid/__init__.py, has a list of the geoid classes that you can instantiate. Or, to print
the list:

$ python -c 'import geoid; print geoid.names'

The first dozen are the ones you'll use most frequently:

```bash
'us': 10,
'region': 20,
'division': 30,
'state': 40,
'county': 50,
'cosub': 60,
'place': 160,
'ua': 400,
'tract': 140,
'blockgroup': 150,
'block': 101,
'sdelm': 950,
'sdsec': 960,
'sduni': 970,
'zcta': 860
```

The classes are all dynamically generated, so you won't be able to find a class file.

```python
from geoid import acs
g = acs.Blockgroup(53, 33, 1800, 3)
print g.state, g.county.g.tract.g.blockgroup

gs = str(g)
g = acs.AcsGeoid.parse(gs)
```

Creating
--------

TBD

Parsing
-------
TBD

Parse Generally, or parse to a specific class.

Access Members
--------------


Promotion, Conversion, Summarization, AllVals
---------------------------------------------

Promote: create a higher level geoid from a lower level one
Convert: Change the type, for instance from a Census geoid to an ACS geoid
Summarize: Create a value to represent a summary level
AllVal: Create a value to represent coverage of an entire region

Caveats
-------

The geoids don't preserve the component, so, for instance, '03001US1' will get changed to '03000US1'


### Running tests
```bash
git clone git@github.com:CivicKnowledge/geoid.git
cd geoid
python setup.py test
```


Release History

Release History

This version
History Node

1.0.4

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

History Node

0.0.12

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
geoid-1.0.4.tar.gz (37.5 kB) Copy SHA256 Checksum SHA256 Source Mar 15, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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