|
1 | | -# Official Ziptastic Python Library |
2 | | -Official python library for GetZiptastic.com |
| 1 | +Official Ziptastic Python Library |
| 2 | +================================= |
3 | 3 |
|
4 | | -[](http://ziptastic-python.readthedocs.org/en/latest/?badge=latest) |
5 | | -[](https://circleci.com/gh/Ziptastic/ziptastic-python) |
6 | | -[](https://travis-ci.org/Ziptastic/ziptastic-python) |
7 | | -[](https://codecov.io/gh/ziptastic/ziptastic-python/branch/master) |
8 | 4 |
|
9 | | -## Installation |
10 | | - pip install ziptastic-python (coming soon) |
| 5 | +Python library for `GetZiptastic.com <https://www.getziptastic.com>`_ |
| 6 | +--------------------------------------------------------------------- |
11 | 7 |
|
| 8 | +.. image:: https://readthedocs.org/projects/ziptastic-python/badge/?version=latest |
| 9 | + :target: http://ziptastic-python.readthedocs.org/en/latest/?badge=latest |
12 | 10 |
|
13 | | -## Testing |
14 | | -`$ nosetests` |
| 11 | +.. image:: https://codecov.io/gh/ziptastic/ziptastic-python/branch/master/graph/badge.svg |
| 12 | + :target: https://codecov.io/gh/ziptastic/ziptastic-python/branch/master |
15 | 13 |
|
16 | | -With coverage |
| 14 | +.. image:: https://travis-ci.org/Ziptastic/ziptastic-python.svg?branch=master |
| 15 | + :target: https://travis-ci.org/Ziptastic/ziptastic-python |
17 | 16 |
|
18 | | -`$ nosetests --with-coverage --cover-package=ziptastic` |
| 17 | +.. image:: https://circleci.com/gh/Ziptastic/ziptastic-python.png |
| 18 | + :target: https://circleci.com/gh/Ziptastic/ziptastic-python |
19 | 19 |
|
| 20 | +Installation |
| 21 | +------------ |
20 | 22 |
|
21 | | -## Usage |
22 | | -### Forward geocoding |
23 | | -```python |
24 | | -from ziptastic import Ziptastic |
| 23 | + >>> pip install ziptastic-python |
25 | 24 |
|
26 | | -# Set your API key. (Available at https://www.getziptastic.com/dashboard) |
27 | | -api = Ziptastic('<your api key>') |
28 | | -result = api.get_from_postal_code('48867') |
29 | | -``` |
30 | 25 |
|
31 | | -### Reverse geocoding |
32 | | -```python |
33 | | -from ziptastic import Ziptastic |
| 26 | +Running tests |
| 27 | +------------- |
34 | 28 |
|
35 | | -# Set API key. |
36 | | -api = Ziptastic('<your api key>') |
37 | | -result = api.get_from_coordinates('42.9934', '-84.1595') |
38 | | -``` |
| 29 | + $ nosetests |
| 30 | + |
| 31 | +Running tests with coverage |
| 32 | +--------------------------- |
| 33 | + |
| 34 | + $ nosetests --with-coverage --cover-package=ziptastic |
| 35 | + |
| 36 | + |
| 37 | +Usage |
| 38 | +===== |
| 39 | + |
| 40 | +Forward geocoding |
| 41 | +----------------- |
| 42 | + |
| 43 | + >>> from ziptastic import Ziptastic |
| 44 | + >>> api = Ziptastic('<your api key>') |
| 45 | + >>> result = api.get_from_postal_code('48867') |
| 46 | + |
| 47 | + |
| 48 | +Reverse geocoding |
| 49 | +----------------- |
| 50 | + |
| 51 | + >>> from ziptastic import Ziptastic |
| 52 | + >>> api = Ziptastic('<your api key>') |
| 53 | + >>> result = api.get_from_coordinates('42.9934', '-84.1595') |
0 commit comments