Pycomex

Latest version: v0.15.0

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

Scan your dependencies

Page 5 of 8

0.8.3

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

* Fixed the problem that when an exception occurs within the RecordCode context manager that this is not
properly printed. Now the entire traceback for every error is printed to the logger stream
* Moved the entire analysis RecordCode functionality from Experiment to AbstractExperiment so that it
can also be used in SubExperiment
* Fixed the bug that the analysis.py file within the archive folder would not work at all for
SubExperiment runs
* SubExperiments can now also define analysis context and those will be additive, meaning that the code
from those will be added to he end of all the analysis code that was previously created by the parent
experiment

0.8.2

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

* Updated Readme file

0.8.1

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

* Added ``Experiment.p`` as a shorthand for ``Experiment.parameters`` because that got really annoying to
write so often.
* Fixed a serious bug, where the ``snapshot.py`` file in the archive folder of an experiment was not in
fact the sub experiment but the lowest level base experiment!

0.8.0

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

* Removed the standard prints during the call of a hook, because they proved annoying in practice.
* Fixed the bug, where a sub experiment snapshot would not be executable because it was missing the the
base experiment. The base experiment script is now copied into the archive folder as well.
* Added the dependency system: It is now possible to define files which an experiment execution depends on
via the special ``DEPENDENCY_PATHS`` dict parameter. These files will be copied into the created archive
folders.

0.7.1

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

* Slightly changed the hook mechanic to allow the possibility of defining overwritable default
implementations for hooks.

0.7.0

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

* Added the ``experiment.SubExperiment`` class which implements experiment inheritance! This class now
allows to refer to a different experiment module to run as parent experiment, but with parameter
modifications.
* Added a hook system to experiments, which allows for parent experiment modules to define certain points
at which custom code from child experiments may be injected.

* changed the datetime format in ``HISTORY.rst`` to the only sane option
* Fixed a minor windows compatibility problem with the automatic pathing determining for experiments.
* Added the module ``pycomex.testing`` to contain all of the utility functions and classes which are needed
to facilitate the unittests such as the ``ExperimentIsolation`` context manager.
* Refactored most unittests to use ``pytest`` instead of ``unittest``
* Fixed a bunch of unittests that were not updated for the new API
* Fixed a rather serious bug in ``testing.ExperimentIsolation`` which left permanent modifications in
in the globals dict and thus introduced side-effects in between different unittests.

**INTERFACE CHANGES**

* changed functionality and signature of ``experiment.run_experiment``. Previously this function executed
an existing experiment module by using ``subprocessing.run`` and returned the completed process instance.
Now, this works by using ``experiment.SubExperiment`` and the function actually returns an experiment
instance.
* Do to the change above, the same now applies to ``experiment.run_example``.

Page 5 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.