[X] I searched open requests and couldn't find a duplicate
What is the idea?
This proposed API yields a TarFile object that is piped through transmute, almost-immediately creating a .conda-format archive. The info/paths.json etc. is up to the user.
I don't think this is all the way there, but it could be a nice way to make conda packages without conda-package-handling. For example we could sha256-hash the files as they went in to help with paths.json and to read the files fewer times.
The same API could be made a bit more efficient by returning a TarFile subclass that delegated .add() to its info- and pkg- archives, but os pipe and threading doesn't seem bad.
Checklist
What is the idea?
This proposed API yields a TarFile object that is piped through transmute, almost-immediately creating a
.conda
-format archive. Theinfo/paths.json
etc. is up to the user.I don't think this is all the way there, but it could be a nice way to make conda packages without conda-package-handling. For example we could sha256-hash the files as they went in to help with
paths.json
and to read the files fewer times.The same API could be made a bit more efficient by returning a TarFile subclass that delegated .add() to its info- and pkg- archives, but os pipe and threading doesn't seem bad.