Funcy

Latest version: v2.0

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

Scan your dependencies

Page 1 of 9

2.0

- added get_lax()
- added lzip(strict) param
- made autocurry() and friends support kw-only and pos-only arguments
- improved call._whatever_ arg introspection: pos-only, kw-only, kwargs and varargs are supported
- test against Python 3.11
Backwards incompatible changes:
- dropped Python 2 support
- dropped namespace helper class
- dropped old SkipMemoization alias for SkipMemory exception
- cache(key_func) param is now keyword only
- decorator's call won't access args capturesd by **kwargs individually anymore

1.18

- added join_with(strict=)
- use more precise timer `timeit.default_timer` for log*durations (Saugat Pachhai)
- preserve metadata when using autocurry as a decorator (117) (Kale Kundert)
- doc improvements (thx to Tim Gates)

1.17

- added del_in()
- made throttle() and limit_error_rate() work on methods
- added str and repr to Call objects
- migrated CI to Github actions (thx to Bruno Alla)
- fixed doc[string] for zip_dicts (Tal Einat)
- fixed some inspect issues
- minor doc fixes

1.16

- support Python 3.9 officially
- unify memoize() and cache(): both have .skip/.memory/.invalidate/.invalidate_all now
- support dynamic resulting exception in reraise() (Laurens Duijvesteijn)
- made () optional for decorator-made decorators with kw-only args
- added throttle()
- added has_path() (Denys Zorinets)
- fixed autocurry kwargs handling

1.15

- made rpartial accept keyworded arguments (Ruan Comelli)
- made `cache.invalidate()` idempotent (Dmitry Vasilyanov)
- made raiser() accept a string as a shortcut
- fixed cheatsheat description for 'distinct' helper (tsouvarev)
- fixed some seqs docstrings
- fixed some typos (Tim Gates)

1.14

- stated Python 3.7 and 3.8 support
- dropped Python 2.6
- added wrap_prop()
- added filter_errors param to retry()
- published nullcontext properly

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.