Skip to content

Commit

Permalink
Convert README and LICENCE to markdown and add task-list
Browse files Browse the repository at this point in the history
  • Loading branch information
pfaion committed Aug 22, 2019
1 parent b56175f commit 7d0f1c1
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 66 deletions.
3 changes: 1 addition & 2 deletions LICENSE.rst → LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
MIT License
===========
# MIT License

Copyright (c) 2019 Patrick Faion

Expand Down
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# pybeautymaps


[![Travis Build](https://travis-ci.org/pfaion/pybeautymaps.svg?branch=master)](https://travis-ci.org/pfaion/pybeautymaps)
[![Coveralls Coverage](https://coveralls.io/repos/github/pfaion/pybeautymaps/badge.svg?branch=master)](https://coveralls.io/github/pfaion/pybeautymaps?branch=master)

This is a library for creating beautyful map images with python.

![Example Image](examples/manhattan.png)


## Installation

```bash
pip install git+https://github.com/pfaion/pybeautymaps
```


## Quick-Start

Take a look at the [examples](examples) folder for different renderings.

```python
from pybeautymaps import Beautymap

m = Beautymap.square_centered(
center_latlon=(40.757667, -73.983715),
width=8.0
)

m.render_square_png(
filename='manhattan.png',
size=2000,
padding=50,
line_widths={
'trunk': 5,
'primary': 4,
'secondary': 3,
'tertiary': 2,
}
)
```

## TODO
A brief list of what additional features are planned:

- [ ] Add option to show rivers
- [ ] Add option to use custom colors
- [ ] Add more rendering shapes (rectangular, circular, ...)
- [ ] Add more output formats (jpg, pdf, svg, ...)
- [ ] Add debugging support via iPython

- [ ] Return image as iPython image
- [ ] Plot different road types in different colors
- [ ] Cache data for every road type separately
59 changes: 0 additions & 59 deletions README.rst

This file was deleted.

7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
from setuptools import setup, find_packages

this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.rst'), encoding='utf-8') as f:
readme_text = f.read()
with open(path.join(this_directory, 'LICENSE.rst'), encoding='utf-8') as f:
license_text = f.read()
long_description = f"{readme_text}\n\n{license_text}"
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

install_requires = [
'numpy',
Expand Down

0 comments on commit 7d0f1c1

Please sign in to comment.