Thank you for envparse. I liked its API so much that I implemented a successor library, environs, which uses marshmallow to do the heavy lifting for casting, validation, and serialization.
environ's API is near-identical to envparse, with a few differences:
environs was mostly written as a proof-of-concept, though at this point it is stable enough to use (it's only ~100SLOC after all).
I wonder if we could reduce duplication of effort by merging these two libraries. I haven't yet thought about the particulars; just wanted to open the table for discussion first.
Thoughts?
Thank you for envparse. I liked its API so much that I implemented a successor library, environs, which uses marshmallow to do the heavy lifting for casting, validation, and serialization.
environ's API is near-identical to envparse, with a few differences:
decimal,datetime,date,timedelta, anduuidEnvconstructor. (Env(FOO=bool)). This was intentional; I did not see an advantage in having the redundant API.env('VARNAME', cast=str); you must doenv.str('VARNAME'). Again, the intention was to avoid redundant API.preprocessorandpostprocessorare not supported. Any pre- or post-processing can happen in a custom parser function.envfiles (yet). Up for discussion here: Read .env files sloria/environs#1environs was mostly written as a proof-of-concept, though at this point it is stable enough to use (it's only ~100SLOC after all).
I wonder if we could reduce duplication of effort by merging these two libraries. I haven't yet thought about the particulars; just wanted to open the table for discussion first.
Thoughts?