A minimally working (on UNIX) implementation of shelve with zip has been ported over from here. The linked file is written in legacy Python2 format and follows different PEP and coding conventions.
Its been minimally modified to work on Python3 environment of this repository, however:
- A stylistic and functional update is highly recommended. For e.g. Utilizing
pathlib instead of string operations to parse file names and check if they exist or not.
- The context clause usage, (i.e.
with something as athing:) seems to work, but needs to be double checked to make sure nothing will break.
A minimally working (on UNIX) implementation of shelve with zip has been ported over from here. The linked file is written in legacy Python2 format and follows different PEP and coding conventions.
Its been minimally modified to work on Python3 environment of this repository, however:
pathlibinstead of string operations to parse file names and check if they exist or not.with something as athing:) seems to work, but needs to be double checked to make sure nothing will break.