Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit from shelve.Shelf #6

Merged
merged 2 commits into from
Nov 12, 2023
Merged

Inherit from shelve.Shelf #6

merged 2 commits into from
Nov 12, 2023

Conversation

devnull255
Copy link
Owner

sqliteshelve.Shelf class modified to inherit from shelve.Shelf class

  • inheritance allows contextmanager to be used with shelve.Shelf because who knew how handy contextmanagers could be for automatically closing the shelve database after use !
  • added test to ensure contextmanager works as expected
  • added dummy setup.py script so I can create conda package with it from pypi
  • added sqliteshelve/cli.py because for some reason I forget to check it in

@devnull255 devnull255 merged commit e6382ca into master Nov 12, 2023
1 check passed
@devnull255 devnull255 deleted the implement-context-manager branch November 12, 2023 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant