An open API service indexing awesome lists of open source software.

https://github.com/zostera/python-makiwich

python port of mapbox/makiwich
https://github.com/zostera/python-makiwich

Last synced: 12 months ago
JSON representation

python port of mapbox/makiwich

Awesome Lists containing this project

README

          

# python-makiwich

- python port of https://github.com/mapbox/makiwich
- Uses CC0 [Maki icons](https://github.com/mapbox/maki/)
- Dependencies: [xmltodict](https://pypi.org/project/xmltodict/), for PNG export: [cairosvg](https://pypi.org/project/CairoSVG/)
- Contains Django view to serve icons in `maki.contrib.django.maki_icon`

The icons are not included in this repository, so building the package requires downloading the [Maki icons](https://www.mapbox.com/maki-icons/):

```
curl -L https://github.com/mapbox/maki/archive/master.zip -o maki-master.zip
unzip -qj maki-master.zip 'maki-master/icons/*' -d maki/img/icons/
```

# usage

```python
>>> from maki import MakiMarker
>>> marker = MakiMarker(symbol="park", tint="#3388ff")
>>> marker.svg()
'\nCreated with Sketch.'
```

# Known issues / TODO

- Letters / numbers not supported yet.
- Decide how to keep the icon files (currently not in the repo.)
- Error messages for missing icons need improvement
- check/extend/test `Color.most_readable` implementation