Reusables

Latest version: v0.9.6

Safety actively analyzes 690603 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.9.0

-------------

- Adding datetime_format, dtf methods
- Adding datetime_from_iso, dtiso methods
- Adding catch_it and retry_it wrappers
- Adding CONTRIBUTING file
- Changing Namespace now operates more like "dict" on init, and can accept both iterable and kwargs
- Changing major structure of reusables to better group similar functionality
- Changing wrapper time_it now uses .time for older versions instead of the .clock
- Depreciation Warning: get_logger is changing to setup_logger
- Breaking change: log_exception has new and changed kwargs
- Breaking change: removing Cookie Management in favor of separate library
- Breaking change: removing sort_by
- Breaking change: removing namespace.from_dict()
- Breaking change: removing DateTime class in favor of singular methods datetime_format and datetime_from_iso

0.8.0

-------------

- Adding log_exception wrapper
- Adding ProtectedDict
- Adding hooks for Tasker main loop
- Adding roman number functions
- Adding directory_duplicates function
- Adding integer to words functions
- Adding option to enable scandir package walk instead of os.walk
- Adding url_to_ip and ip_to_url functions
- Adding hex_digest kwarg to file_hash
- Adding args and kwargs to time_it and log_exception wrappers
- Fixing file_hash checks by just passing to hashlib
- Changing functions to remove 'all' from them, extract_all, archive_all, find_all_files and find_all_files_generator
- Changing time_it function to use time.perf_counter on 3.3+ and time.clock on 2.6-3.2
- Depreciation Warning: extract_all is changing to extract
- Depreciation Warning: archive_all is changing to archive
- Depreciation Warning: find_all_files is changing to find_files
- Depreciation Warning: find_all_files_generator is changing to find_files_generator
- Depreciation Warning: count_all_files is changing to count_files
- Breaking change: Removing reuse wrapper
- Breaking change: archive_all now detects type based off name, should supply extension to name
- Breaking change: time_it message now takes args seconds, args, kwargs and does not allow positionals
- Breaking change: os_tree will no longer return an empty dictionary on failure, but include the base directory supplied
- Breaking change: renaming splice to cut

0.7.0

-------------

- Adding archive_all and now methods
- Adding logger helpers to add stream and file handlers
- Adding depth and abspath to find files methods
- Adding head, tail, cat bash equivalents
- Adding command queue to Tasking class, to give commands asynchronously and without directly referencing the instance
- Changing test suite to have a common file it pulls imports and info from
- Changing logger helpers to accept string instead of logger
- Breaking change: Moving log formats from variables to Namespace log_formats
- Breaking change: Moving command line helpers to cli
- Breaking change: Command line helpers are not imported by default, should now use: from reusables.cli import *
- Breaking change: join_root has been better named join_here

0.6.1

-------------

- Changing config_dict auto_find to accept a path to search at
- PyPI is stupid is why 0.6.0 is not up there

0.6.0

-------------

- Adding multiprocessing helpers, Tasker class and run_in_pool
- Adding download and cmd helper functions
- Adding ThreadedServer class, for running a server (defaults to local file server) in the background
- Adding terminal analogue functions: cd, pwd, ls, pushd, popd
- Adding match_case option for find_all_files and count_all_files
- Fix 'run' call to CalledProcessError on older python versions
- Changing logger to _logger to be hidden by default (should not be breaking, if so you coded wrong)

0.5.2

-------------

- Fix setup.py to use __init__.py instead of reusables.py for attrs

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.