Python-application

Latest version: v2.8.0

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

Scan your dependencies

Page 1 of 7

2.8.0

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

* Fixed issue with the syslog handler and null bytes in messages
* Call handleError on SyslogHandler when exception happens during emit
* Added some utility functions for setting up the log system
- Added set_handler function to set the main handler used by logging
(it will replace all existing handlers on the root logger)
- Added capture_output function to capture and divert standard output
and standard error to the logging system
* Replaced start_syslog with use_syslog and deprecated the former
* Improved detection of non-interactive mode
* Renamed IfNotInteractive to WhenNotInteractive
* Use the real path for runtime and config directories (follow symlinks)
* Added daemon property on Process to check if it's in daemon mode or not
* Check exc_type instead of exc_value in the context manager's __exit__
* Added module level log function to the log module similar to logging.log
* Use the with statement instead of try/finally
* Fixed broad exception statement
* Normalize names for descriptor method arguments
* Removed docstrings from internal functions
* Refactored configuration and runtime settings on Process
* Make the local_root undefined when running from system binary paths
* Only ignore OSError in unlink wrapper
* Use the new octal notation for file modes
* Fixed spelling in exception message
* Ordered imports alphabetically
* Explicitly use python2 in shebang lines

2.7.0

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

* Refactored subclasses function in application.python
- Changed it from a generator to a function that returns a list
- Fixed issue with duplicated items in output
- Significantly improved speed

2.6.0

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

* Allow process to wait for network to become available before starting
* Use getter/setter syntax for defining properties
* Fixed some PEP-8 violations
* Updated license and copyright years

2.5.0

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

* Added subclasses function in application.python
* Refactored logging system
- Aligned log function signatures with those from the logging module.
Context can no longer be provided as keyword arguments to the functions,
it has to be provided through the extra keyword argument.
- Provide a better exception logging function, that can be called without
a message to just log the traceback and which also accepts the exc_info
argument containing an exception info tuple to log a given traceback.
This enhanced version of the exception function is also made available
on the logging.Logger class and is fully backwards compatible.
- Deprecated log.msg and log.err in favor of log.info and log.exception
- Replaced log.Formatter with an enhanced version which can be customized
to obtain a desired logging format without the need to replace it. In
addition a mechanism to set the default formatter is provided in case
the Formatter customization level is not enough for the application.
- Provide the ability to capture and log python warnings. The feature is
turned on by default but can be disabled with capture_warnings(False).
- Provide a ContextualLogger abstract class that can be subclassed to
implement loggers that can modify the logged messages using additional
context that is specific to that particular logger, without the need to
modify the formatter.
- Rewrote LoggingFile using io.IOBase and renamed it to StandardIOLogger
- Simplified NamedLevel and improved it to allow its name to be modified.
- Renamed LevelClass to LevelHandler and improved it to allow defining
new named levels by simply attaching a new NamedLevel attribute to
log.level: log.level.FOOBAR = NamedLevel(number) which will define a
new level named 'FOOBAR' associated with number and register it with
the logging module. Attaching an existing level won't rename it, it
will only create an aliased attribute on log.level
- Added a new 'named_levels' property to log.level which will return a
set with all the registered named levels knows to the logging system.
- Renamed prefix to name in SyslogHandler and start_syslog arguments
* Fixed twisted logger and modified it to use the new twisted logger API
* Allow a log level to format as a string
* Improved performance for limit, making it 4 times faster
* Fixed bug in execute_once with instances that evaluate to boolean False
* Avoid reading a configuration file twice in certain circumstances
* Modernize code and improve PEP-8 compliance

2.1.0

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

* Compacted error logging statements
* Fixed ThreadPool properties
* Fixed min/max boundary checks
* Fixed ThreadPool thread management
* Fixed allocating ThreadPool thread names to avoid duplicates
* Added workers and jobs public read-only properties
* Removed unnecessary private function

2.0.2

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

* Fixed the local config directory in certain contexts

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.