Real-easypy

Latest version: v0.5.0

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

Scan your dependencies

Page 1 of 2

0.5.0

Changed
- Logging Initialization
- a run-once `initialize` method takes care of it all
- removed `set_width`, `set_coloring`, `set_graphics`
- the env-var `TERM_COLOR_SUPPORT` is no longer checked
- the env-var `EASYPY_LOG_INDENTATION` is no longer checked
- DataSize - return 'byte' and 'MiB' instead of '1 byte' and '1 MiB', except in `.render(humanize=True)`

Added
- logging: support for `logbook` as the underlying logging framework
- logging: auto-initialize via env-var `EASYPY_AUTO_PATCH_LOGGING=logging|logbook`
- logging: env-vars for configuring logging - `EASYPY_AUTO_GRAPHICAL_LOGGING`, `EASYPY_AUTO_COLORED_LOGGING`
- gevent: auto-patch via env-var `EASYPY_AUTO_PATCH_GEVENT=yes`
- resilience: support returning exceptions captured by `resilient` decorator
- Examples
- a skeleton for initializing logging with easypy

0.4.3

Added
- collections: make `separate`, `grouped`, `chunkify` and `takesome` methods of the ObjectCollection classes

Fixed
- support for gevent 1.5

0.4.2

Added
- `ensure_same_defaults` decorator for setting one function's defaults as source of truth for other function
- contexts: added `breakable_section()`, which allows breaking out of a context manager as if it were a loop
- gevent: use gevent's native-threads instead of easypy's

Fixed
- aliasing: Improve `RecursionError` for aliasing-induced infinite recursion
- concurrency: don't swallow `KeyboardInterrupt` when running under gevent
- colors: bug fix in handling markups with no text
- units: fix `__rfloordiv__` handling of unsupported operands

0.4.1

Project renamed as 'real-easypy'

0.4.0

Changed
- units: DataSize - return 'byte' and 'MiB' instead of '1 byte' and '1 MiB'
- units: Duration(inf) is now 'Eternity' instead of 'Never'
- timing: The Timer class now renders the duration using the Duration's repr, instead of as a float
- aliasing: Improved `RecursionError` for aliasing-induced infinite recursion

Added
- CLI: expose 'colorize' and 'ziplog' as clis
- units: Added a `Percentage` class
- timing: Added a `TimeInterval` class, for use for timestamp comparisons. Can be converted to/from the `Timer` class
- colors: Added '[..]' as coloring markup delimiter
- concurrency: Add parent's name to new thread's name, to show hierarchy
- concurrency: Add `done()` function to `concurrent` to check if the thread is finished.
- collections: Add `.menu()` to `ObjectCollectionBase`, integrating with `termenu`
- semver: Added a module and class for parsing and comparing semver-styled version strings
- random: Added 'perchance', for a common random use-case
- bunch: Added `.render()` to render the data cleanly
- exceptions: support pickling
- CI: Add python 3.7 and 3.8

Fixed
- sync: prevent an import cycle
- colors/ziplog: swallow BrokenPipeError when parsing from cmdline
- aliasing: bug fix for 'Cannot create a consistent method resolution', add unittest
- collections: workaround python bug (3.6.8+) importing 'test.support'

Changed
- Logging Initialization
- a run-once `initialize` method takes care of it all
- removed `set_width`, `set_coloring`, `set_graphics`
- the env-var `TERM_COLOR_SUPPORT` is no longer checked
- the env-var `EASYPY_LOG_INDENTATION` is no longer checked

0.3.1

Added
- ci: run tests in random order
- collections: added unittest

Fixed
- sync: Don't release unacquired lock
- caching: Don't leak open db, as it is concurrent access which has undefined behavior
- concurrency
- refactor to fix stalling of main-thread after Futures.executor breaks on exception
- Update max number of threads
- logging: set default host in thread logging context
- resilience: match ``retry`` and ``retrying`` function signature

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.