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

Multi processing with safety in file writing. #74

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Greeley
Copy link

@Greeley Greeley commented Mar 30, 2024

  • added exception package with InvalidCookieException.py
  • added multiprocess package with exorcise_daemons.py
  • exorcise_daemons#ExorcistPool creates multiprocessing pools without creating daemons
  • mapped self._process_order_id to multiprocess pool of purchase_keys.
  • Downloading: basename now prints to avoid so much console spam.
  • join the pool to finalize it properly.
  • created CacheData class in cache.py
  • read cache data in for every write.

Not currently available for trove.

Greeley and others added 9 commits March 29, 2024 22:26
- lambda to be pedantic about the type map expects.
- added exception package with InvalidCookieException.py
- added multiprocess package with exorcise_daemons.py
- exorcise_daemons#ExorcistPool creates multiprocessing pools without creating daemons
- mapped self._process_order_id to multiprocess pool of purchase_keys.
- updated trove_base_url
- Downloading: basename now prints to avoid so much console spam.
- join the pool to finalize it properly.
- created CacheData class in cache.py
- read cache data in for every write.
- caching with json is pretty crazy, so I've switched it to a csv.
- added _strtobool
- added _strtonone will be useful when converting old json cache
- cache object inheriting list.
- file operations moved to file_ops.py
- readability changes... sorry
- changes for consistency across trove and non-trove cache
# Conflicts:
#	humblebundle_downloader/download_library.py
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