Metadata-Version: 2.1
Name: tls-property
Version: 1.0.1
Summary: A @decorator for caching properties in classes in the thread-local storage.
Home-page: https://github.com/leenr/tls-property
Author: leenr
Author-email: i@leenr.ru
Maintainer: leenr
Maintainer-email: i@leenr.ru
License: UNKNOWN
Description: =============
        @tls_property
        =============
        
        `@tls_property` is a super-tiny library that will help you write
        thread-safe classes.
        
        It's acting like a `@cached_property <https://pypi.org/project/cached-property/>`_,
        but value will be cached only for current thread.
        
        Garbage collecting is respected, `@tls_property` won't mess up with it.
        
        .. code-block:: python
        
            from some_library import NonThreadsafeSuperClient
            from tls_property import tls_property
        
            class SuperClientWrapper:
                @tls_property
                def _client(self) -> NonThreadsafeSuperClient:
                    return NonThreadsafeSuperClient()
        
        Module works on Python == 2.7 and Python ~= 3.4.
        
        Installation
        ------------
        .. code-block:: bash
        
            pip install tls-property
        
        
        License
        -------
        Public Domain: `CC0 1.0 Universal <https://creativecommons.org/publicdomain/zero/1.0/>`_.
        
Keywords: thread-local storage,decorator
Platform: posix
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
Classifier: Operating System :: POSIX
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Software Development :: Libraries
Provides: tls_property
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<4
Provides-Extra: develop
