Aluode/PerceptionLabPortable
0
1Metadata-Version: 2.12Name: jaraco.context3Version: 5.3.04Summary: Useful decorators and context managers5Home-page: https://github.com/jaraco/jaraco.context6Author: Jason R. Coombs7Author-email: jaraco@jaraco.com8Classifier: Development Status :: 5 - Production/Stable9Classifier: Intended Audience :: Developers10Classifier: License :: OSI Approved :: MIT License11Classifier: Programming Language :: Python :: 312Classifier: Programming Language :: Python :: 3 :: Only13Requires-Python: >=3.814License-File: LICENSE15Requires-Dist: backports.tarfile ; python_version < "3.12"16Provides-Extra: docs17Requires-Dist: sphinx >=3.5 ; extra == 'docs'18Requires-Dist: jaraco.packaging >=9.3 ; extra == 'docs'19Requires-Dist: rst.linker >=1.9 ; extra == 'docs'20Requires-Dist: furo ; extra == 'docs'21Requires-Dist: sphinx-lint ; extra == 'docs'22Requires-Dist: jaraco.tidelift >=1.4 ; extra == 'docs'23Provides-Extra: testing24Requires-Dist: pytest !=8.1.1,>=6 ; extra == 'testing'25Requires-Dist: pytest-checkdocs >=2.4 ; extra == 'testing'26Requires-Dist: pytest-cov ; extra == 'testing'27Requires-Dist: pytest-mypy ; extra == 'testing'28Requires-Dist: pytest-enabler >=2.2 ; extra == 'testing'29Requires-Dist: pytest-ruff >=0.2.1 ; extra == 'testing'30Requires-Dist: portend ; extra == 'testing'31 32.. image:: https://img.shields.io/pypi/v/jaraco.context.svg33 :target: https://pypi.org/project/jaraco.context34 35.. image:: https://img.shields.io/pypi/pyversions/jaraco.context.svg36 37.. image:: https://github.com/jaraco/jaraco.context/actions/workflows/main.yml/badge.svg38 :target: https://github.com/jaraco/jaraco.context/actions?query=workflow%3A%22tests%2239 :alt: tests40 41.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json42 :target: https://github.com/astral-sh/ruff43 :alt: Ruff44 45.. image:: https://readthedocs.org/projects/jaracocontext/badge/?version=latest46 :target: https://jaracocontext.readthedocs.io/en/latest/?badge=latest47 48.. image:: https://img.shields.io/badge/skeleton-2024-informational49 :target: https://blog.jaraco.com/skeleton50 51.. image:: https://tidelift.com/badges/package/pypi/jaraco.context52 :target: https://tidelift.com/subscription/pkg/pypi-jaraco.context?utm_source=pypi-jaraco.context&utm_medium=readme53 54 55Highlights56==========57 58See the docs linked from the badge above for the full details, but here are some features that may be of interest.59 60- ``ExceptionTrap`` provides a general-purpose wrapper for trapping exceptions and then acting on the outcome. Includes ``passes`` and ``raises`` decorators to replace the result of a wrapped function by a boolean indicating the outcome of the exception trap. See `this keyring commit <https://github.com/jaraco/keyring/commit/a85a7cbc6c909f8121660ed1f7b487f99a1c2bf7>`_ for an example of it in production.61- ``suppress`` simply enables ``contextlib.suppress`` as a decorator.62- ``on_interrupt`` is a decorator used by CLI entry points to affect the handling of a ``KeyboardInterrupt``. Inspired by `Lucretiel/autocommand#18 <https://github.com/Lucretiel/autocommand/issues/18>`_.63- ``pushd`` is similar to pytest's ``monkeypatch.chdir`` or path's `default context <https://path.readthedocs.io/en/latest/api.html>`_, changes the current working directory for the duration of the context.64- ``tarball`` will download a tarball, extract it, change directory, yield, then clean up after. Convenient when working with web assets.65- ``null`` is there for those times when one code branch needs a context and the other doesn't; this null context provides symmetry across those branches.66 67 68For Enterprise69==============70 71Available as part of the Tidelift Subscription.72 73This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.74 75`Learn more <https://tidelift.com/subscription/pkg/pypi-jaraco.context?utm_source=pypi-jaraco.context&utm_medium=referral&utm_campaign=github>`_.76 