ssato / python-anyconfig

Python library provides common APIs to load and dump configuration files in various formats
MIT License
277 stars 31 forks source link

RFE: pathlib support, allow direct passing pathlib.Path object to anyconfig.{load,dump,...} #85

Closed ssato closed 6 years ago

ssato commented 6 years ago

see also: #84.

ssato commented 6 years ago

Done in the git HEAD.

>>> import pathlib, anyconfig
>>> p = pathlib.Path("/etc/xml/catalog")
>>> x = anyconfig.load(p, ac_parser="xml")
>>>