ssato / python-anyconfig

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

anyconfig.load/dump should accept file object passing #22

Closed ssato closed 9 years ago

ssato commented 9 years ago

Current implementation of anyconfig.{load,dump} accepts file path of target configuration files. On the other hand, json.{load,dump} can process file objects. anyconfig.{load,dump} should accept them as needed.

ssato commented 9 years ago

WIP on the next branch

ssato commented 9 years ago

commit 9a0eea1 (deprecation of anyconfig.backend.base.Parser.{load*,dump}_impl and addition of new methods: {load_from,dump_to}_stream) and actual {load_from,dump_to}_stream implementation in each concrete backend modules may resolve this, I guess.