python-visualization / branca

This library is a spinoff from folium, that would host the non-map-specific features.
https://python-visualization.github.io/branca/
MIT License
111 stars 63 forks source link

Saving with `pathlib` object #102

Closed wd60622 closed 2 years ago

wd60622 commented 2 years ago

Would be nice if the save functionality worked with pathlib's PosixPath object.

No python requirements would have to change with pathlib being introduced in python 3.4

Seems like check would go here: https://github.com/python-visualization/branca/blob/629ed348792730171ad7cab323605f304879e985/branca/element.py#L162-L163

Conengmo commented 2 years ago

That seems like a simple change, so I'd say a PR is welcome.